A036151 5^n mod 167.
1, 5, 25, 125, 124, 119, 94, 136, 12, 60, 133, 164, 152, 92, 126, 129, 144, 52, 93, 131, 154, 102, 9, 45, 58, 123, 114, 69, 11, 55, 108, 39, 28, 140, 32, 160, 132, 159, 127, 134, 2, 10, 50, 83, 81, 71, 21, 105
Offset: 0
References
- I. M. Vinogradov, Elements of Number Theory, pp. 220 ff.
Programs
-
Maple
[ seq(primroot(ithprime(i))^j mod ithprime(i),j=0..100) ];
-
Mathematica
PowerMod[5,Range[0,50],167] (* Harvey P. Dale, Dec 14 2015 *)
-
PARI
a(n)=lift(Mod(5,167)^n) \\ Charles R Greathouse IV, Mar 22 2016