OFFSET
0,2
COMMENTS
Row sums of number triangle A386825.
Number of strings of length 2*n defined on {0,1,2,3} that have either the same number or more 0's than the combined number of 1's, 2's and 3's.
FORMULA
a(n) = 3^n*binomial(2*n, n)*hypergeom([1, -n], [1+n], -1/3). - Stefano Spezia, Aug 05 2025
a(n) ~ 2^(2*n-1) * 3^(n+1) / sqrt(Pi*n). - Vaclav Kotesovec, Aug 07 2025
D-finite with recurrence n*a(n) +(n+1)*a(n-1) +2*(-946*n+2017)*a(n-2) +144*(286*n-821)*a(n-3) +122112*(-2*n+7)*a(n-4)=0. - R. J. Mathar, Aug 26 2025
D-finite with recurrence n*(2*n-1)*a(n) +2*(-28*n^2+20*n+9)*a(n-1) +96*(2*n+1)*(2*n-3)*a(n-2)=0. - R. J. Mathar, Aug 26 2025
EXAMPLE
a(3)=694 counts the strings of length 6 as follows: 540 strings with three 0's, 135 with four 0's, 18 with five 0's, and 1 string with six 0's. Hence 694 = 540 + 135 + 18 + 1, where the summands come from the triangle in A386825.
MATHEMATICA
Table[Sum[3^(n-k) Binomial[2n, n-k], {k, 0, n}], {n, 0, 21}]
CROSSREFS
KEYWORD
nonn
AUTHOR
Enrique Navarrete, Aug 04 2025
STATUS
approved
