OFFSET
1,4
COMMENTS
Matrices: 1 X 1 {{-1}}, 2 X 2 {{-1, -1}, {1, -1}}, 3 X 3 {{0, -1, -1}, {-1, 1, -1}, {1, -1, 0}}, 4 X 4 {{0, 0, -1, -1}, {0, -1, 1, -1}, {-1, 1, -1, 0}, {1, -1, 0, 0}}, 5 X 5 {{0,0, 0, -1, -1}, {0, 0, -1, 1, -1}, {0, -1, 1, -1, 0}, {-1, 1, -1, 0, 0}, {1, -1, 0, 0, 0}}
FORMULA
k=1; m(n,m,d)=If[n + m - 1 == d && n > 1, k, If[n + m ==d, -1, If[n + m - 2 == d, -1, If[n == 1 && m == d, -k, 0]]]]
EXAMPLE
Triangular sequence:
{-1},
{-1, -1},
{2, 2, 1},
{1, 1, 1, -1},
{1, 0, -1, 2, 1},
{2, 0, 0, 4,1, -1},
{-1, 0, -1, -6, -4, 2, 1},
{1, 1, -1, -7, -3, 7, 1, -1},
{-2, -2, -1, 8, 6, -12, -7, 2, 1},
{-1, -1, -2, 10, 3, -23, -6, 10, 1, -1},
{-1, 0, 2, -12, -7, 34, 22, -18, -10, 2, 1}
MATHEMATICA
k = 1; An[d_] := Table[If[n + m - 1 == d && n > 1, k, If[n + m == d, -1, If[n + m - 2 == d, -1, If[n == 1 &&m == d, -k, 0]]]], {n, 1, d}, {m, 1, d}]; Join[An[1], Table[CoefficientList[CharacteristicPolynomial[An[d], x], x], {d, 1, 20}]]; Flatten[%]
CROSSREFS
KEYWORD
AUTHOR
Roger L. Bagula, Nov 02 2006
STATUS
approved