OFFSET
0,8
COMMENTS
T(n,2) = 0 for n = 4 and for n >= 7.
EXAMPLE
Array begins:
n\k| 0 1 2 3 4 5
---+----------------------
0 | 1 1 1 1 1 1
1 | 0 1 2 3 6 7
2 | 0 0 2 6 16 36
3 | 0 0 10 52 148 448
4 | 0 0 0 116 644 2932
For n = 2 and k = 4, the following T(2,4) = 16 sequences are counted:
(1, 1, 2, 2, 4),
(1, 2, 1, 2, 1),
(1, 2, 2, 4, 4),
(1, 3, 1, 3, 1),
(1, 4, 1, 4, 1),
(2, 1, 2, 1, 2),
(2, 3, 2, 3, 2),
(2, 4, 2, 4, 2),
(3, 1, 3, 1, 3),
(3, 2, 3, 2, 3),
(3, 4, 3, 4, 3),
(4, 1, 4, 1, 4),
(4, 2, 2, 1, 1),
(4, 2, 4, 2, 4),
(4, 3, 4, 3, 4),
(4, 4, 2, 2, 1).
CROSSREFS
KEYWORD
AUTHOR
Pontus von Brömssen, Dec 27 2021
STATUS
approved