返回题库

PUMaC 2008 · 代数(B 组) · 第 3 题

PUMaC 2008 — Algebra (Division B) — Problem 3

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

题目详情

(3分) 给定序列 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 项之和为2008或2009。

英文原题

  1. (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 sns_{n} be the the cumulative sums of the sequence. Note that s1=1s_{1}=1, s3=4s_{3}=4, s6=9s_{6}=9, and
so on. In particular, if n is equal to the kthk^{th} triangular number, than sn=k2s_{n}=k^{2}, and the nthn^{th} term is
a 1, with all other terms being a 2. 44244^{2} = 1936 and 45245^{2} = 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.