This site is supported by donations to The OEIS Foundation.

 Hints (Greetings from The On-Line Encyclopedia of Integer Sequences!)
 A033478 3x+1 sequence beginning at 3. 14
 3, 10, 5, 16, 8, 4, 2, 1, 4, 2, 1, 4, 2, 1, 4, 2, 1, 4, 2, 1, 4, 2, 1, 4, 2, 1, 4, 2, 1, 4, 2, 1, 4, 2, 1, 4, 2, 1, 4, 2, 1, 4, 2, 1, 4, 2, 1, 4, 2, 1, 4, 2, 1, 4, 2, 1, 4, 2, 1, 4, 2, 1, 4, 2, 1, 4, 2, 1, 4, 2, 1, 4, 2, 1, 4, 2, 1, 4, 2, 1, 4, 2, 1, 4, 2, 1, 4, 2, 1, 4, 2, 1, 4, 2, 1, 4, 2, 1 (list; graph; refs; listen; history; text; internal format)
 OFFSET 0,1 REFERENCES C. A. Pickover, The Math Book, Sterling, NY, 2009; see p. 374. LINKS Index entries for linear recurrences with constant coefficients, signature (0, 0, 1). MAPLE f:=proc(n) if n mod 2 = 0 then n/2 else 3*n+1; fi; end; g:=proc(n) local i, t1; t1:=[n]; for i from 1 to 120 do t1:=[op(t1), f(t1[nops(t1)])]; od; t1; end; g(3); PROG (PARI) a(n)=if(n>4, [2, 1, 4][n%3+1], [3, 10, 5, 16, 8][n+1]) \\ Charles R Greathouse IV, Jun 22 2016 CROSSREFS Sequence in context: A247034 A275511 A035411 * A285576 A246777 A111127 Adjacent sequences:  A033475 A033476 A033477 * A033479 A033480 A033481 KEYWORD nonn,easy AUTHOR STATUS approved

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

Last modified June 26 10:12 EDT 2019. Contains 324375 sequences. (Running on oeis4.)