OFFSET
0,20
COMMENTS
Row sums are: {1, 1, 0, -2, -4, -4, 0, 8, 16, 16, 0, ...}.
LINKS
G. C. Greubel, Rows n=0..30 of triangle, flattened
FORMULA
Let p(x,n) = Product_{j=1..n} (1 + i*x^j), p(x,0)=1, with i being the imaginary unit, then the n-th row is the real part of the coefficients of p(x,n).
EXAMPLE
Irregular triangle begins as:
1.
1, 0.
1, 0, 0, -1.
1, 0, 0, -1, -1, -1, 0.
1, 0, 0, -1, -1, -2, -1, -1, 0, 0, 1.
1, 0, 0, -1, -1, -2, -2, -2, -1, -1, 1, 1, 1, 1, 1, 0. ...
MATHEMATICA
p[x_, n_]:= If[n == 0, 1, Product[(1 + I*x^i), {i, 1, n}]];
Table[Expand[p[x, n]], {n, 0, 10}];
Table[Re[CoefficientList[p[x, n], x]], {n, 0, 10}]//Flatten
PROG
(PARI) row(n) = if (n==0, 1, apply(x->real(x), Vecrev(prod(j=1, n, (1 + I*x^j))))); \\ Michel Marcus, Apr 02 2019
CROSSREFS
KEYWORD
AUTHOR
Roger L. Bagula, Sep 05 2008
EXTENSIONS
Edited by G. C. Greubel, Apr 01 2019
STATUS
approved