Maths Olympiad Prep

Library / /216 of 520

Combinatorics Difficulty 6.3 National olympiad Find the answer

A 5×1005 \times 100 table is divided into 500 unit square cells, where nn of them are coloured black and the rest are coloured white. Two unit square cells are called adjacent if they share a common side. Each of the unit square cells has at most two adjacent black unit square cells. Find the largest possible value of nn.

A 5×1005 \times 100 table is divided into 500 unit square cells, where nn of them are coloured black and the rest are coloured white. Two unit square cells are called adjacent if they share a common side. Each of the unit square cells has at most two adjacent black unit square cells. Find the largest possible value of nn.

A number or a short expression. Spacing and $ signs are ignored.

Solution

Alternative Solution. Consider the cells adjacent to all cells of the second and fourth row. Counting multiplicity, each cell in the first and fifth row is counted once, each cell in the third row twice, while each cell in the second and fourth row is also counted twice apart from their first and last cells which are counted only once.

So there are 204 cells counted once and 296 cells counted twice. Those cells contain, counting multiplicity, at most 400 black cells. Suppose aa of the cells have multiplicity one and bb of them have multiplicity 2. Then a+2b400a+2b \leqslant 400 and a204a \leqslant 204. Thus

2a+2b400+a604 2a+2b \leqslant 400+a \leqslant 604

and so a+b302a+b \leqslant 302 as required.

Remark. The alternative solution shows that if we have equality, then all cells in the perimeter of the table except perhaps the two cells of the third row must be coloured black. No other cell in the second or fourth row can be coloured black as this will give a cell in the first or fifth row with at least three neighbouring black cells. For similar reasons we cannot colour black the second and last-but-one cell of the third row. So we must colour black all other cells of the third row and therefore the colouring is unique.

Want a route through all this instead of an archive? The track puts 2,000 problems in a working order, from AMC 10 level to the IMO shortlist.

Source: NuminaMath-1.5, licensed Apache-2.0. Statement and solution reproduced as published; topic and difficulty added by this site.