PUMaC 2008 · 代数(B 组) · 第 3 题
PUMaC 2008 — Algebra (Division B) — Problem 3
题目详情
(3分) 给定序列 ,求 使得前 项之和为2008或2009。
英文原题
- (3 points) Given the sequence 1, 2, 1, 2, 2, 1, 2, 2, 2, 1, 2, 2, 2, 2, 1,..., find n such that the sum
of the first n terms is 2008 or 2009.
解析
英文解析
Let be the the cumulative sums of the sequence. Note that , , , and
so on. In particular, if n is equal to the triangular number, than , and the term is
a 1, with all other terms being a 2. = 1936 and = 2025, so we need to count upwards from
term number 44 · 45 / 2 = 990, knowing that the sequence does not hit another 1 value before
passing 2008 and 2009. (2008 − 1936) / 2 = 72, which means we need 36 more 2’s after term 990,
which means that the first 1026 terms sum to 2008.