OFFSET
1,3
COMMENTS
Is this sequence the same as A094331? - David Wasserman, Jan 16 2005
LINKS
Michael S. Branicky, Table of n, a(n) for n = 1..10000
PROG
(PARI) a(n) = my(k=0); while ((n+k)! < n!^2, k++); k; \\ Michel Marcus, Apr 11 2022
(Python)
from math import factorial
def a(n):
if n == 1: return 0
fn, k, p = factorial(n), 1, n+1
while fn > p: k += 1; p *= (n+k)
return k
print([a(n) for n in range(1, 75)]) # Michael S. Branicky, Apr 11 2022
CROSSREFS
KEYWORD
nonn
AUTHOR
Amarnath Murthy, Sep 19 2002
EXTENSIONS
More terms from David Wasserman, Jan 16 2005
STATUS
approved