OFFSET
0,16
LINKS
Alois P. Heinz, Rows n = 0..200, flattened
A. F. Horadam, R. P. Loh and A. G. Shannon, Divisibility properties of some Fibonacci-type sequences, pp. 55-64 of Combinatorial Mathematics VI (Armidale 1978), Lect. Notes Math. 748, 1979. [Annotated scanned copy]
A. F. Horadam, R. P. Loh and A. G. Shannon, Divisibility properties of some Fibonacci-type sequences, pp. 55-64 of Combinatorial Mathematics VI (Armidale 1978), Lect. Notes Math. 748, 1979.
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))):
seq(T(n), n=0..20); # Alois P. Heinz, Jul 10 2015
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;
Table[row[n], {n, 0, 20}] // Flatten (* Jean-François Alcover, Jun 12 2018 *)
CROSSREFS
KEYWORD
AUTHOR
N. J. A. Sloane, Jul 09 2015
EXTENSIONS
More terms from Alois P. Heinz, Jul 10 2015
STATUS
approved