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.

A049286 Triangle of partitions v(d,c) defined in A002572.

Original entry on oeis.org

1, 1, 1, 2, 1, 1, 3, 2, 1, 1, 5, 4, 2, 1, 1, 9, 7, 4, 2, 1, 1, 16, 12, 7, 4, 2, 1, 1, 28, 22, 13, 7, 4, 2, 1, 1, 50, 39, 24, 13, 7, 4, 2, 1, 1, 89, 70, 42, 24, 13, 7, 4, 2, 1, 1, 159, 126, 76, 43, 24, 13, 7, 4, 2, 1, 1, 285, 225, 137, 78, 43, 24, 13, 7, 4, 2, 1, 1, 510
Offset: 1

Views

Author

Keywords

Comments

Rows are the columns in the table at the end of the Minc reference, read top to bottom. - Joerg Arndt, Jan 15 2024

Examples

			Triangle begins
    1,
    1,   1,
    2,   1,   1,
    3,   2,   1,  1,
    5,   4,   2,  1,  1,
    9,   7,   4,  2,  1,  1,
   16,  12,   7,  4,  2,  1,  1,
   28,  22,  13,  7,  4,  2,  1, 1,
   50,  39,  24, 13,  7,  4,  2, 1, 1,
   89,  70,  42, 24, 13,  7,  4, 2, 1, 1,
  159, 126,  76, 43, 24, 13,  7, 4, 2, 1, 1,
  285, 225, 137, 78, 43, 24, 13, 7, 4, 2, 1, 1,
  ...
Rows read backward approach A002843. - _Joerg Arndt_, Jan 15 2024
		

Crossrefs

See A047913 for another version.

Programs

  • Maple
    v := proc(c,d) option remember; local i; if d < 0 or c < 0 then 0 elif d = c then 1 else add(v(i,d-c),i=1..2*c); fi; end;
  • Mathematica
    v[c_, d_] := v[c, d] = If[d < 0 || c < 0, 0, If[d == c, 1, Sum[v[i, d - c], {i, 1, 2*c}]]]; Table[v[d, c], {c, 1, 13}, {d, 1, c}] // Flatten (* Jean-François Alcover, Dec 10 2012, after Maple *)