OFFSET
2,1
COMMENTS
The general string enumeration problem of counting strings with k+k'-1 X's, m+m' Y's and n+n' Z's in which the k'th X is placed after at least m of the Y's and n of the Z's may be expressed in terms of an integral of incomplete Beta functions and evaluated in terms of Kampe de Feriet functions (see Connor & Fewster, 2022). Other special cases include A351583 and A351585.
LINKS
Stephen B. Connor and Christopher J. Fewster, Integrals of incomplete beta functions, with applications to order statistics, random walks and string enumeration, Brazilian Journal of Probability and Statistics 2022, Vol. 36, No. 1, 185-198; arXiv version, arXiv:2104.12216 [math.CA], 201.
FORMULA
T(n,k) = (4*(n - k)*k + 3*n + 2)*binomial(2*n + 2, 2*k + 1)/(4*n + 4) - n*binomial(n, k)^2/2. See Connor & Fewster (2022).
EXAMPLE
Triangle starts:
16;
53, 53;
124, 306, 124;
240, 1103, 1103, 240;
412, 3043, 5664, 3043, 412;
...
MAPLE
T:=(n, k)->(4*(n - k)*k + 3*n + 2)*binomial(2*n + 2, 2*k + 1)/(4*n + 4) - n*binomial(n, k)^2/2; [seq(seq(T(n, k), k=1..n-1), n=2..10)];
MATHEMATICA
t[n_, k_]:=(4*k*(n-k)+3*n+2)/(4*n+4)*Binomial[2*n+2, 2*k+1]- (n/2)*Binomial[n, k]^2; Table[t[n, k], {n, 2, 10}, {k, 1, n-1}]
CROSSREFS
KEYWORD
AUTHOR
Christopher J. Fewster, Feb 14 2022
STATUS
approved