OFFSET
0,2
LINKS
Rémy Sigrist, Table of n, a(n) for n = 0..10000
PROG
(Python) def k(a, b):
return ((a*b)%(a+b))
numberList=[]
def repeat(a):
i=1
while a!=0:
a= k(a, i)
i=i+1
numberList.append(i)
for x in range(10000):
repeat(x)
print(numberList)
(PARI) f(m, n) = (m*n) % (m+n);
a(n) = {my(i=1); while (n, n = f(n, i); i++; ); i; } \\ Michel Marcus, Nov 28 2019
CROSSREFS
KEYWORD
nonn
AUTHOR
Stefan Gog, Nov 26 2019
STATUS
approved