OFFSET
2,1
LINKS
Danny Rorabaugh, Table of n, a(n) for n = 2..447
FORMULA
EXAMPLE
a(5) = 125 - 120 = 5, because 125 > 120 >= 25.
MATHEMATICA
For[n = 2, n < 20, n++, k := 0; While[n^k <= n!, k++ ]; Print[n^k - n! ]] (* Stefan Steinerberger, Jan 26 2006 *)
PROG
(Sage) [n^(1+floor(log(factorial(n))/log(n))) - factorial(n) for n in range(2, 21)] # Danny Rorabaugh, Apr 14 2015
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Amarnath Murthy, Aug 16 2005
EXTENSIONS
More terms from Stefan Steinerberger, Jan 26 2006
STATUS
approved