Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A139351
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A139351 Let the binary expansion of n be n = Sum_{k} 2^{r_k}, let e(n) be the number of r_k's that are even, o(n) the number that are odd; sequence gives e(n). +0
11
0, 1, 0, 1, 1, 2, 1, 2, 0, 1, 0, 1, 1, 2, 1, 2, 1, 2, 1, 2, 2, 3, 2, 3, 1, 2, 1, 2, 2, 3, 2, 3, 0, 1, 0, 1, 1, 2, 1, 2, 0, 1, 0, 1, 1, 2, 1, 2, 1, 2, 1, 2, 2, 3, 2, 3, 1, 2, 1, 2, 2, 3, 2, 3, 1, 2, 1, 2, 2, 3, 2, 3, 1, 2, 1, 2, 2, 3, 2, 3, 2, 3, 2, 3, 3, 4, 3, 4, 2, 3, 2, 3, 3, 4, 3, 4, 1, 2, 1 (list; graph; listen)
OFFSET

0,6

COMMENT

e(n)+o(n) = A000120(n), the binary weight of n.

LINKS

N. J. A. Sloane, Fortran program for this and related sequences

EXAMPLE

If n = 43 = 2^0+2^2+2^3+2^5, e(43)=1, o(43)=3.

PROGRAM

See link for Fortran program.

CROSSREFS

Cf. A000120, A139352-A139355, A039004, A139370-A139373.

Adjacent sequences: A139348 A139349 A139350 this_sequence A139352 A139353 A139354

Sequence in context: A070088 A131851 A104886 this_sequence A125925 A036578 A077402

KEYWORD

nonn

AUTHOR

Nadia Heninger (nadiah(AT)cs.princeton.edu) and njas, Jun 07 2008

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