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

Problem 3

Problem 3 · 2015 Math Kangaroo Easy
Logic & Word Problems gridcareful-counting

Sam paints the 9 small squares in the shape either white, grey or black. What is the minimum number he must paint over so that no two squares sharing a side have the same colour?

Figure for Math Kangaroo 2015 Problem 3
Show answer
Answer: A — 2
Show hints
Hint 1 of 2
Find every pair of side-touching squares that currently share a colour; those are the trouble spots.
Still stuck? Show hint 2 →
Hint 2 of 2
Try to fix several clashes at once by changing a single well-chosen square, and count the fewest squares you must repaint.
Show solution
Approach: spot the colour clashes and repaint the fewest squares to break them all
  1. Scan the grid for neighbours that share a colour: the two grey squares touch, and the black squares touch.
  2. Changing two carefully chosen squares is enough to separate every same-colour pair, while one change still leaves a clash somewhere.
  3. So the minimum number Sam must paint over is 2.
Mark: · log in to save