login
A151687
G.f.: x + x^2 * Product_{n>=0} (1 + x^(2^n-1) + x^(2^n)).
2
0, 1, 2, 3, 3, 3, 5, 6, 4, 3, 5, 6, 6, 8, 11, 10, 5, 3, 5, 6, 6, 8, 11, 10, 7, 8, 11, 12, 14, 19, 21, 15, 6, 3, 5, 6, 6, 8, 11, 10, 7, 8, 11, 12, 14, 19, 21, 15, 8, 8, 11, 12, 14, 19, 21, 17, 15, 19, 23, 26, 33, 40, 36, 21, 7, 3, 5, 6, 6, 8, 11, 10, 7, 8, 11, 12, 14, 19, 21, 15, 8, 8
OFFSET
0,3
COMMENTS
Apart from initial terms and offset, same as A160573, but has a slightly nice recurrence.
FORMULA
a(0) = 0, a(2^k) = k+1; for n >= 3, if n = 2^i + j, 1 <= j < 2^i, a(n) = a(j) + a(j+1).
MAPLE
G:= x + x^2 * mul( 1 + x^(2^n-1) + x^(2^n), n=0..20);
CROSSREFS
Rows of triangle in A118977 converge to this.
Sequence in context: A238211 A338451 A145281 * A160573 A141418 A287771
KEYWORD
nonn
AUTHOR
N. J. A. Sloane, Jun 03 2009
STATUS
approved