OFFSET
0,2
MATHEMATICA
Table[PowerMod[8, n, 6^n], {n, 0, 30}] (* Harvey P. Dale, Apr 20 2011 *)
PROG
(Sage) [power_mod(8, n, 6^n)for n in range(0, 24)] # Zerinvary Lajos, Nov 28 2009
(PARI) a(n) = if (n, lift(Mod(8, 6^n)^n), 0); \\ Michel Marcus, Feb 20 2018
CROSSREFS
KEYWORD
nonn
AUTHOR
N. J. A. Sloane, May 20 2008
STATUS
approved