Skip to main content

2018 AIME II Problem 8

Problem 8 of 15IntermediateCombinatoricsProblem-Solving Techniques

A frog is positioned at the origin in the coordinate plane. From the point (x,y),(x, y), the frog can jump to any of the points (x+1,y),(x + 1, y), (x+2,y),(x + 2, y), (x,y+1),(x, y + 1), or (x,y+2).(x, y + 2). Find the number of distinct sequences of jumps in which the frog begins at (0,0)(0, 0) and ends at (4,4).(4, 4).

Your answer

Integer from 0 to 999
Show solution

Solution

The horizontal jumps are steps of 11 or 22 summing to 4,4, so as a multiset they are {1,1,1,1},\{1,1,1,1\}, {1,1,2},\{1,1,2\}, or {2,2},\{2,2\}, and the same holds for the vertical jumps. For any choice of the two multisets, every ordering of all the jumps is a valid sequence, and the number of orderings is the multinomial coefficient of the combined multiset. The nine cases give (84)=70,7!4! 2!=105,6!4! 2!=15, \begin{aligned} &\binom{8}{4} = 70, \\ &\quad \frac{7!}{4!\,2!} = 105, \\ &\quad \frac{6!}{4!\,2!} = 15, \end{aligned} 6!2! 2!=180,5!2! 2!=30,(42)=6. \begin{aligned} &\frac{6!}{2!\,2!} = 180, \\ &\quad \frac{5!}{2!\,2!} = 30, \\ &\quad \binom{4}{2} = 6. \end{aligned} The values 105,105, 15,15, and 3030 each occur twice. The total is 70+2⋅105+2⋅1570 + 2 \cdot 105 + 2 \cdot 15 +180+2⋅30+6+ 180 + 2 \cdot 30 + 6 =556.= 556.
AoPS wiki

Tagged: partitions and compositions · multiset permutations · casework

More practice