MathDB
Coloring in a Grid

Source: 2021 China TST, Test 1, Day 1 P2

March 17, 2021
combinatorics

Problem Statement

Given positive integers nn and kk, n>k2>4.n > k^2 >4. In a n×nn \times n grid, a kk-group is a set of kk unit squares lying in different rows and different columns. Determine the maximal possible NN, such that one can choose NN unit squares in the grid and color them, with the following condition holds: in any kk-group from the colored NN unit squares, there are two squares with the same color, and there are also two squares with different colors.