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.

Showing 1-5 of 5 results.

A089052 Triangle read by rows: T(n,k) (n >= 0, 0 <= k <= n) = number of partitions of n into exactly k powers of 2.

Original entry on oeis.org

1, 0, 1, 0, 1, 1, 0, 0, 1, 1, 0, 1, 1, 1, 1, 0, 0, 1, 1, 1, 1, 0, 0, 1, 2, 1, 1, 1, 0, 0, 0, 1, 2, 1, 1, 1, 0, 1, 1, 1, 2, 2, 1, 1, 1, 0, 0, 1, 1, 1, 2, 2, 1, 1, 1, 0, 0, 1, 2, 2, 2, 2, 2, 1, 1, 1, 0, 0, 0, 1, 2, 2, 2, 2, 2, 1, 1, 1, 0, 0, 1, 2, 2, 3, 3, 2, 2, 2, 1, 1, 1, 0, 0, 0, 1, 2, 2, 3, 3, 2, 2, 2, 1, 1, 1
Offset: 0

Views

Author

N. J. A. Sloane, Dec 03 2003

Keywords

Examples

			1
0 1
0 1 1
0 0 1 1
0 1 1 1 1
0 0 1 1 1 1
0 0 1 2 1 1 1
0 0 0 1 2 1 1 1
0 1 1 1 2 2 1 1 1
0 0 1 1 1 2 2 1 1 1
0 0 1 2 2 2 2 2 1 1 1
0 0 0 1 2 2 2 2 2 1 1 1
		

References

  • J. Jordan and R. Southwell, Further Properties of Reproducing Graphs, Applied Mathematics, Vol. 1 No. 5, 2010, pp. 344-350. doi: 10.4236/am.2010.15045. - From N. J. A. Sloane, Feb 03 2013

Crossrefs

Columns give A036987, A075897 (essentially), A089049, A089050, A089051, A319922.
Row sums give A018819.
See A089053 for another version.

Programs

  • Maple
    A089052 := proc(n, k)
        option remember;
        if k > n then
            return(0);
        end if;
        if k= 0 then
            if n=0 then
                return(1)
            else
                return(0);
            end if;
        end if;
        if n mod 2 = 1 then
                return procname(n-1, k-1);
        end if;
        procname(n-1, k-1)+procname(n/2, k);
    end proc:
  • Mathematica
    t[n_, k_] := t[n, k] = Which[k > n, 0, k == 0, If[n == 0, 1, 0], Mod[n, 2] == 1, t[n-1, k-1], True, t[n-1, k-1] + t[n/2, k]]; Table[t[n, k], {n, 0, 13}, {k, 0, n}] // Flatten (* Jean-François Alcover, Jan 14 2014, after Maple *)

Formula

T(2m, k) = T(m, k)+T(2m-1, k-1); T(2m+1, k) = T(2m, k-1).
G.f.: 1/Product_{k>=0} (1-y*x^(2^k)). - Vladeta Jovovic, Dec 03 2003

A342247 Number of partitions of n into seven powers of 2.

Original entry on oeis.org

1, 1, 1, 2, 2, 2, 3, 4, 3, 4, 4, 4, 4, 5, 4, 6, 5, 6, 6, 7, 5, 8, 6, 7, 6, 8, 5, 7, 5, 7, 6, 9, 6, 9, 7, 9, 7, 11, 8, 10, 7, 10, 7, 10, 6, 11, 8, 10, 7, 12, 7, 10, 7, 11, 7, 10, 5, 9, 5, 8, 5, 10, 7, 10, 6, 11, 9, 12, 8, 14, 9, 11, 7, 13, 8, 12, 8, 14, 10, 13, 8, 15, 9, 13
Offset: 7

Views

Author

Ilya Gutkovskiy, Mar 07 2021

Keywords

Crossrefs

A342248 Number of partitions of n into eight powers of 2.

Original entry on oeis.org

1, 1, 1, 2, 2, 2, 3, 4, 4, 4, 5, 4, 5, 5, 6, 6, 7, 6, 8, 7, 8, 8, 10, 7, 10, 8, 9, 7, 10, 7, 10, 9, 11, 9, 12, 9, 13, 11, 14, 10, 14, 10, 13, 10, 14, 11, 15, 10, 15, 12, 15, 10, 17, 11, 14, 10, 15, 9, 13, 8, 14, 10, 14, 10, 16, 11, 16, 12, 18, 14, 18, 11, 18, 13, 17, 12, 20
Offset: 8

Views

Author

Ilya Gutkovskiy, Mar 07 2021

Keywords

Crossrefs

A342249 Number of partitions of n into nine powers of 2.

Original entry on oeis.org

1, 1, 1, 2, 2, 2, 3, 4, 4, 5, 5, 5, 5, 6, 6, 8, 7, 8, 8, 9, 8, 11, 10, 11, 10, 12, 9, 12, 10, 12, 10, 14, 11, 14, 12, 15, 13, 17, 14, 18, 14, 17, 13, 18, 14, 19, 15, 19, 15, 20, 15, 21, 17, 21, 14, 21, 15, 19, 13, 20, 14, 19, 14, 22, 16, 21, 16, 24, 18, 24, 18, 25
Offset: 9

Views

Author

Ilya Gutkovskiy, Mar 07 2021

Keywords

Crossrefs

A342254 Number of ways to write n as an ordered sum of ten powers of 2.

Original entry on oeis.org

1, 10, 45, 130, 300, 612, 1095, 1750, 2655, 3850, 5281, 7110, 9460, 12060, 14940, 18352, 21850, 25380, 29790, 34740, 39672, 45480, 51885, 57870, 64375, 72090, 80145, 88630, 97660, 106380, 114736, 122260, 130050, 139740, 148990, 157572, 168240, 178200, 185490, 196200, 210082
Offset: 10

Views

Author

Ilya Gutkovskiy, Mar 07 2021

Keywords

Crossrefs

Programs

  • Mathematica
    nmax = 50; CoefficientList[Series[Sum[x^(2^k), {k, 0, Floor[Log[2, nmax]] + 1}]^10, {x, 0, nmax}], x] // Drop[#, 10] &

Formula

G.f.: ( Sum_{k>=0} x^(2^k) )^10.
Showing 1-5 of 5 results.