|
|
A259875
|
|
Irregular triangle read by rows: coefficients (highest degree first) of polynomials defined by p_0(x)=0, p_1(x)=p_2(x)=1, p_3(x)=x+1; p_n(x)=x*p_{n-2}(x)-p_{n-4}(x).
|
|
1
|
|
|
0, 1, 1, 1, 1, 1, 0, 1, 1, -1, 1, 0, -1, 1, 1, -2, -1, 1, 0, -2, 0, 1, 1, -3, -2, 1, 1, 0, -3, 0, 1, 1, 1, -4, -3, 3, 1, 1, 0, -4, 0, 3, 0, 1, 1, -5, -4, 6, 3, -1, 1, 0, -5, 0, 6, 0, -1, 1, 1, -6, -5, 10, 6, -4, -1, 1, 0, -6, 0, 10, 0, -4, 0, 1, 1, -7, -6, 15, 10, -10, -4, 1
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
0,16
|
|
LINKS
|
|
|
EXAMPLE
|
Triangle begins:
0;
1;
1;
1, 1;
1, 0;
1, 1, -1;
1, 0, -1;
1, 1, -2, -1;
1, 0, -2, 0;
1, 1, -3, -2, 1;
1, 0, -3, 0, 1;
1, 1, -4, -3, 3, 1;
1, 0, -4, 0, 3, 0;
...
|
|
MAPLE
|
p:= proc(n) option remember; expand(`if`(n=0, 0,
`if`(n<3, 1, `if`(n=3, x+1, x*p(n-2)-p(n-4)))))
end:
T:= n-> `if`(n=0, 0, (s-> seq(coeff(s, x, degree(s)-i)
, i=0..degree(s)))(p(n))):
|
|
MATHEMATICA
|
p[0] = 0&; p[1] = p[2] = 1&; p[3] = #+1&; p[n_][x_] := p[n, x] = x*p[n-2][x] - p[n-4][x];
row[0] = {0}; row[n_] := CoefficientList[p[n][x], x] // Reverse;
|
|
CROSSREFS
|
|
|
KEYWORD
|
|
|
AUTHOR
|
|
|
EXTENSIONS
|
|
|
STATUS
|
approved
|
|
|
|