2015 AMC 10B Problem 21
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 ?
Show solution without answering
Key insight
Jump counts are steps divided by 2 or 5, rounded up. Their difference stays close to 3/10 of the steps, so only 62 to 66 need checking.
Solution
Step 1: how many jumps for steps?
Cozy jumps steps at a time, with one short jump at the end if is odd. So for steps he needs jumps: , rounded up. Dash jumps at a time, so for he needs jumps: , rounded up.
So Cozy needs rounded up, and Dash needs rounded up. We want Cozy's count minus Dash's count to be .
Step 2: narrow down .
Rounding up adds less than one jump. More exactly:
- Cozy's count is between and .
- Dash's count is between and .
Without rounding, the difference would be . The rounding can push the difference up by at most or down by at most . So
The right half gives , so . The left half gives , so . Only are possible.
Step 3: check each one.
| Cozy's jumps | Dash's jumps | Difference | Works? | |
|---|---|---|---|---|
| no | ||||
| yes | ||||
| yes | ||||
| no | ||||
| yes |
Step 4: finish. The possible staircases have , or steps, so . Its digits add to .
The answer is .
Why this works
"Take a short jump at the end if needed" means dividing and rounding up. Rounding is hard to solve exactly, but it never changes a number by a whole jump, so the equation traps in a short range. Then a small table finishes the job. When a problem involves rounding up or down, first find a short range, then check every number in it.
Concise solution
A shorter write-up, the way contest solutions are usually written. It may take a different route from the solution above.
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 .
Review in the AoPS books
- Introduction to Number Theory, Chapter 1: Integers: The Basics
- Introduction to Algebra, Chapter 3: One-Variable Linear Equations (§3.3, §3.4)
- Prealgebra, Chapter 15: Problem-Solving Strategies (§15.2)
- Introduction to Algebra, Chapter 20: Special Functions (§20.3)
Similar problems
Problem © Mathematical Association of America (MAA), American Mathematics Competitions. Reproduced for non-commercial educational use. Solution and commentary are original to this site.