login
A001264
Final 2 digits of 4^n.
1
1, 4, 16, 64, 56, 24, 96, 84, 36, 44, 76, 4, 16, 64, 56, 24, 96, 84, 36, 44, 76, 4, 16, 64, 56, 24, 96, 84, 36, 44, 76, 4, 16, 64, 56, 24, 96, 84, 36, 44, 76, 4, 16, 64, 56, 24, 96, 84, 36, 44, 76, 4, 16, 64, 56, 24, 96
OFFSET
0,2
COMMENTS
The period is 10: for n > 0, a(n) = a(n + 10).
MAPLE
seq(4^n mod 10^2, n=0..60); # Martin Renner, Jan 25 2017
MATHEMATICA
PowerMod[4, Range[0, 60], 100] (* Vincenzo Librandi, Aug 15 2016 *)
PROG
(Magma) [Modexp(4, n, 100): n in [0..110]]; // Vincenzo Librandi, Aug 15 2016
(PARI) a(n)=lift(Mod(4, 100)^n) \\ Charles R Greathouse IV, Jan 25 2017
CROSSREFS
Sequence in context: A061283 A375976 A242354 * A307138 A114399 A029993
KEYWORD
nonn,easy
STATUS
approved