Lattice Path Counter Calculator
Enter the grid width and height to count the monotonic lattice paths.
Result
How to use
- Enter your values in the fields above.
- Press Calculate to see your result instantly.
- Use the Share button to copy a link to your result.
About this calculator
A monotonic lattice path on an m × n grid is a route from one corner to the opposite corner that only moves right or up (never left or down) along the grid lines. The number of such paths is a classic combinatorics result: since any path consists of exactly m rightward moves and n upward moves in some order, the total count is the binomial coefficient C(m+n, m) — the number of ways to choose which m of the m+n total moves are “right” moves.
This is one of the first non-trivial results taught in combinatorics and discrete mathematics courses, and it connects directly to Pascal's triangle, binomial coefficients, and the reflection principle used to solve more advanced counting problems like paths that must avoid a diagonal (the basis of the Catalan numbers). Computer science students encounter the same structure in dynamic-programming grid problems, where counting lattice paths is a standard warm-up exercise before tackling weighted or obstacle-avoiding path counts.
Was this helpful?
Popular calculators
Loan Calculator
Monthly payment, total interest and full amortization schedule.
Percentage Calculator
Percent change, percent of, and ratio calculations.
Discount Calculator
Calculate final price, savings, and discount amount.
BMI Calculator
Body mass index from height and weight (metric or imperial).
Age Calculator
Compute your exact age in years, months and days from a birth date.
Compound Interest Calculator
Calculate the final amount and interest earned with compounding.
All Calculators
No calculators found
Comments (0)