OFFSET
1,1
LINKS
Amiram Eldar, Table of n, a(n) for n = 1..10000
PROG
(Python)
from itertools import count, islice
def A370969_gen(): # generator of terms
c, m = 1, 1
for n in count(2):
a, b = divmod(c, n)
if not b:
yield n-m
c, m = a, n
else:
c *= n
CROSSREFS
KEYWORD
nonn
AUTHOR
N. J. A. Sloane, Apr 11 2024
STATUS
approved