OFFSET
0,2
COMMENTS
The start value can also be chosen as s = i, the imaginary unit.
LINKS
Markus Sigg, Table of n, a(n) for n = 0..42
FORMULA
a(n) = |f^n({s})| where f(M) = {x/2 : x in M} union {3x+1 : x in M} and s is an arbitrary irrational number.
EXAMPLE
a(7) = 127 = 2^7-1 because there are exactly two 7-length sequences of h:=x->x/2 or t:=x->3*x+1 steps yielding the same value: (hhthtth)(s) = (thhhhtt)(s) = 27/16*s + 7/4. - Alois P. Heinz, Mar 30 2012
MAPLE
M := {sqrt(2)}:
print(nops(M)):
for i from 1 to 23 do
M := map(x -> x/2, M) union map(x -> 3*x+1, M):
print(nops(M))
end do:
PROG
(PARI) \\ maxGB is the available RAM memory size; use allocatemem() before start
a208127(maxGB) = {my (n=log(maxGB)/log(2)+21, v=[I]); for (i=0 , n, if(i>0, v=Set(concat(v/2, 3*v+vector(#v, i, 1)))); print1(#v, ", "))};
a208127(16) \\ Hugo Pfoertner, Apr 09 2023
CROSSREFS
KEYWORD
nonn
AUTHOR
Markus Sigg, Mar 29 2012
EXTENSIONS
a(23)-a(25) from Alois P. Heinz, Mar 30 2012
a(26)-a(28) from Markus Sigg, Jul 05 2017
a(29)-a(31) from Markus Sigg, Aug 06 2017
a(32) from Markus Sigg, Mar 26 2023
a(33)-a(34) from Hugo Pfoertner, Mar 26 2023
a(35)-a(38) from Markus Sigg, Apr 06 2023
STATUS
approved