OFFSET
1,2
COMMENTS
For any n > 0, n appears in the a(n)-th row of A346928.
LINKS
Rémy Sigrist, PARI program for A348401
FORMULA
a(n) <= n.
a(n) < n iff n belongs to A045619 \ {2}.
PROG
(PARI) See Links section.
(Python)
from math import factorial
def a(n):
f = [factorial(i) for i in range(1, n+1)]
for m, fm in enumerate(f, start=1):
for fk in f[:m]:
if n == fm // fk:
return m
print([a(n) for n in range(1, 70)]) # Michael S. Branicky, Oct 17 2021
CROSSREFS
KEYWORD
nonn
AUTHOR
Rémy Sigrist, Oct 17 2021
STATUS
approved