The OEIS Foundation is supported by donations from users of the OEIS and by a grant from the Simons Foundation.

 Hints (Greetings from The On-Line Encyclopedia of Integer Sequences!)
 A137903 Limiting sequence when we start with positive integers (A000027) and at step n >= 1 add to the term at position n + a(n) the value a(n) if the term is odd, else divide the term by 2. 2
 1, 1, 4, 4, 5, 6, 11, 4, 9, 5, 11, 3, 13, 14, 10, 16, 17, 18, 19, 20, 21, 11, 23, 24, 35, 13, 27, 14, 29, 30, 31, 16, 44, 17, 35, 18, 37, 19, 52, 20, 41, 35, 43, 44, 45, 23, 47, 12, 49, 50, 68 (list; graph; refs; listen; history; text; internal format)
 OFFSET 1,3 LINKS MAPLE P:=proc(i) local a, n, v; v:=array(1..i); for n from 1 by 1 to i do v[n]:=n; od; for n from 1 by 1 to 200 do if v[v[n]+n]=2*trunc(v[v[n]+n]/2) then v[v[n]+n]:=v[v[n]+n]/2; else v[v[n]+n]:=v[v[n]+n]+v[n]; fi; od; for n from 1 by 1 to 200 do print(v[n]); od; end: P(1000); # Paolo P. Lava, Mar 10 2009 CROSSREFS Cf. A000027, A136119, A137319, A137417, A137418, A136259, A136272. Sequence in context: A137902 A019527 A062836 * A091349 A103483 A170934 Adjacent sequences:  A137900 A137901 A137902 * A137904 A137905 A137906 KEYWORD easy,nonn AUTHOR Ctibor O. Zizka, Apr 30 2008 EXTENSIONS Entries corrected and extended by Paolo P. Lava, Mar 10 2009 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 September 21 07:28 EDT 2021. Contains 347596 sequences. (Running on oeis4.)