PUMaC 2009 · 代数(A 组) · 第 7 题
PUMaC 2009 — Algebra (Division A) — Problem 7
题目详情
设 为整数序列,满足 (),,。设 和 分别为 的最小和最大可能值。求 。
英文原题
- Let , ,..., be a sequence of integers, such that − 1 ≤ , for i = 1, 2,..., n,
+ · · · + and +... 009. Let m and M be the minimal and maximal
possible value of +... , respectively. Find the^{M}_{m}. Round your answer to nearest
integer, if necessary.
解析
英文解析
- Let , ,..., be a sequence of integers, such that − 1 ≤ , for i = 1, 2,..., n,
+ · · · + and +... 009. Let m and M be the minimal and maximal
possible value of +... , respectively. Find^{M}{m}.
Solution.^{M}{m} = 511. The that are 0 do not matter at all, they can be disregarded. The
remaining are − 1, 1, or 2 and the only thing that matters is how many of the have
each particular value. If a, b, c ≥ 0 denote the number of − 1-s, 1-s, and 2-s, respectively, then
+... 009 says that a + b + 256 c = 2009: each which is − 1 contributes 1 to the
sum, for a total of a, also b is the contribution of the 1-s, and 256 c is the contribution of the 2-s
(each gives 256). Similarly, + · · · + = − a + b +2 c, and +... = − a + b +512 c.
Hence given that a, b, c are nonnegative integers such that
− a + b + 2 c = 7
a + b + 256 c = 2009.
We must find the extremal values of − a + b + 512 c. We can write − a + b + 512 c = ( − a + b +
2 c ) + 510 c = 7 + 510 c, and this expression is extremal when c is extremal. Adding the first two
equations we get 2 b + 258 c = 2016, and since b ≥ 0, this implies c ≤ 2016 / 258 = 7 + 35 / 43.
Since c is a non-negative integer, 7 ≤ 7 + 510 c ≤ 7 + 510 × 7. Also, it is easy to check that if
( a, b ) = (1001, 1008) then c = 0; and if ( a, b ) = (112, 105), then c = 7. So the extrema are 7
and 7 × 511.