OFFSET
1,3
LINKS
Harry J. Smith, Table of n, a(n) for n = 1..100
FORMULA
a(n) = (n!)^2 mod n^n.
EXAMPLE
a(5) = 1900 because (5!)^2 = 14400 = 1900 (mod 5^5 = 3125).
PROG
(PARI) { for (n=1, 100, write("b064546.txt", n, " ", (n!)^2 % n^n) ) } \\ Harry J. Smith, Sep 18 2009
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Floor van Lamoen, Oct 09 2001
STATUS
approved