Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A004757
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A004757 Binary expansion starts 101. +0
7
5, 10, 11, 20, 21, 22, 23, 40, 41, 42, 43, 44, 45, 46, 47, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185 (list; graph; listen)
OFFSET

1,1

FORMULA

a(2n) = 2a(n), a(2n+1) = 2a(n) + 1 + 4[n==0].

a(n) = n + 4 * 2^floor(log2(n)) = A004756(n) + A053644(n).

EXAMPLE

22 in binary is 10110, so 22 is in sequence.

PROGRAM

(PARI) a(n)=n+4*2^floor(log(n)/log(2))

CROSSREFS

Cf. A004754 (10), A004755 (11), A004756 (100), A004758 (110), A004759 (111).

Cf. A004760, A053644, A062050, A076877.

Sequence in context: A136824 A136822 A120513 this_sequence A007527 A033894 A033649

Adjacent sequences: A004754 A004755 A004756 this_sequence A004758 A004759 A004760

KEYWORD

nonn

AUTHOR

N. J. A. Sloane (njas(AT)research.att.com).

EXTENSIONS

Edited by Ralf Stephan (ralf(AT)ark.in-berlin.de), Oct 12 2003

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 2 11:54 EST 2009. Contains 167921 sequences.


AT&T Labs Research