login
A168428
a(n) = 4^n mod 10.
3
1, 4, 6, 4, 6, 4, 6, 4, 6, 4, 6, 4, 6, 4, 6, 4, 6, 4, 6, 4, 6, 4, 6, 4, 6, 4, 6, 4, 6, 4, 6, 4, 6, 4, 6, 4, 6, 4, 6, 4, 6, 4, 6, 4, 6, 4, 6, 4, 6, 4, 6, 4, 6, 4, 6, 4, 6, 4, 6, 4, 6, 4, 6, 4, 6, 4, 6, 4, 6, 4, 6, 4, 6, 4, 6, 4, 6, 4, 6, 4, 6, 4, 6, 4, 6, 4, 6, 4, 6, 4, 6, 4, 6, 4
OFFSET
0,2
FORMULA
a(n) = A010879(A000302(n)). - Michel Marcus, Jul 23 2016
MATHEMATICA
PowerMod[4, Range[0, 25], 10] (* G. C. Greubel, Jul 22 2016 *)
PROG
(Sage) [power_mod(4, n, 10)for n in range(0, 94)] #
(PARI) a(n)=lift(Mod(4, 10)^n) \\ Charles R Greathouse IV, Mar 22 2016
(Magma) [Modexp(4, n, 10): n in [0..100]]; // Vincenzo Librandi, Jul 23 2016
CROSSREFS
Last elements of rows of A008565.
Sequence in context: A199865 A196818 A010711 * A351126 A127018 A083396
KEYWORD
nonn,easy
AUTHOR
Zerinvary Lajos, Nov 25 2009
STATUS
approved