login
A064546
Remainder when (n!)^2 is divided by n^n.
2
0, 0, 9, 64, 1900, 5184, 695310, 15089664, 346348629, 8189440000, 170553548176, 4519967588352, 202522159449675, 8500218417954816, 265594041953296875, 3543051899458551808, 454740628232312103872, 5853583711033675481088
OFFSET
1,3
LINKS
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
Cf. A063709.
Sequence in context: A013566 A056769 A273232 * A351591 A217872 A067961
KEYWORD
easy,nonn
AUTHOR
Floor van Lamoen, Oct 09 2001
STATUS
approved