OFFSET
1,4
LINKS
Harry J. Smith, Table of n, a(n) for n = 1..1000
EXAMPLE
a(7) = 129 as 3^7 = 2187 = (7^3)*6 + 129.
MATHEMATICA
Table[ Mod[ 3^n, n^3], {n, 1, 50} ]
PROG
(Sage) [power_mod(3, n, n^3)for n in range(1, 46)] # Zerinvary Lajos, Nov 28 2009
(PARI) { for (n=1, 1000, write("b066607.txt", n, " ", 3^n % n^3) ) } \\ 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 23 2001
STATUS
approved