OFFSET
1,2
COMMENTS
For more information see A375006.
PROG
(Python)
from itertools import count, islice
def A374527_gen(startvalue=1): # generator of terms >= startvalue
s = max(startvalue, 1)
for n in count(s+(s&1^1), 2):
t, a, c = [n], n, set()
while a > 1:
a = 3*a+1 if a&1 else a>>1
for p in t:
if (b:=p+a) in c:
break
c.add(b)
else:
t.append(a)
continue
break
else:
yield n
CROSSREFS
KEYWORD
nonn,hard,more
AUTHOR
Markus Sigg and Hugo Pfoertner, Jul 27 2024
EXTENSIONS
a(23)-a(24) from Chai Wah Wu, Jul 29 2024
STATUS
approved