OFFSET
0,3
LINKS
Harry J. Smith, Table of n, a(n) for n = 0..100
FORMULA
a(n) = n^(n+2) mod (n+1)^(n+1).
MATHEMATICA
Table[PowerMod[n, n+2, (n+1)^(n+1)], {n, 0, 20}] (* Harvey P. Dale, Dec 15 2020 *)
PROG
(PARI) { for (n=0, 100, write("b064232.txt", n, " ", n^(n + 2) % (n + 1)^(n + 1)) ) } \\ Harry J. Smith, Sep 10 2009
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Floor van Lamoen, Sep 22 2001
STATUS
approved