This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.
%I A187751 #20 Jul 05 2025 11:24:14 %S A187751 0,0,0,81,225280,7991790625,1078848154238976, %T A187751 65180706714634067542224001,1650157594512930366268925848349310976, %U A187751 66807065275536807794426016376688705273224158387201,228020326859403543540241849077865865705999564800000000000000000000 %N A187751 a(n) = n^(n!) mod (n!)^n. %F A187751 a(n) = A053986(n) mod A036740(n). %e A187751 a(3) = 3^6 mod 6^3 = 729 mod 216 = 81. %o A187751 (Python) %o A187751 import math %o A187751 for n in range(12): %o A187751 f = math.factorial(n) %o A187751 print(pow(n, f, f**n)) %o A187751 (Maxima) A187751(n):=mod(n^(n!),(n!)^n)$ makelist(A187751(n),n,0,9); /* _Martin Ettl_, Jan 13 2013 */ %Y A187751 Cf. A053986, A036740. %K A187751 nonn %O A187751 0,4 %A A187751 _Alex Ratushnyak_, Jan 03 2013 %E A187751 a(10) from _David Radcliffe_, Jul 05 2025