cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A230952 Boustrophedon transform of Hamming weight (A000120).

Original entry on oeis.org

0, 1, 3, 8, 23, 72, 280, 1242, 6331, 36236, 230726, 1615584, 12342422, 102145644, 910393530, 8693609421, 88552405435, 958361506524, 10982014291650, 132835979792636, 1691320230842116, 22611285878526978, 316685416851528722, 4636988553066906265
Offset: 0

Views

Author

Reinhard Zumkeller, Nov 03 2013

Keywords

Crossrefs

Programs

  • 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]
    A230952_list = list(islice(A230952_gen(),40)) # Chai Wah Wu, Jun 12 2022
  • 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}];
    Table[a[n], {n, 0, 23}] (* Jean-François Alcover, Jul 23 2019 *)

Formula

a(n) = Sum_{k=0..n} A109449(n,k)*A000120(k).