返回题库

PUMaC 2008 · 代数(A 组) · 第 1 题

PUMaC 2008 — Algebra (Division A) — Problem 1

专题
Contest Math / 竞赛数学
难度
L3
来源
PUMaC

题目详情

给定数列

1,2,1,2,2,1,2,2,2,1,2,2,2,2,1,…,1,2,1,2,2,1,2,2,2,1,2,2,2,2,1,\ldots,

求一个 nn,使前 nn 项和为 20082008 或 20092009。

英文原题

Given the sequence

1,2,1,2,2,1,2,2,2,1,2,2,2,2,1,…,1,2,1,2,2,1,2,2,2,1,2,2,2,2,1,\ldots,

find nn such that the sum of the first nn terms is 20082008 or 20092009.

解析

这个数列按块排列:

(1),(2,1),(2,2,1),(2,2,2,1),….(1),(2,1),(2,2,1),(2,2,2,1),\ldots.

前 kk 块一共有

Tk=1+2+⋯+k=k(k+1)2T_k=1+2+\cdots+k=\frac{k(k+1)}2

项,和为

1+3+5+⋯+(2k−1)=k2.1+3+5+\cdots+(2k-1)=k^2.

因为

442=1936<2008<2009<2025=452,44^2=1936<2008<2009<2025=45^2,

所以从前 4444 块之后开始数。此时项数为

T44=44⋅452=990.T_{44}=\frac{44\cdot45}{2}=990.

下一块在最后一个 11 之前全是 22。从 19361936 到 20082008 还差

2008−1936=72=36⋅2,2008-1936=72=36\cdot2,

所以再取 3636 个 22 即可:

n=990+36=1026.n=990+36=1026.

因此前 10261026 项和为 20082008。


英文解析

The sequence is built in blocks

(1),(2,1),(2,2,1),(2,2,2,1),….(1),(2,1),(2,2,1),(2,2,2,1),\ldots.

After the first kk blocks, the number of terms is

Tk=1+2+⋯+k=k(k+1)2,T_k=1+2+\cdots+k=\frac{k(k+1)}2,

and the sum is

1+3+5+⋯+(2k−1)=k2.1+3+5+\cdots+(2k-1)=k^2.

Since

442=1936<2008<2009<2025=452,44^2=1936<2008<2009<2025=45^2,

we start after T44=44⋅45/2=990T_{44}=44\cdot45/2=990 terms. The next block contains only 22's until its final 11. To reach 20082008 from 19361936, we need

2008−1936=72=36⋅2.2008-1936=72=36\cdot2.

So we add 3636 more terms after term 990990:

n=990+36=1026.n=990+36=1026.

The first 10261026 terms sum to 20082008.