2024 AIME I Problem 6
Problem 6 of 15IntermediateCombinatorics
Consider the paths of length that follow the lines from the lower left corner to the upper right corner on an 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 three rightward runs with positive lengths summing to and two upward runs with positive lengths summing to The counts of such compositions are and giving paths.
Paths starting upward are counted symmetrically, another The total is
Tagged: lattice paths · partitions and compositions