OFFSET
0,3
COMMENTS
a(n) >= 2^(n-1) as 2^(n-1) has orbit length n.
LINKS
EXAMPLE
a(6) = 5+32 = 37 as the positive integers whose Collatz orbit has length 6 are {5,32} - the orbit of 5 is 5,16,8,4,2,1, and the orbit of 32 is 32,16,8,4,2,1.
PROG
(PARI) nextSet(s) = { my(s1 = Set([])); for(i = 1, #s, s1 = setunion(s1, Set([2*s[i]])); if (s[i] > 4 && (s[i]-1) % 3 == 0 && (s[i]-1)/3 % 2 == 1, s1 = setunion(s1, Set([(s[i]-1)/3]))); ); return(s1); }
a(n) = { my(s = Set([1])); for(k = 1, n, s = nextSet(s); ); return(sum(i=1, #s, s[i])); }
CROSSREFS
KEYWORD
nonn
AUTHOR
Markus Sigg, Sep 15 2020
EXTENSIONS
More terms from David A. Corneth, Sep 15 2020
STATUS
approved
