Moree, P. (2006). On the distribution of the order and index of g(modp) over residue classes III. Journal of Number Theory, 120, 132-160.