OFFSET
1,2
COMMENTS
FORMULA
p(x, n) = (-2 + x)*p(x, n - 1) - p(x, n - 2) Three start vectors necessary: p(x,0)=1;p(x,1)=2-x; p(x,2)=x^2-4*x-1=CharacteristicPolynomial[{{2, -5}, {-1, 2}}, x] or CharacteristicPolynomial[{{2, -1}, {-5, 2}}, x]
EXAMPLE
{1},
{-2, 1},
{-1, -4, 1},
{4, 6, -6, 1},
{-7, -4, 17, -8, 1},
{10, -5, -32, 32, -10, 1},
{-13, 24, 42, -88,51, -12, 1},
{16, -56, -28,186, -180, 74, -14, 1},
{-19, 104, -42, -312, 495, -316, 101, -16, 1},
{22, -171, 216, 396, -1122, 1053, -504, 132, -18, 1},
{-25, 260, -561, -264,2145, -2912, 1960, -752, 167, -20, 1}
MATHEMATICA
Clear[p, a] p[x, 0] = 1; p[x, 1] = -2 + x; p[x, 2] = x^2 - 4*x - 1; p[x_, n_] := p[x, n] = (-2 + x)*p[x, n - 1] - p[x, n - 2]; Table[ExpandAll[p[x, n]], {n, 0, 10}]; a = Table[CoefficientList[p[x, n], x], {n, 0, 10}] Flatten[a]
CROSSREFS
KEYWORD
AUTHOR
Roger L. Bagula, Apr 12 2008
STATUS
approved