OFFSET
0,5
COMMENTS
The cases when n=0,1 are a bit special, involving some cancellations.
FORMULA
The n-th row is given by the polynomial (1+x*n)^(n-2)*(1+2*n*x+n*x^2).
EXAMPLE
The first few rows are:
1;
1, 1;
1, 4, 2;
1, 9, 21, 9;
1, 16, 84, 160, 64;
1, 25, 230, 950, 1625, 625;
...
MATHEMATICA
row[n_]:=CoefficientList[(1+x*n)^(n-2)*(1+2*n*x+n*x^2), x]; Array[row, 9, 0]//Flatten (* Stefano Spezia, Apr 26 2026 *)
PROG
(SageMath)
x = polygen(QQ, 'x')
def row(n):
return (1+x*n)**(n-2)*(1+2*n*x+n*x**2)
(PARI) row(n) = Vecrev((1+x*n)^(n-2)*(1+2*n*x+n*x^2)); \\ Michel Marcus, Apr 26 2026
CROSSREFS
KEYWORD
nonn,tabl
AUTHOR
F. Chapoton, Apr 26 2026
STATUS
approved