Ten routes across a small grid: count paths by their final step

A small grid can turn a counting problem into a sequence of additions. Imagine moving from the lower-left corner to the upper-right corner, always along the grid lines. If only steps to the right and upward are allowed, how many different routes reach the destination?

This workshop uses an imaginary diagram. It describes no real journey, learner or course result. We count routes under stated rules, not travel times or the likelihood of choosing a route.

Define the grid and a route

The destination is three steps to the right and two steps up from the start. Every step moves exactly one grid interval. Moving left or down is forbidden. All grid lines are available, and a route ends when it first reaches the destination.

Two routes are different if their sequences of steps differ. Right, right, right, up, up is therefore different from up, up, right, right, right, even though both have the same start and finish.

Every permitted route contains three rightward steps and two upward steps, five steps altogether. Equal length does not make the routes identical.

Label the starting point

Write 1 at the starting corner. This represents one way to be at the start before taking any steps: the empty sequence of steps. It does not represent an extra physical movement.

Along the bottom edge, every corner can be reached in only one way, by repeatedly moving right. Along the left edge, every corner can likewise be reached in only one way, by repeatedly moving up. Label those edge corners with 1.

Add the two incoming counts

At an interior corner, the final step must come either from the corner immediately to the left or from the corner immediately below. These two groups of routes are separate because their final steps differ.

Add their counts to find the number of routes to the current corner. No route is counted twice, and every permitted route belongs to one of these two groups.

Build the rows

Read each row from left to right, including the left edge. The bottom row has the counts 1, 1, 1, 1.

One step above it, the counts are 1, 2, 3, 4. For example, the third entry is 3 because the corner to its left has 2 routes and the corner below has 1.

Two steps above the bottom, the counts are 1, 3, 6, 10. The destination is the last corner in this row. Its count is 6 + 4 = 10. There are ten permitted routes.

Check by choosing the upward positions

A route has five step positions. Choose which two positions contain upward steps; the other three must contain rightward steps. The possible position pairs are 12, 13, 14, 15, 23, 24, 25, 34, 35 and 45.

There are ten pairs, agreeing with the grid calculation. The pair 25, for example, means right, up, right, right, up.

Keep the rules beside the answer

The addition rule depends on the allowed directions and available edges. If an edge is blocked, its incoming routes must be excluded. If backward steps are allowed, the simple row-by-row argument no longer describes the same problem.

Write the dimensions and permitted movements before counting. Then check that each addition combines separate groups and includes every possible final step. A correct total is easier to trust when the reason for each addition is visible.

Academia Master Trader is a Brazilian educational project. Domain: academiamastertrader.com.br. Keep learning on Aprenda: https://academiamastertrader.com.br/materiais/aprenda/