Question 256
Cozy the Cat and Dash the Dog are going up a staircase with a certain number of steps. However, instead of walking up the steps one at a time, both Cozy and Dash jump. Cozy goes two steps up with each jump (though if necessary, he will just jump the last step). Dash goes five steps up with each jump (though if necessary, he will just jump the last steps if there are fewer than $5$ steps left). Suppose that Dash takes $19$ fewer jumps than Cozy to reach the top of the staircase. Let $s$ denote the sum of all possible numbers of steps this staircase can have. What is the sum of the digits of $s$?
Xem đáp án và lời giải
Đáp án: $13$
Let $t$ be the total number of steps in the staircase. Cozy takes $\lceil t/2 \rceil$ jumps, and Dash takes $\lceil t/5 \rceil$ jumps. The given condition is: \[ \lceil t/2 \rceil - \lceil t/5 \rceil = 19. \] Let $k = \lceil t/5 \rceil$ be the number of jumps Dash takes. Then $5k - 4 \leqslant t \leqslant 5k$. Cozy takes $k + 19$ jumps, which means $2(k + 19) - 1 \leqslant t \leqslant 2(k + 19)$, or: \[ 2k + 37 \leqslant t \leqslant 2k + 38. \] For there to be an overlap between $[5k - 4, 5k]$ and $[2k + 37, 2k + 38]$: \[ 5k - 4 \leqslant 2k + 38 \implies 3k \leqslant 42 \implies k \leqslant 14, \] \[ 5k \geqslant 2k + 37 \implies 3k \geqslant 37 \implies k \geqslant 13. \] Thus $k$ can only be $13$ or $14$:
- If $k = 13$: $[5k - 4, 5k] = [61, 65]$ and $[2k + 37, 2k + 38] = [63, 64]$. The common integers are $t = 63$ and $t = 64$.
- Check $t = 63$: $\lceil 63/2 \rceil = 32$, $\lceil 63/5 \rceil = 13$, $32 - 13 = 19$ (valid).
- Check $t = 64$: $\lceil 64/2 \rceil = 32$, $\lceil 64/5 \rceil = 13$, $32 - 13 = 19$ (valid).
- If $k = 14$: $[5k - 4, 5k] = [66, 70]$ and $[2k + 37, 2k + 38] = [65, 66]$. The common integer is $t = 66$.
- Check $t = 66$: $\lceil 66/2 \rceil = 33$, $\lceil 66/5 \rceil = 14$, $33 - 14 = 19$ (valid).
The possible numbers of steps are $63, 64, 66$. Their sum is: \[ s = 63 + 64 + 66 = 193. \] The sum of the digits of $s$ is $1 + 9 + 3 = 13$.