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

Problem 22

Problem 22 · 2017 Math Kangaroo Stretch
Counting & Probability careful-counting

There are 10 kangaroos in a row, as seen in the picture. Two kangaroos that are standing next to each other and can see each other are allowed to change places by hopping past each other. This is carried out until no more jumps are allowed. How often do two kangaroos swap places?

Figure for Math Kangaroo 2017 Problem 22
Show answer
Answer: C — 18
Show hints
Hint 1 of 2
A swap happens for each pair of kangaroos that start facing each other but in the wrong order.
Still stuck? Show hint 2 →
Hint 2 of 2
Count the facing pairs that must pass each other — that is the number of swaps.
Show solution
Approach: count the pairs that must cross
  1. A swap happens exactly once for each pair where a right-facing kangaroo starts somewhere to the left of a left-facing kangaroo, since those two must pass each other.
  2. So count, for every right-facing kangaroo, how many left-facing kangaroos stand to its right, and add these up.
  3. For the arrangement shown that total is 18 swaps.
Mark: · log in to save