login
This site is supported by donations to The OEIS Foundation.
Logo

Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A043529 Number of distinct base 2 digits of n. 5
1, 1, 2, 1, 2, 2, 2, 1, 2, 2, 2, 2, 2, 2, 2, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2 (list; graph; refs; listen; history; text; internal format)
OFFSET

0,3

LINKS

Table of n, a(n) for n=0..90.

FORMULA

This is 2 unless n = 2^k - 1 for some k in which case it is 1.

MAPLE

A043529 := proc(n): if type(ln(n+1)/ln(2), integer) then 1 else 2 fi: end proc: seq(A043529(n), n=0..90); # Johannes W. Meijer, Sep 14 2012

CROSSREFS

Contribution from Johannes W. Meijer, May 24 2009: (Start)

Factor of A160466.

Cf. A007456 and A081729.

(End)

Sequence in context: A083952 A214860 A160242 * A201219 A080942 A099812

Adjacent sequences:  A043526 A043527 A043528 * A043530 A043531 A043532

KEYWORD

nonn,base,easy

AUTHOR

Clark Kimberling

EXTENSIONS

First term added and offset changed by Johannes W. Meijer, May 15 2009

STATUS

approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Transforms | Puzzles | Hot | Classics
Recent Additions | More pages | Superseeker | Maintained by The OEIS Foundation Inc.

Content is available under The OEIS End-User License Agreement .

Last modified May 24 11:30 EDT 2013. Contains 225620 sequences.