跳到主要内容
求证数学Reasoncraft Mathematics
/
搜索我的学习台
  1. BMO
  2. 2020
BMO2020
BMO/BMO

2020 British Mathematical Olympiad

10 道题目

British Mathematical OlympiadRound 1Round 2

选择题目

点击题号切换,正文区一次只显示一道题

4 / 10
2020/BMO/Round 1/Q4combinatorial processesdivisibilitynumber theory竞赛
There are $2019$ penguins waddling towards their favourite restaurant. As the penguins arrive, they are handed tickets numbered in ascending order from $1$ to $2019$, and told to join the queue. The first penguin starts the queue. For each $n>1$ the penguin holding ticket number $n$ finds the greatest $m<n$ which divides $n$ and enters the queue directly behind the penguin holding ticket number $m$. This continues until all $2019$ penguins are in the queue.
(a) How many penguins are in front of the penguin with ticket number $2$?
(b) What numbers are on the tickets held by the penguins just in front of and just behind the penguin holding ticket $33$?
考场第一眼 / First look
考场第一眼:不要真的维护一条不断插队的长队,而要把“插到谁后面”记成父节点。对 \(n>1\),它所找的最大真因子是 \[ \operatorname{parent}(n)=\frac{n}{\operatorname{spf}(n)}, \] 其中 \(\operatorname{spf}(n)\) 是 \(n\) 的最小素因子;若 \(n\) 为素数,父节点就是 \(1\)。票号递增到达时,新孩子总比同一父节点的旧孩子大,却插在父节点正后方,所以最终每个父节点的孩子按票号从大到小排列,整个队列正是这棵有序树的先序遍历。于是每个节点的全部后代形成一个连续块。(a) 根 \(1\) 的最后一个孩子是最小素数 \(2\),而 \(2\) 的后代只有 \(2,4,8,\ldots,1024\);(b) 只需查看 \(11\) 的孩子顺序以及 \(55,33\) 两个相邻子树的边界。
练习