Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A086876
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A086876 Run lengths in A071542. +0
1
1, 2, 2, 2, 2, 2, 4, 2, 2, 4, 4, 4, 2, 2, 4, 4, 4, 4, 4, 4, 4, 2, 2, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 6, 2, 2, 2, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 6, 2, 4, 4, 4, 4, 4, 4, 6, 4, 6, 6, 6, 6, 6, 2, 2, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 6, 2, 4, 4, 4, 4, 4, 4, 6, 4, 6, 6, 6 (list; graph; listen)
OFFSET

1,2

COMMENT

All a(n) are even for n>1.

Records occur at positions { 1,2,7,37,122,... } which correspond to run start positions { 2,4,16,126,512,... } in A071542.

PROGRAM

(PARI) e1(n)=sum(k=0, floor(log2(n)), bittest(n, k))

f(n)=local(c):c=0:while(n, n=n-e1(n):c=c+1):c

p=1:r=1:for(n=1, 150, c=0:while(f(r) == p, r=r+1:c=c+1):p=f(r):print1(c", "))

CROSSREFS

Sequence in context: A076500 A060594 A104361 this_sequence A066691 A064133 A105674

Adjacent sequences: A086873 A086874 A086875 this_sequence A086877 A086878 A086879

KEYWORD

nonn,easy

AUTHOR

Ralf Stephan (ralf(AT)ark.in-berlin.de), Aug 21 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 July 26 13:41 EDT 2008. Contains 142293 sequences.


AT&T Labs Research