OFFSET
1,2
COMMENTS
Rows sums are powers of 4.
LINKS
S. J. Cyvin, B. N. Cyvin and J. Brunvoll, Isomer enumeration of some polygonal systems representing polycyclic conjugated hydrocarbons, Journal of molecular structure 376.1-3 (1996): 495-505. See Section 7.3.
FORMULA
T(1,1)=T(1,3)=1, T(1,2)=2; thereafter T(n+1,k) = 3*T(n,k)+T(n,k-1).
EXAMPLE
Matrix begins:
1, 2, 1,
3, 7, 5, 1,
9, 24, 22, 8, 1,
27, 81, 90, 46, 11, 1,
81, 270, 351, 228, 79, 14, 1,
...
MAPLE
A323943 := proc(n, k)
option remember;
if n = 1 then
if k>=1 and k<=3 then
op(k, [1, 2, 1]) ;
else
0;
end if;
else
3*procname(n-1, k)+procname(n-1, k-1) ;
end if;
end proc:
seq(seq(A323943(n, k), k=1..n+2), n=1..12) ; # R. J. Mathar, May 08 2019
MATHEMATICA
T[n_, k_] := T[n, k] = If[n == 1, If[k >= 1 && k <= 3, {1, 2, 1}[[k]], 0], 3*T[n - 1, k] + T[n - 1, k - 1]];
Table[Table[T[n, k], {k, 1, n + 2}], {n, 1, 12}] // Flatten (* Jean-François Alcover, Nov 08 2023, after R. J. Mathar *)
CROSSREFS
KEYWORD
nonn,tabf,easy
AUTHOR
N. J. A. Sloane, Feb 09 2019
STATUS
approved