这个数列按块排列:
(1),(2,1),(2,2,1),(2,2,2,1),….
前 k 块一共有
Tk=1+2+⋯+k=2k(k+1)
项,和为
1+3+5+⋯+(2k−1)=k2.
因为
442=1936<2008<2009<2025=452,
所以从前 44 块之后开始数。此时项数为
T44=244⋅45=990.
下一块在最后一个 1 之前全是 2。从 1936 到 2008 还差
2008−1936=72=36⋅2,
所以再取 36 个 2 即可:
n=990+36=1026.
因此前 1026 项和为 2008。
英文解析
The sequence is built in blocks
(1),(2,1),(2,2,1),(2,2,2,1),….
After the first k blocks, the number of terms is
Tk=1+2+⋯+k=2k(k+1),
and the sum is
1+3+5+⋯+(2k−1)=k2.
Since
442=1936<2008<2009<2025=452,
we start after T44=44⋅45/2=990 terms. The next block contains only 2's until its final 1. To reach 2008 from 1936, we need
2008−1936=72=36⋅2.
So we add 36 more terms after term 990:
n=990+36=1026.
The first 1026 terms sum to 2008.