OFFSET
0,2
COMMENTS
The period is 10: for n > 0, a(n) = a(n + 10).
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 0..1000
Index entries for linear recurrences with constant coefficients, signature (1,0,0,0,-1,1).
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
KEYWORD
nonn,easy
AUTHOR
STATUS
approved