OFFSET
0,3
COMMENTS
Diagonal terms are switched to generate A124573. The row sum of row n is 4^n.
LINKS
Nathaniel Johnston, Table of n, a(n) for n = 0..5000
EXAMPLE
Row 3 = [1, 39, 15, 9] since when n = 3 we have M^3 = [[1, 39, 15, 9], [0, 27, 13, 21], [0, 0, 1, 39], [0, 0, 0, 27]]. The first few rows of the triangle are:
1;
1, 3;
1, 12, 3;
1, 39, 15, 9;
1, 120, 54, 72, 9;
1, 363, 174, 378, 81, 27;
...
MAPLE
with (LinearAlgebra): for n from 0 to 10 do M := Matrix (n+1, (i, j)->`if`(i=j and i mod 2 = 1, 1, `if`(i=j, 3, `if`(i=j-1 and i mod 2 = 1, 3, `if`(i=j-1, 1, 0))))): X := M^n: for m from 0 to n do printf("%d, ", X[1, m+1]): od: od: # Nathaniel Johnston, Apr 28 2011
CROSSREFS
KEYWORD
AUTHOR
Gary W. Adamson & Roger L. Bagula, Nov 04 2006
STATUS
approved