login
A187751
n^(n!) mod (n!)^n.
2
0, 0, 0, 81, 225280, 7991790625, 1078848154238976, 65180706714634067542224001, 1650157594512930366268925848349310976, 66807065275536807794426016376688705273224158387201
OFFSET
0,4
FORMULA
a(n) = A053986(n) mod A036740(n).
EXAMPLE
a(3) = 3^6 mod 6^3 = 729 mod 216 = 81.
PROG
(Python)
import math
for n in range(12):
f = math.factorial(n)
print (n**f) % (f**n),
(Maxima) A187751(n):=mod(n^(n!), (n!)^n)$ makelist(A187751(n), n, 0, 9); /* Martin Ettl, Jan 13 2013 */
CROSSREFS
Sequence in context: A145261 A013745 A093227 * A285997 A143675 A033435
KEYWORD
nonn
AUTHOR
Alex Ratushnyak, Jan 03 2013
STATUS
approved