OFFSET
1,1
PROG
(Python)
def A376108(n):
def f(x):
a, b, c = 1, 1, n
while True:
if b > x: return c
a, b = b, a+b+1
c +=1
m, k = n, f(n)
while m != k: m, k = k, f(k)
return m
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Chai Wah Wu, Sep 10 2024
STATUS
approved