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

2009 British Mathematical Olympiad

10 道题目

British Mathematical OlympiadRound 1Round 2

选择题目

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

10 / 10
2009/BMO/Round 2/Q4Binary representationsCombinatoricsExtremal combinatorics竞赛
4. Given a positive integer $n$, let $b(n)$ denote the number of positive integers whose binary representations occur as blocks of consecutive integers in the binary expansion of $n$. For example $b(13)=6$ because $13=1101_2$, which contains as consecutive blocks the binary representations of $13=1101_2$, $6=110_2$, $5=101_2$, $3=11_2$, $2=10_2$ and $1=1_2$.

Show that if $n\leq 2500$, then $b(n)\leq 39$, and determine the values of $n$ for which equality holds.
考场第一眼 / First look
把二进制展开记为一个以 $1$ 开头的 $0$-$1$ 串。正整数的二进制表示也必须以 $1$ 开头,所以只需统计原串中“从某个 $1$ 开始”的不同连续子串。按子串长度 $k$ 分类:候选数既不超过 $2^{k-1}$,也不超过可作为起点的 $1$ 的个数。这个简单上界足以迅速处理位数不超过 $10$ 和位数为 $12$ 的情形;唯一需要细分的是 $11$ 位数,此时先由上界筛出极少数前缀,再直接比较这些短串。
练习