OFFSET
0,2
COMMENTS
For n = 1, there is no (n-1)-th up step, a(1) = 3 is the total number of down steps before the first up step.
LINKS
Michael De Vlieger, Table of n, a(n) for n = 0..1027
Andrei Asinowski, Benjamin Hackl, and Sarah J. Selkirk, Down-step statistics in generalized Dyck paths, arXiv:2007.15562 [math.CO], 2020-2022.
FORMULA
a(0) = 0 and a(n) = 3*binomial(4*n+7, n+1)/(4*n+7) - 12*binomial(4*n+3, n)/(4*n+3) for n > 0.
a(n) ~ 37 * 2^(8*n+13/2) / (3^(3*n+11/2) * n^(3/2) * sqrt(Pi)). - Amiram Eldar, Oct 23 2025
EXAMPLE
For n = 2, the 3_2-Dyck paths are UDDDDDUD, UDDDDUDD, UDDDUDDD, UDDUDDDD, UDUDDDDD, UUDDDDDD, DUDDDDUD, DUDDDUDD, DUDDUDDD, DUDUDDDD, DUUDDDDD, DDUDDDUD, DDUDDUDD, DDUDUDDD, DDUUDDDD. Therefore the total number of down steps between the first and second up steps is a(2) = 5 + 4 + 3 + 2 + 1 + 0 + 4 + 3 + 2 + 1 + 0 + 3 + 2 + 1 + 0 = 31.
MATHEMATICA
a[0] = 0; a[n_] := 3*Binomial[4*n+7, n+1]/(4*n + 7) - 12 * Binomial[4*n + 3, n]/(4*n + 3); Array[a, 22, 0]
PROG
(SageMath) [3*binomial(4*n + 7, n + 1)/(4*n + 7) - 12*binomial(4*n + 3, n)/(4*n + 3) if n > 0 else 0 for n in srange(30)] # Benjamin Hackl, May 19 2020
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Sarah Selkirk, May 18 2020
STATUS
approved
