OFFSET
0,2
COMMENTS
A permutation of the nonnegative integers.
REFERENCES
G. Venturini, Iterates of number-theoretic functions with periodic rational coefficients (generalization of the 3x+1 problem), Stud. Appl. Math., 86 (1992), 185-218.
LINKS
PROG
(PARI) b(m)=if(m%2==0, m/2*3, if(m%4==3, (m-3)/4*3+1, (m-1)/4*3+2)) for(i=0, 120, print1(b(i), ", ")) (C. Ronaldo)
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
N. J. A. Sloane, Sep 23 2002
EXTENSIONS
More terms from Lambert Klasen (lambert.klasen(AT)gmx.de), Jan 02 2005
STATUS
approved