BMO/BMO
2024 British Mathematical Olympiad
10 道题目
British Mathematical OlympiadRound 1Round 2
选择题目
点击题号切换,正文区一次只显示一道题
An unreliable typist can guarantee that when they try to type a word with different letters, every letter of the word will appear exactly once in what they type, and each letter will occur at most one letter late (though it may occur more than one letter early). Thus, when trying to type MATHS, the typist may type MATHS, MTAHS or TMASH, but not ATMSH.
Determine, with proof, the number of possible spellings of OLYMPIADS that might be typed.
Determine, with proof, the number of possible spellings of OLYMPIADS that might be typed.
考场第一眼 / First look
考场第一眼:先把字母换成它在原词中的编号。若原词长度为 $n$,输出排列中原编号为 $i$ 的字母只能出现在位置 $1,2,\ldots,i+1$;注意它可以提前很多位,限制只针对“最晚”。于是原词第一个字母特别关键:它最晚只能出现在位置 $2$,所以全部合法输出天然分成“它在位置 $1$”和“它在位置 $2$”两类。
这两类都应尝试删除原词第一个字母,再把其余字母的原编号统一减 $1$。真正需要仔细检查的是:位置随删除发生的变化是否恰好把条件 $\operatorname{pos}(i)\le i+1$ 变成同一形式的较短条件。若两类都与长度 $n-1$ 的全部合法输出形成双射,就会得到一个每步翻倍的递推。OLYMPIADS 的九个字母互不相同,因此可直接代入这个一般模型。
这两类都应尝试删除原词第一个字母,再把其余字母的原编号统一减 $1$。真正需要仔细检查的是:位置随删除发生的变化是否恰好把条件 $\operatorname{pos}(i)\le i+1$ 变成同一形式的较短条件。若两类都与长度 $n-1$ 的全部合法输出形成双射,就会得到一个每步翻倍的递推。OLYMPIADS 的九个字母互不相同,因此可直接代入这个一般模型。