BMO/BMO
2020 British Mathematical Olympiad
10 道题目
British Mathematical OlympiadRound 1Round 2
选择题目
点击题号切换,正文区一次只显示一道题
A $2019\times 2019$ square grid is made up of $2019^2$ unit cells. Each cell is coloured either black or white. A colouring is called balanced if, within every square subgrid made up of $k^2$ cells for $1\leq k\leq 2019$, the number of black cells differs from the number of white cells by at most one. How many different balanced colourings are there?
(Two colourings are different if there is at least one cell which is black in exactly one of them.)
(Two colourings are different if there is at least one cell which is black in exactly one of them.)
考场第一眼 / First look
考场第一眼:把黑格记为 \(+1\),白格记为 \(-1\),那么一个方形子格中黑白数之差就是其中所有数之和。偶数边长的方形含偶数个数,其和也是偶数;平衡条件要求绝对值至多 \(1\),所以偶边长方形的和必须为 \(0\)。尤其每个相邻 \(2\times2\) 块都和为零。这个局部条件会强迫整张表落入两个大族之一:每一行横向正负交替,或每一列纵向正负交替。对横向交替族写 \(x_{ij}=r_i(-1)^{j-1}\),偶边长方形自动和为零;奇边长方形的条件则化成 \(r_1,\ldots,r_{2019}\) 的每个连续奇数长度区间之和都是 \(\pm1\)。用前缀和按下标奇偶分类即可计数,最后再交换行列并做容斥。