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=CharacteristicPolynomial[{{2, -4}, {-1, 2}}, x] or CharacteristicPolynomial[{{2, -1}, {-4, 2}}, x]
EXAMPLE
{1},
{-2, 1},
{0, -4, 1},
{2, 7, -6, 1},
{-4, -8, 18, -8, 1},
{6, 5, -38, 33, -10,1},
{-8, 4, 63, -96, 52, -12, 1},
{10, -21, -84, 222, -190, 75, -14, 1},
{-12, 48, 84, -432, 550, -328, 102, -16, 1},
{14, -87, -36, 726, -1342, 1131, -518, 133, -18, 1},
{-16, 140, -99, -1056, 2860, -3276, 2065, -768, 168, -20, 1}
MATHEMATICA
Clear[p, a] p[x, 0] = 1; p[x, 1] = -2 + x; p[x, 2] = x^2 - 4*x ; 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