Moree, Pieter Max Planck Institute for Mathematics, Max Planck Society;
Moree, P. (2005). On the distribution of the order and index of g (mod p) over residue classes. I. Journal of Number Theory, 114(2), 238-271.