Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A143071
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A143071 A positive integer n is included if the number of 1's in the binary representation of n is a power of 2 (including being possibly 1). +0
3
1, 2, 3, 4, 5, 6, 8, 9, 10, 12, 15, 16, 17, 18, 20, 23, 24, 27, 29, 30, 32, 33, 34, 36, 39, 40, 43, 45, 46, 48, 51, 53, 54, 57, 58, 60, 64, 65, 66, 68, 71, 72, 75, 77, 78, 80, 83, 85, 86, 89, 90, 92, 96, 99, 101, 102, 105, 106, 108, 113, 114, 116, 120, 128, 129, 130, 132, 135 (list; graph; listen)
OFFSET

1,2

LINKS

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

EXAMPLE

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

MAPLE

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

CROSSREFS

Cf. A000120, A143070, A143072.

Sequence in context: A082415 A005236 A051250 this_sequence A143513 A062849 A010432

Adjacent sequences: A143068 A143069 A143070 this_sequence A143072 A143073 A143074

KEYWORD

base,nonn

AUTHOR

Leroy Quet Jul 22 2008

EXTENSIONS

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

page 1

Search completed in 0.005 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 November 23 17:09 EST 2009. Contains 167438 sequences.


AT&T Labs Research