OFFSET
1,2
COMMENTS
The 3x+k function T_k is defined by T_k(x) = x/2 if x is even, (3x+k)/2 if x is odd. GCD(k,6)=1.
When k=2^m-3, T_k has a cycle containing 1. Hence the sequence is infinite.
Trivially, members of the sequence are not divisible by 2 or 3. Of the first 10^4 members, only 1,066 are squareful, which is about one third of the expected density. - Ralf Stephan, Aug 05 2013
LINKS
PROG
(PARI) \\ 5.5 hours (2.33 Ghz Intel Core 2)
{k=1; n=1;
until(n>10000, x=1; y=1; len=0;
until(x==y, if(x%2==0, x=x/2, x=(3*x+k)/2);
if(y%2==0, y=y/2, y=(3*y+k)/2);
if(y%2==0, y=y/2, y=(3*y+k)/2); len++);
if(x==1, write("b226614.txt", n, " ", k);
write("b226615.txt", n, " ", len); n++);
k+=(k+3)%6)}
CROSSREFS
KEYWORD
nonn
AUTHOR
Geoffrey H. Morley, Aug 02 2013
STATUS
approved