OFFSET
1,7
LINKS
Harry J. Smith, Table of n, a(n) for n = 1..1000
EXAMPLE
a(7) = 6 as 6^7 = 279936 = 7*39990 + 6.
MAPLE
seq(irem(6^n, n), n=1..80); # Zerinvary Lajos, Apr 20 2008
MATHEMATICA
Table[PowerMod[6, n, n], {n, 80} ]
PROG
(PARI) a(n) = { lift(Mod(6, n)^n) } \\ Harry J. Smith, Mar 10 2010
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Amarnath Murthy, Dec 22 2001
EXTENSIONS
More terms from Floor van Lamoen and Robert G. Wilson v, Dec 27 2001
STATUS
approved