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!)
A137902 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 1 if the term is odd, otherwise divide the term by 2. 2
1, 1, 4, 4, 5, 6, 8, 4, 9, 5, 11, 3, 13, 14, 4, 16, 17, 9, 20, 20, 21, 11, 23, 24, 25, 13, 28, 14, 29, 30, 31, 16, 34, 17, 35, 36, 37, 38, 20, 20, 41, 22, 43, 44 (list; graph; refs; listen; history; text; internal format)
OFFSET

1,3

LINKS

Table of n, a(n) for n=1..44.

FORMULA

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 1 if the term is odd, otherwise divide the term by 2.

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]+1; 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: A120197 A243427 A085581 * A019527 A062836 A137903

Adjacent sequences:  A137899 A137900 A137901 * A137903 A137904 A137905

KEYWORD

easy,nonn

AUTHOR

Ctibor O. Zizka, Apr 30 2008

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 6 15:57 EDT 2022. Contains 355111 sequences. (Running on oeis4.)