[go: up one dir, main page]

login
A122222
Difference between (n!)^n and the next smaller factorial.
1
2, 96, 291456, 18656179200, 17668969095168000, 67095201210572537856000000, 6721833410207820593461922365440000000, 75658161802407509372174837302453333917696000000000, 365526772920711815200262962616603688918661180831039488000000000000
OFFSET
2,1
EXAMPLE
a(3)=96 because the difference between (3!)^3=216 and the next smaller factorial 5!=120 is 96.
MATHEMATICA
s={}; m=1; Do[Until[m!>(n!)^n, m++]; AppendTo[s, (n!)^n-(m-1)!], {n, 2, 10}]; s (* James C. McMahon, Oct 26 2024 *)
CROSSREFS
KEYWORD
nonn,changed
AUTHOR
Hugo Pfoertner, Sep 25 2006
EXTENSIONS
a(10) from James C. McMahon, Oct 26 2024
STATUS
approved