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-3 of 3 results.

A322801 Number of compositions (ordered partitions) of n into centered pentagonal numbers (A005891).

Original entry on oeis.org

1, 1, 1, 1, 1, 1, 2, 3, 4, 5, 6, 7, 9, 12, 16, 21, 28, 36, 46, 59, 76, 98, 128, 167, 217, 281, 363, 468, 605, 784, 1017, 1320, 1712, 2217, 2869, 3713, 4807, 6227, 8070, 10458, 13549, 17549, 22726, 29430, 38117, 49375, 63962, 82859, 107333, 139026, 180071
Offset: 0

Views

Author

Ilya Gutkovskiy, Dec 26 2018

Keywords

Crossrefs

Programs

  • Maple
    h:= proc(n) option remember; `if`(n<0, 0, (t->
          `if`(((t+1)*5*t+2)/2>n, t-1, t))(1+h(n-1)))
        end:
    a:= proc(n) option remember; `if`(n=0, 1,
          add(a(n-((i+1)*5*i+2)/2), i=0..h(n)))
        end:
    seq(a(n), n=0..60);  # Alois P. Heinz, Dec 28 2018
  • Mathematica
    nmax = 50; CoefficientList[Series[1/(1 - Sum[x^(5 k (k + 1)/2 + 1), {k, 0, nmax}]), {x, 0, nmax}], x]

Formula

G.f.: 1/(1 - Sum_{k>=0} x^(5*k*(k+1)/2+1)).

A322803 Number of compositions (ordered partitions) of n into centered heptagonal numbers (A069099).

Original entry on oeis.org

1, 1, 1, 1, 1, 1, 1, 1, 2, 3, 4, 5, 6, 7, 8, 9, 11, 14, 18, 23, 29, 36, 45, 55, 67, 82, 101, 125, 155, 192, 239, 297, 368, 455, 562, 694, 857, 1058, 1308, 1619, 2005, 2483, 3074, 3805, 4708, 5822, 7198, 8900, 11007, 13616, 16846, 20845, 25795, 31918, 39489
Offset: 0

Views

Author

Ilya Gutkovskiy, Dec 26 2018

Keywords

Crossrefs

Programs

  • Maple
    h:= proc(n) option remember; `if`(n<1, 0, (t->
          `if`((7*(t-1)*t+2)/2>n, t-1, t))(1+h(n-1)))
        end:
    a:= proc(n) option remember; `if`(n=0, 1,
          add(a(n-(7*(i-1)*i+2)/2), i=1..h(n)))
        end:
    seq(a(n), n=0..60);  # Alois P. Heinz, Dec 28 2018
  • Mathematica
    nmax = 54; CoefficientList[Series[1/(1 - Sum[x^(7 k (k + 1)/2 + 1), {k, 0, nmax}]), {x, 0, nmax}], x]

Formula

G.f.: 1/(1 - Sum_{k>=0} x^(7*k*(k+1)/2+1)).

A322854 Number of compositions (ordered partitions) of n into hexagonal pyramidal numbers (A002412).

Original entry on oeis.org

1, 1, 1, 1, 1, 1, 1, 2, 3, 4, 5, 6, 7, 8, 10, 13, 17, 22, 28, 35, 43, 53, 67, 85, 108, 137, 173, 217, 271, 340, 428, 540, 682, 861, 1085, 1364, 1714, 2155, 2712, 3416, 4305, 5425, 6832, 8599, 10821, 13618, 17142, 21584, 27182, 34231, 43102, 54264, 68311, 85994
Offset: 0

Views

Author

Ilya Gutkovskiy, Dec 29 2018

Keywords

Crossrefs

Programs

  • Mathematica
    nmax = 53; CoefficientList[Series[1/(1 - Sum[x^(k (k + 1) (4 k - 1)/6), {k, 1, nmax}]), {x, 0, nmax}], x]

Formula

G.f.: 1/(1 - Sum_{k>=1} x^(k*(k+1)*(4*k-1)/6)).
Showing 1-3 of 3 results.