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.

A304080 Triangular array T(n,k) giving coefficients in expansion of Product_{j=1..n} (1-x^j)^2.

Original entry on oeis.org

1, 1, -2, 1, 1, -2, -1, 4, -1, -2, 1, 1, -2, -1, 2, 3, 0, -6, 0, 3, 2, -1, -2, 1, 1, -2, -1, 2, 1, 4, -4, -4, -2, 0, 10, 0, -2, -4, -4, 4, 1, 2, -1, -2, 1, 1, -2, -1, 2, 1, 2, 0, -2, -6, -2, 3, 6, 5, 2, -3, -12, -3, 2, 5, 6, 3, -2, -6, -2, 0, 2, 1, 2, -1, -2, 1
Offset: 0

Views

Author

Seiichi Manyama, May 06 2018

Keywords

Examples

			Irregular triangle starts:
n\k| 0   1   2  3   4   5   6   7   8  9  10  11  12  13  14 15 16 17  18  19 20
---+-----------------------------------------------------------------------------
0  | 1;
1  | 1, -2,  1;
2  | 1, -2, -1, 4, -1, -2,  1;
3  | 1, -2, -1, 2,  3,  0, -6,  0,  3, 2, -1, -2,  1;
4  | 1, -2, -1, 2,  1,  4, -4, -4, -2, 0, 10,  0, -2, -4, -4, 4, 1, 2, -1, -2, 1;
		

Crossrefs

Programs

  • PARI
    T(n, k) = polcoef(prod(j=1, n, (1-x^j)^2), k);
    tabf(nn) = for(n=0, nn, for(k=0, n*(n+1), print1(T(n, k), ", ")); print)