OFFSET
0,3
COMMENTS
Also n^(20k+1) mod 100 for any positive integer k.
There are 63 numbers (A075821) where the final two digits of n^21, n^41, n^61, etc. are equal to n.
Period 100.
LINKS
Jianing Song, Table of n, a(n) for n = 0..99 (a period)
EXAMPLE
a(11) = 11 since 11^21 = 7400249944258160101211 and the final two digits are 11.
MATHEMATICA
Table[Mod[n^21, 100], {n, 0, 100}] (* Vladimir Joseph Stephan Orlovsky, Apr 13 2011 *)
PowerMod[Range[0, 80], 21, 100] (* Harvey P. Dale, Mar 15 2015 *)
PROG
(Magma) [n^21 mod 100: n in [0..1000]]; // Vincenzo Librandi, Apr 21 2011
(PARI) a(n)=n^21%100 \\ Charles R Greathouse IV, Apr 06 2016
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Henry Bottomley, Nov 25 2004
STATUS
approved