OFFSET
0,2
COMMENTS
A permutation of the nonnegative integers.
LINKS
G. Venturini, Iterates of number-theoretic functions with periodic rational coefficients (Generalization of the 3x+1 problem), Stud. Appl. Math., 86 (1992), 185-218.
Index entries for linear recurrences with constant coefficients, signature (0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,-1).
FORMULA
a(A074307(n)) = n. - R. J. Mathar, Feb 27 2007
MAPLE
A074305 := proc(n) option remember ; local m ; m := floor(n/3) ; if 3*m = n then 2*m ; elif 3*m+1 =n then 4*m+3 ; else 4*m+1 ; fi ; end: A074307 := proc(n) A074305(A074305(n)) ; end: A074308 := proc(n) local a ; a := 0 ; while A074307(a) <> n do a := a+1 ; od ; RETURN(a) ; end: for n from 0 to 70 do printf("%d, ", A074308(n)) ; od ; # R. J. Mathar, Feb 27 2007
MATHEMATICA
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
N. J. A. Sloane, Sep 23 2002
EXTENSIONS
Corrected and extended by R. J. Mathar, Feb 27 2007
STATUS
approved