Skip to main content

2024 AIME I Problem 6

Problem 6 of 15IntermediateCombinatorics

Consider the paths of length 1616 that follow the lines from the lower left corner to the upper right corner on an 8×88 \times 8 grid. Find the number of such paths that change direction exactly four times, as in the examples shown below.

Your answer

Integer from 0 to 999
Show solution

Solution

A path that changes direction exactly four times consists of five maximal straight runs, alternating between rightward and upward moves. If the first run is rightward, the pattern is R,U,R,U,R:R, U, R, U, R: three rightward runs with positive lengths summing to 8,8, and two upward runs with positive lengths summing to 8.8. The counts of such compositions are (72)=21\binom{7}{2} = 21 and (71)=7,\binom{7}{1} = 7, giving 21⋅7=14721 \cdot 7 = 147 paths. Paths starting upward are counted symmetrically, another 147.147. The total is 147+147=294.147 + 147 = 294.
AoPS wiki

Tagged: lattice paths · partitions and compositions

More practice