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 Dash takes 19 fewer jumps than Cozy to reach the top of the staircase. Let denote the sum of all possible numbers of steps this staircase can have. What is the sum of the digits of ?
- A)
- B)
- C)
- D)
- E)
Answer
D
Key insight
Jumps are ceilings, and ceil(n/2) - ceil(n/5) stays within 1 of 3n/10, so only n = 62 to 66 need checking.
Solution
For a staircase of steps, Cozy needs jumps and Dash needs jumps. We need
Bound the ceilings: and . Subtracting,
so , i.e. . Only can work.
Check each:
- : . No.
- : . Yes.
- : . Yes.
- : . No.
- : . Yes.
So , and the sum of its digits is .
The answer is .
Why this works
"Jump the last few steps if fewer remain" is the ceiling function. Ceilings are awkward to solve exactly, but each one is trapped within a known distance of the fraction it rounds, so the equation pins to a short interval; from there a table finishes the job. Whenever a problem mixes floors or ceilings, bound first, enumerate second.
The trap
Treating the jump counts as n/2 and n/5 exactly (giving the single value n = 63.33) or forgetting that a partial final jump still counts as one jump.
Common mistakes
- Treating the jump counts as n/2 and n/5 exactly (giving the single value n = 63.33) or forgetting that a partial final jump still counts as one jump.
- Reporting or the number of solutions () instead of the digit sum, or missing by stopping the search at .
Techniques
Bound the quantity above/below or estimate to pin it down · Organized listing / direct enumeration