login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A094328 Iterate the map in A006369 starting at 4. 21
4, 5, 7, 9, 6, 4, 5, 7, 9, 6, 4, 5, 7, 9, 6, 4, 5, 7, 9, 6, 4, 5, 7, 9, 6, 4, 5, 7, 9, 6, 4, 5, 7, 9, 6, 4, 5, 7, 9, 6, 4, 5, 7, 9, 6, 4, 5, 7, 9, 6, 4, 5, 7, 9, 6, 4, 5, 7, 9, 6, 4, 5, 7, 9, 6, 4, 5, 7, 9, 6, 4, 5, 7, 9, 6, 4, 5, 7, 9, 6, 4, 5, 7, 9, 6, 4, 5, 7, 9, 6, 4, 5, 7, 9, 6, 4, 5, 7, 9, 6, 4, 5, 7, 9, 6 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
REFERENCES
J. C. Lagarias, ed., The Ultimate Challenge: The 3x+1 Problem, Amer. Math. Soc., 2010; see page 270.
LINKS
J. C. Lagarias, The 3x+1 problem and its generalizations, Amer. Math. Monthly, 92 (1985), 3-23.
FORMULA
The map is: n -> if n mod 3 = 0 then 2*n/3 elif n mod 3 = 1 then (4*n-1)/3 else (4*n+1)/3.
Periodic with period length 5.
MATHEMATICA
Table[{4, 5, 7, 9, 6}, {21}] // Flatten (* Jean-François Alcover, Jun 10 2013 *)
LinearRecurrence[{0, 0, 0, 0, 1}, {4, 5, 7, 9, 6}, 105] (* Ray Chandler, Sep 03 2015 *)
PROG
(Haskell)
a094328 n = a094328_list !! (n-1)
a094328_list = iterate a006369 4 -- Reinhard Zumkeller, Dec 31 2011
(PARI) a(n)=([0, 1, 0, 0, 0; 0, 0, 1, 0, 0; 0, 0, 0, 1, 0; 0, 0, 0, 0, 1; 1, 0, 0, 0, 0]^(n-1)*[4; 5; 7; 9; 6])[1, 1] \\ Charles R Greathouse IV, Oct 18 2022
CROSSREFS
Sequence in context: A140076 A135186 A011336 * A081095 A080596 A183866
KEYWORD
nonn,easy
AUTHOR
N. J. A. Sloane, Jun 04 2004
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified July 11 21:50 EDT 2024. Contains 374234 sequences. (Running on oeis4.)