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

 

Logo


Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A119477 a(1)=1, a(n) = a((n+1)/2) + 2 if n is odd, a(n) = a(n/2) + 1 if n is even. 2
1, 2, 4, 3, 6, 5, 5, 4, 8, 7, 7, 6, 7, 6, 6, 5, 10, 9, 9, 8, 9, 8, 8, 7, 9, 8, 8, 7, 8, 7, 7, 6, 12, 11, 11, 10, 11, 10, 10, 9, 11, 10, 10, 9, 10, 9, 9, 8, 11, 10, 10, 9, 10, 9, 9, 8, 10, 9, 9, 8, 9, 8, 8, 7, 14, 13, 13, 12, 13, 12, 12, 11, 13, 12, 12, 11, 12, 11, 11, 10, 13, 12, 12, 11, 12, 11 (list; graph; refs; listen; history; text; internal format)
OFFSET

1,2

LINKS

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

FORMULA

a(n) = A061313(n) + 1. - Philippe Deléham, Nov 03 2008

MATHEMATICA

a[1]=1; a[n_]:=a[n]=If[OddQ[n], a[(n+1)/2]+2, a[n/2]+1]; Table[a[n], {n, 300}]

CROSSREFS

Cf. A119476.

Sequence in context: A308982 A182298 A182732 * A161920 A278512 A278511

Adjacent sequences:  A119474 A119475 A119476 * A119478 A119479 A119480

KEYWORD

nonn

AUTHOR

Zak Seidov, May 22 2006

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.

License Agreements, Terms of Use, Privacy Policy. .

Last modified June 6 01:16 EDT 2020. Contains 334858 sequences. (Running on oeis4.)