Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A089313
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A089313 Write n in binary; a(n) = number represented by second block of 1's from the right. +0
5
0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 1, 1, 0, 3, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 0, 3, 3, 3, 0, 7, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 3, 1, 1, 0, 3, 3, 3, 3, 1, 3, 3, 0, 7, 7, 7, 0, 15, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 3, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 3, 3, 3, 1, 7, 1, 1, 0, 3, 3, 3, 1, 3, 3, 1, 1 (list; graph; listen)
OFFSET

0,14

FORMULA

a(n) = 2^A089310(n)-1. - David Wasserman (wasserma(AT)spawar.navy.mil), Sep 09 2005

EXAMPLE

13 = 1101 so a(13) = 3.

PROGRAM

(PARI) { a(n) = local(b, l, r, c); b=binary(n); l=length(b); while(l&&b[l]==0, l--); while(l&&b[l]==1, l--); while(l&&b[l]==0, l--); r=0; c=0; while(l&&b[l], r+=2^c; l--; c++); r; } for(i=0, 200, print1(a(i), ", ")) (Klasen)

CROSSREFS

Cf. A089309-A089312.

Sequence in context: A035677 A143276 A101941 this_sequence A052998 A114516 A027185

Adjacent sequences: A089310 A089311 A089312 this_sequence A089314 A089315 A089316

KEYWORD

nonn,base

AUTHOR

N. J. A. Sloane (njas(AT)research.att.com), Dec 22 2003

EXTENSIONS

More terms from David Wasserman (wasserma(AT)spawar.navy.mil) and Lambert Klasen (Lambert.Klasen(AT)gmx.net), Sep 09 2005

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 6 22:55 EST 2009. Contains 170429 sequences.


AT&T Labs Research