PUMaC 2008 · 团队赛 · 第 10 题
PUMaC 2008 — Team Round — Problem 10
题目详情
(7分) 设序列 。归纳定义 为在 中每对相邻项之间插入它们的和——例如 。对某个 , 恰好有一项出现两次。求这个重复的项。
英文原题
- (7 points) Consider the sequence = (1, 2008). Define new sequences inductively by inserting
the sum of each pair of adjacent terms in between them—for instance, = (1, 2009, 2008).
For some n, has exactly one term that appears twice. Find this repeated term.
2
解析
英文解析
Instead of starting with 1 and 2008, use ordered pairs (1,0) and (0,1). (In , for instance, you
have (1,0),(2,1),(1,1),(1,2),(0,1).) By induction, after n iterations the greatest number that
appears in any ordered pair is . Two pairs ( a, b ) and ( c, d ) correspond to the same integers iff
2008( a − c ) + 1( b − d ) = 0, so to have equal pairs we need some element at least 2008 (we never
get the same pair twice because, if we view each ordered pair ( a, b ) as a fraction a/b, they’re
strictly decreasing). Since 597 < 2008, we need at least 17 iterations.
Note that by induction, if n is the sum of the coefficients of the continued fraction expansion of
a/b, then ( a, b ) first appears in . Hence (2351, 898) first appears in , and (343, 899) first
appears in , since their continued fraction expansions are (2;1,1,1,1,1,1,1,1,1,1,1,2,1,1) and
(0;2,1,1,1,1,1,3,3,1,1,1), respectively. These both correspond to 1805535, so that’s the answer.
The continued fraction expansions also give a clue how to find these (the following section will be
most useful for readers who’ve already played around with the sequences): if ( a, b ) and ( c, d ) are
the above integers, we saw above that we needed a close to the maximum possible, which occurs
only if a ≈ φb or a ≈ φ^{2} b. Hence we must have either ( a, b, c, d ) ≈ ( φb, b, φb − 2008, b + 1) or
( a, b, c, d ) ≈ ( φ^{2} b, b, φ^{2} b − 2008, b + 1). Experimentation shows that we also want^{d}{c} to be
approximately φ or φ^{2}; of these cases the minimum value of b occurs when^{a}{b} ≈^{d}{c} ≈ φ^{2}. In this
2008 φ^{2} − 1
case,{−}^{+1}{2008} ≈ φ^{2} gives b ≈{φ4-1} ≈ 898. In that case, a ≈ 2351, c ≈ 343, and d ≈ 899, and in
fact these values work.
All of the above was done by hand; proving that there is only one repeated value in required
a computer search.
Thanks to Mathew Crawford for his contribution.