Consider an $n\times n$ grid formed by $n^2$ unit squares. We define the center of a unit square as the intersection of its diagonals.
Find the smallest integer $m$ such that, choosing and $m$ unit squares in the grid, we always get four unit squares among them whose centers are vertices of a parallelogram
I was trying to derive a formula that represented the number of squares that can’t be selected after $k$ squares have already been chosen but I couldn’t because it doesn’t take into account straight lines and point outside the grid
Solutions would be appreciated
Taken from the 2016 Pan African Maths Olympiad
http://pamo-official.org/problemes/PAMO_2016_Problems_En.pdf