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., Vol. 86 (1992), pp. 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
From Elmo R. Oliveira, May 15 2026: (Start)
a(n) = a(n-8) + a(n-16) - a(n-24).
G.f.: x*(3 + x + 2*x^2 + 9*x^3 + 5*x^4 + 8*x^5 + 6*x^6 + 18*x^7 + 9*x^8 + 9*x^9 + 2*x^10 + 18*x^11 + 2*x^12 + 9*x^13 + 9*x^14 + 18*x^15 + 6*x^16 + 8*x^17 + 5*x^18 + 9*x^19 + 2*x^20 + x^21 + 3*x^22) / ((1 - x^8)*(1 - x^16)). (End)
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
