Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A073642
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A073642 Replace 2^k in the binary representation of n with k (i.e. if n = 2^a+2^b+2^c+... then a(n)=a+b+c+...). +0
7
0, 1, 1, 2, 2, 3, 3, 3, 3, 4, 4, 5, 5, 6, 6, 4, 4, 5, 5, 6, 6, 7, 7, 7, 7, 8, 8, 9, 9, 10, 10, 5, 5, 6, 6, 7, 7, 8, 8, 8, 8, 9, 9, 10, 10, 11, 11, 9, 9, 10, 10, 11, 11, 12, 12, 12, 12, 13, 13, 14, 14, 15, 15, 6, 6, 7, 7, 8, 8, 9, 9, 9, 9, 10, 10, 11, 11, 12, 12, 10, 10, 11, 11, 12, 12, 13, 13 (list; graph; listen)
OFFSET

1,4

FORMULA

It seems that for n>10 a(n) < n/Log(n)/2 and that sum(k=1, n, a(k)) is asymptotic to C*n*Log(n)^2 with 1/2>C>0.47

a(1)=0, a(2n) = a(n)+e1(n), a(2n+1) = a(2n), where e1(n) = A000120(n). - Ralf Stephan, Jun 19 2003

a(n) = if n=2^log2(n) then log2(n) else log2(n)+a(n-2^log2(n)), where log2=A000523. a(2*n+1) = a(2*n), as 2^0 = 1. - Reinhard Zumkeller (reinhard.zumkeller(AT)gmail.com), Aug 17 2003

EXAMPLE

9=2^3+2^0 hence a(9)=3+0=3 25=2^4+2^3+2^0 hence a(25)=4+3+0=7

PROGRAM

(PARI) a(n)=sum(i=1, length(binary(n)), component(binary(n), i)*(length(binary(n))-i))

CROSSREFS

a(n) = log_2(A059867(n)).

Cf. A059867, A029931.

Cf. A087135, A000009, A087136.

Adjacent sequences: A073639 A073640 A073641 this_sequence A073643 A073644 A073645

Sequence in context: A033270 A103264 A060960 this_sequence A108356 A055656 A078571

KEYWORD

easy,nonn

AUTHOR

Benoit Cloitre (benoit7848c(AT)orange.fr), Aug 29 2002

page 1

Search completed in 0.002 seconds

Lookup | Welcome | Find friends | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Transforms | Puzzles | Hot | Classics
More pages | Superseeker | Maintained by N. J. A. Sloane (njas@research.att.com)

Last modified October 13 20:18 EDT 2008. Contains 145016 sequences.


AT&T Labs Research