Skip to main content
OlympiadHQ

Browse · MathNet

Print

Winter Mathematical Competition

Bulgaria counting and probability

Problem

Some of the squares of an table are mined. In each square the number of the mined squares amongst this square and its neighbors (i.e. those which have common side or vertex with it) is written. Is it always possible to determine which squares are mined if: a) ; b) ?
Solution
We denote the rows by and the columns by and let be the number written in the square .

a) No! Consider the table where the squares are mined if and only if and the table where the squares are mined if and only if . Then all numbers written in the squares of and are equal to and therefore we can not determine which squares are mined.

b) Yes! We first determine the mined squares in the third row. It is easy to see that the number of the mined squares amongst , , is equal to . We now compare and and determine if the square is mined. Next we compare and and decide if is mined. The same argument shows which squares amongst , , ..., are mined.

We now compare and to decide if the square is mined, then compare and to see if is mined, etc. We finally know which squares amongst , , ..., are mined. Now shows if is mined, then we compare and to determine if is mined, etc., and find which squares amongst , , ..., are mined. Hence we know row .

Analogously we can determine the mined squares in the rows , , , , ..., . Using similar argument we can determine the mined squares in the rows , , , ..., , and the rows , , , ..., .
Final answer
a) No; b) Yes

Techniques

LogicAlgorithmsColoring schemes, extremal arguments