🦘 Math Kangaroo Grade All Felix 1-2 Ecolier 3-4 Benjamin 5-6 Kadett 7-8 Junior 9-10 Student 11-12 ⇄ switch contest
2021 Math Kangaroo

Problem 27

Problem 27 · 2021 Math Kangaroo Stretch
Geometry & Measurement Number Theory spatial-reasoninggrid-counting

A 3×4×5 cuboid consists of 60 identical small cubes. A termite eats its way along the diagonal from P to Q. This diagonal does not intersect the edges of any small cube inside the cuboid. How many of the small cubes does it pass through on its journey?

Figure for Math Kangaroo 2021 Problem 27
Show answer
Answer: C — 10
Show hints
Hint 1 of 2
The diagonal of an a×b×c grid crosses a + b + c interior 'sheets', but crossings at shared edges count once.
Still stuck? Show hint 2 →
Hint 2 of 2
Use a + b + c minus the pairwise gcds plus the triple gcd.
Show solution
Approach: count unit cubes a space-diagonal passes through
  1. For a 3×4×5 box the count is a+b+c − gcd(a,b) − gcd(b,c) − gcd(a,c) + gcd(a,b,c).
  2. = 3+4+5 − 1 − 1 − 1 + 1 = 10.
  3. So the answer is C.
Mark: · log in to save