In each of the cells of a $13 \times 13$ board is written an integer such that the integers in adjacent cells differ by $1$. If there are two $2$s and two $24$s on this board, how many $13$s can there be?
Source: 2018 Saudi Arabia GMO TST I p4
Tags: combinatorics, square board
In each of the cells of a $13 \times 13$ board is written an integer such that the integers in adjacent cells differ by $1$. If there are two $2$s and two $24$s on this board, how many $13$s can there be?