OFFSET
1,1
COMMENTS
A trajectory term can be used twice as r = s, so all even numbers are terms (trajectory first term k/2).
The odd terms, which become sparse with increasing size, form A374909.
LINKS
Markus Sigg, Table of n, a(n) for n = 1..10000
EXAMPLE
2 is a term because its Collatz trajectory is {2, 1} and 2 = 1+1.
21 is not a term: its Collatz trajectory is T = { 21, 64, 32, 16, 8, 4, 2, 1 } and there are no r,s in T with 21 = r+s.
PROG
(PARI) is_A374847(k) = { my(T=List(), m=k); while(m>1, if(m%2==0, m=m/2, m=3*m+1); if(m<k, listput(T, m)); ); for(i=1, #T, for(j=i, #T, if(T[i]+T[j]==k, return(1)); )); return(0); }
CROSSREFS
KEYWORD
nonn
AUTHOR
Markus Sigg, Jul 22 2024
STATUS
approved