Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A143070
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A143070 A positive integer n is included if the number of 0's in the binary representation of n is a power of 2 (including being possibly 1). +0
3
2, 4, 5, 6, 9, 10, 11, 12, 13, 14, 16, 19, 21, 22, 23, 25, 26, 27, 28, 29, 30, 33, 34, 36, 39, 40, 43, 45, 46, 47, 48, 51, 53, 54, 55, 57, 58, 59, 60, 61, 62, 67, 69, 70, 73, 74, 76, 79, 81, 82, 84, 87, 88, 91, 93, 94, 95, 97, 98, 100, 103, 104, 107, 109, 110, 111, 112, 115 (list; graph; listen)
OFFSET

1,1

LINKS

Leroy Quet, Home Page (listed in lieu of email address)

EXAMPLE

34 in binary is 100010. This has 4 zeros. And since 4 is a power of 2, 34 is included in the sequence.

MAPLE

a:=proc(n) local nn, n0: nn:=convert(n, base, 2): n0:=nops(nn)-add(nn[j], j=1.. nops(nn)): if 0 < n0 and type(log[2](n0), integer)=true then n else end if end proc: seq(a(n), n=1..100); [From Emeric Deutsch (deutsch(AT)duke.poly.edu), Aug 11 2008]

CROSSREFS

Cf. A023416, A143071, A143072.

Sequence in context: A104704 A072726 A153242 this_sequence A005528 A050015 A153218

Adjacent sequences: A143067 A143068 A143069 this_sequence A143071 A143072 A143073

KEYWORD

base,nonn

AUTHOR

Leroy Quet Jul 22 2008

EXTENSIONS

More terms from Emeric Deutsch (deutsch(AT)duke.poly.edu), Aug 11 2008

a(61)-a(68) from Ray Chandler (rayjchandler(AT)sbcglobal.net), Jun 20 2009

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 December 19 21:04 EST 2009. Contains 171054 sequences.


AT&T Labs Research