OFFSET
0,3
COMMENTS
The word (w_1, w_2, ..., w_r)^m is defined as the word obtained by concatenating (w_1, w_2, ..., w_r) m times.
A word w' = (w'_1, w'_2, ..., w'_s) is said be a subword of a given word w = (w_1, w_2, ..., w_r), if there is some set P = {p_1 < ... < p_s} of integers from 1 to r satisfying w_{p_j} = w'_j for all 1 <= j <= s, and we call the set P an occurrence of w' in w (see Preliminaries section at pp. 2-3 in Fang).
LINKS
Wenjie Fang, Maximal number of subword occurrences in a word, arXiv:2406.02971 [math.CO], 2024. See Proposition 4.10 at page 9 in Fang.
FORMULA
G.f.: (1 - x)^3/((1 - x)^4 - 9*x*(1 + 2*x)^2*y).
EXAMPLE
The triangle begins as:
1;
1, 9;
1, 81, 81;
1, 351, 1377, 729;
1, 1035, 11421, 18225, 6561;
1, 2430, 62613, 223803, 216513, 59049;
...
T(1,1) = 9 since there are 9 occurrences of (0011)^1 = 0011 in (000111)^1 = 000111: {1, 2, 4, 5}, {1, 2, 4, 6}, {1, 2, 5, 6}, {1, 3, 4, 5}, {1, 3, 4, 6}, {1, 3, 5, 6}, {2, 3, 4, 5}, {2, 3, 4, 6}, {2, 3, 5, 6}.
MATHEMATICA
T[n_, k_]:=SeriesCoefficient[(1-x)^3/((1-x)^4-9x(1+2x)^2y), {x, 0, n}, {y, 0, k}]; Table[T[n, k], {n, 0, 8}, {k, 0, n}]//Flatten
CROSSREFS
KEYWORD
nonn,tabl
AUTHOR
Stefano Spezia, Jun 11 2024
STATUS
approved