|
|
A230952
|
|
Boustrophedon transform of Hamming weight (A000120).
|
|
4
|
|
|
0, 1, 3, 8, 23, 72, 280, 1242, 6331, 36236, 230726, 1615584, 12342422, 102145644, 910393530, 8693609421, 88552405435, 958361506524, 10982014291650, 132835979792636, 1691320230842116, 22611285878526978, 316685416851528722, 4636988553066906265
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
0,3
|
|
LINKS
|
J. Millar, N. J. A. Sloane and N. E. Young, A new operation on sequences: the Boustrophedon transform, J. Combin. Theory, 17A 44-54 1996 (Abstract, pdf, ps).
|
|
FORMULA
|
|
|
MATHEMATICA
|
T[n_, k_] := (n!/k!) SeriesCoefficient[(1 + Sin[x])/Cos[x], {x, 0, n - k}];
a[n_] := Sum[T[n, k] DigitCount[k, 2, 1], {k, 0, n}];
|
|
PROG
|
(Haskell)
a230952 n = sum $ zipWith (*) (a109449_row n) $ map fromIntegral a000120_list
(Python 3.10+)
from itertools import accumulate, count, islice
def A230952_gen(): # generator of terms
blist = tuple()
for i in count(0):
yield (blist := tuple(accumulate(reversed(blist), initial=i.bit_count())))[-1]
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn
|
|
AUTHOR
|
|
|
STATUS
|
approved
|
|
|
|