WORKED DEFAULT
Check the calculation with the default inputs
For n = 5 and k = 2, C(5,2) times C(5,1) divided by 5 gives N(5,2) = 10.
- Set pathn = 5
- Select peaksk = 2
- EvaluateN(5,2) = 10
LATTICE PATHS / EXACT PEAK COUNT
Count Dyck paths of semilength n that contain exactly k peaks under the standard path convention.
METHOD / WORKED EXAMPLE
Count Dyck paths of semilength n that contain exactly k peaks under the standard path convention. The result panel keeps the defining recurrence or counting identity visible so the output can be checked independently.
WORKED DEFAULT
For n = 5 and k = 2, C(5,2) times C(5,1) divided by 5 gives N(5,2) = 10.
READ THE RESULT
The result refines a Catalan total by peaks; it is not the count of all Dyck paths at that semilength.
ASSUMPTIONS AND LIMITS
Semilength is capped at 30 so every accepted Narayana count stays exact.
COMMON QUESTIONS
Evaluate N(n,k) = C(n,k)C(n,k-1)/n for one-based peak counts in Dyck paths of semilength n. Peak counts use the range one through n and partition the Catalan family. Inputs must be whole numbers inside the displayed domain; the page never rounds a decimal into an accepted index. This ties the answer to one explicit convention instead of silently mixing sequence offsets or combinatorial interpretations.
The result refines a Catalan total by peaks; it is not the count of all Dyck paths at that semilength. The two displayed binomial coefficients make the integer result reproducible. Recompute the displayed recurrence or closed form with the same inputs and compare its previous terms or counting factors. That check supports this bounded result, but it does not transfer the interpretation to a different sequence or counting object.
Semilength is capped at 30 so every accepted Narayana count stays exact. The cap preserves exact combinatorial multiplication. Combinatorial and recurrence values can grow rapidly even when the inputs look small. The conservative cap prevents browser stalls and avoids presenting an unsafe floating-point integer as exact; larger work needs arbitrary-precision software and independent resource controls.
RELATED TOOLS
Use boundary
Evaluate N(n,k) = C(n,k)C(n,k-1)/n for one-based peak counts in Dyck paths of semilength n.
N(n,k) = C(n,k)C(n,k-1)/n.