OFFSET
1,5
COMMENTS
The value T(n,k) is an upper bound for A387098(n,k).
The terms are computed via matrix exponentiation. Let S be the set of all valid single-row configurations of k kings on n cells. Let M be the |S| X |S| transition matrix where m_ij = 1 if row configuration j can follow row i. Then T(n,k) is the sum of all entries in M^(n-1).
LINKS
Sean A. Irvine, Table of n, a(n) for n = 1..199 (rows 1..36 flattened, terms 1..142 from Hamidreza Maleki Tirabadi)
Sean A. Irvine, Java program (github)
Hamidreza Maleki Tirabadi, Kings_Problem_UpperBound_Counter go program.
FORMULA
T(n,k) = Sum(M^(n-1) * v_1) where v_1 is the all-ones vector of size |S| and M is defined in the comments.
EXAMPLE
Triangle begins:
1, 1;
1;
1, 2;
1, 16;
1, 184;
1, 2642;
1, 45514, 6;
1, 911642, 1550;
1, 20793594, 988556;
1, 531713286, 587256692;
1, 15059408170, 380941109984, 20;
1, 467843350146, 269426066012742, 263928;
...
PROG
(Go) // See Links.
CROSSREFS
KEYWORD
nonn,tabf
AUTHOR
Hamidreza Maleki Tirabadi, Nov 05 2025
STATUS
approved
