Question 91
A frog is positioned at the origin in the coordinate plane. From the point $(x, y)$, the frog can jump to any of the points $(x + 1, y)$, $(x + 2, y)$, $(x, y + 1)$, or $(x, y + 2)$. Find the number of distinct sequences of jumps in which the frog begins at $(0, 0)$ and ends at $(4, 4)$.
Xem đáp án và lời giải
Đáp án: $556$
Let the jumps in the $x$-direction be of size $1$ or $2$, and the jumps in the $y$-direction be of size $1$ or $2$. The frog must reach $x = 4$ and $y = 4$. The sequences of step sizes summing to $4$ are compositions of $4$ using $1$s and $2$s: $2 + 2$: $2$ steps ($\dfrac{2!}{2!} = 1$ sequence). $2 + 1 + 1$: $3$ steps ($\dfrac{3!}{1! 2!} = 3$ sequences). $1 + 1 + 1 + 1$: $4$ steps ($\dfrac{4!}{4!} = 1$ sequence). Total compositions of $4$ using $1$ and $2$ is $1 + 3 + 1 = 5$ compositions (the Fibonacci numbers $F_5 = 5$). Let $a$ be the number of jumps in the $x$-direction and $b$ be the number of jumps in the $y$-direction. The frog performs $a$ horizontal jumps and $b$ vertical jumps interleaved in any order, so there are $C_{a+b}^a$ ways to interleave them. We consider all pairs of step counts $(a, b)$: $a = 2, b = 2$: $1$ choice for $x$, $1$ choice for $y$, $C_4^2 = 6$ interleavings: $1 \times 1 \times 6 = 6$. $a = 2, b = 3$: $1 \times 3 \times C_5^2 = 3 \times 10 = 30$. $a = 2, b = 4$: $1 \times 1 \times C_6^2 = 1 \times 15 = 15$. $a = 3, b = 2$: $3 \times 1 \times C_5^3 = 3 \times 10 = 30$. $a = 3, b = 3$: $3 \times 3 \times C_6^3 = 9 \times 20 = 180$. $a = 3, b = 4$: $3 \times 1 \times C_7^3 = 3 \times 35 = 105$. $a = 4, b = 2$: $1 \times 1 \times C_6^4 = 1 \times 15 = 15$. $a = 4, b = 3$: $1 \times 3 \times C_7^4 = 3 \times 35 = 105$. $a = 4, b = 4$: $1 \times 1 \times C_8^4 = 1 \times 70 = 70$. Summing all cases: \[ 6 + 30 + 15 + 30 + 180 + 105 + 15 + 105 + 70 = 556. \]