BMO/BMO
2024 British Mathematical Olympiad
10 道题目
British Mathematical OlympiadRound 1Round 2
选择题目
点击题号切换,正文区一次只显示一道题
Let $m<n$ be positive integers. Start with $n$ piles, each of $m$ objects. Repeatedly carry out the following operation: choose two piles and remove $n$ objects in total from the two piles.
For which $(m,n)$ is it possible to empty all the piles?
For which $(m,n)$ is it possible to empty all the piles?
考场第一眼 / First look
考场第一眼:先数操作次数。初始共有 $mn$ 个物体,而每次恰好拿走 $n$ 个,所以若能清空,操作次数必为 $m$。接着把 $n$ 堆看成顶点、每次选择的两堆看成一条边;一条边两端的权重,就是这次从两堆分别拿走的数目。由于任一堆从始至终至多有 $m<n$ 个物体,一次操作不可能由一堆独自提供全部 $n$ 个,故每条边两端的权重都为正。若某个连通分量有 $v$ 个顶点、$e$ 条边,那么从顶点端合计,它最终拿走 $vm$ 个;从边端合计,每条边拿走 $n$ 个,故 $vm=en$。约去 $\gcd(m,n)$ 后,再用连通图的 $e\ge v-1$,会把约分后的 $n-m$ 迫成 $1$。这给出必要条件 $\gcd(m,n)=n-m$。反过来写成 $(m,n)=(kd,(k+1)d)$,把各堆分成 $d$ 组,每组 $k+1$ 堆排成一条路径,并给第 $j$ 条边分配两端权重 $(k-j+1)d$ 与 $jd$,便得到显式清空方案。因此预期答案是且仅是 $\gcd(m,n)=n-m$ 的正整数对。