Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A151843
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A151843 a(0)=0; a(1)=0; a(2)=0; for n>=3 if n=2^i + j with 0<=j<2^i then a(n)=a(j) + a(j + 1) except we add 1 if j=2^i-1. +0
32
0, 0, 0, 1, 0, 0, 1, 2, 0, 0, 1, 1, 0, 1, 3, 3, 0, 0, 1, 1, 0, 1, 3, 2, 0, 1, 2, 1, 1, 4, 6, 4, 0, 0, 1, 1, 0, 1, 3, 2, 0, 1, 2, 1, 1, 4, 6, 3, 0, 1, 2, 1, 1, 4, 5, 2, 1, 3, 3, 2, 5, 10, 10, 5, 0, 0, 1, 1, 0, 1, 3, 2, 0, 1, 2, 1, 1, 4, 6, 3, 0, 1, 2, 1, 1, 4, 5, 2, 1, 3, 3, 2, 5, 10, 10, 4, 0, 1, 2, 1, 1, 4, 5 (list; graph; listen)
OFFSET

0,8

FORMULA

I would very much like a g.f. for this sequence!

EXAMPLE

Contribution from Omar E. Pol (info(AT)polprimos.com), Jul 17 2009: (Start)

Triangle begins:

0;

0;

0,1;

0,0,1,2;

0,0,1,1,0,1,3,3;

0,0,1,1,0,1,3,2,0,1,2,1,1,4,6,4;

...

MAPLE

M:=520;

f:=proc(r, s, a, b) local s1, n, i, j; global M;

s1:=array(0..M+10);

s1[0]:=r; s1[1]:=s;

for n from 2 to M do i:=floor(log(n)/log(2));

j:=n-2^i;

if (j=2^i-1) then s1[n]:=a*s1[j]+b*s1[j+1]+1 else

s1[n]:=a*s1[j]+b*s1[j+1]; fi;

od:

[seq(s1[n], n=0..M)];

end;

f(0, 0, 1, 1);

CROSSREFS

Cf. A151843-A151874.

Sequence in context: A125203 A023565 A025922 this_sequence A147696 A001842 A029429

Adjacent sequences: A151840 A151841 A151842 this_sequence A151844 A151845 A151846

KEYWORD

nonn

AUTHOR

N. J. A. Sloane (njas(AT)research.att.com), Jul 17 2009, Jul 19 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 November 25 20:09 EST 2009. Contains 167514 sequences.


AT&T Labs Research