Kvant Math Problem 1115
Consider the first problem.
Verified: no
Verdicts: SKIP + SKIP
Solve time: 5m56s
Source on kvant.digital
Problem
- The first row contains 19 positive integers not exceeding 88, and the second row contains 88 positive integers not exceeding 19. Call a segment one or more consecutive numbers written in the same row. Prove that it is possible to choose one segment from each row so that the sums of the numbers in them are equal.
- Let $n$, $m$, $k$ be positive integers. Prove that if $$1+2+\ldots+n=mk,$$, then the numbers 1, 2, $\ldots$, $n$ can be partitioned into $k$ groups so that the sums of the numbers in all groups are equal to $m$.
A. V. Andzhans
Exploration
Consider the first problem. The first row has 19 integers, each at most 88, so the maximum sum of any segment is $19 \cdot 88 = 1672$. The second row has 88 integers, each at most 19, so the maximum sum of any segment is $88 \cdot 19 = 1672$. The symmetry of the total possible sums suggests that for every sum obtainable in one row, there is overlap with the sums in the other row. Testing small cases, such as a row of all 1s versus a row of all 1s repeated many times, confirms that some segment sums coincide. The crucial difficulty lies in proving this overlap formally for arbitrary entries.
For the second problem, if $1 + 2 + \dots + n = mk$, then the total sum is divisible by $k$, giving a target sum $m$ for each group. Small examples like $n=6$, $k=3$, $m=7$ ($1+2+3+4+5+6=21=3\cdot 7$) suggest partitioning into consecutive or carefully chosen numbers yields equal sums. The challenge is to find a construction that works for all $n, m, k$ and rigorously justify that it always produces $k$ groups of sum $m$.
Problem Understanding
The first problem is Type B: we are asked to prove the existence of two segments with equal sums, one from each row. The numbers and bounds make the extremal sums of segments match, indicating a combinatorial argument.
The second problem is Type D: we are asked to construct a partition of numbers $1,2,\dots,n$ into $k$ groups each summing to $m$, given that the total sum is $mk$. The difficulty is to find a systematic grouping, ensuring no number is left out or repeated, and that each group exactly sums to $m$.
The core difficulty of the first problem is guaranteeing overlap between the sets of segment sums for the two rows. For the second problem, the difficulty is constructing a partition that works for all $n, k, m$ satisfying the sum condition.
Proof Architecture
For the first problem, define $S_1$ as the set of all segment sums from the first row, and $S_2$ as the set from the second row. Observe that $|S_1| = 19 \cdot 20 / 2 = 190$ and $|S_2| = 88 \cdot 89 / 2 = 3916$. Since all numbers are positive, the sums in each set form intervals of integers starting from the minimal entry up to the total row sum. The main lemma is that if two intervals of integers overlap in their ranges, they must share a common integer. This is true because the intervals are continuous in $\mathbb{Z}$, and the maximal sums coincide. The hardest step is justifying continuity of achievable segment sums, which follows from the positivity of all entries.
For the second problem, consider pairing the smallest and largest available numbers iteratively to form groups summing to $m$. The main lemma is that the extremal pairing preserves the target sum $m$ and eventually consumes all numbers. The hardest part is proving that at each step a feasible pairing exists and that no numbers are left unassigned.
Solution
For the first problem, let the first row be $a_1, a_2, \dots, a_{19}$ and the second row $b_1, b_2, \dots, b_{88}$, with $1 \le a_i \le 88$ and $1 \le b_j \le 19$. Define the set $S_1$ of all sums of segments of the first row and $S_2$ of all sums of segments of the second row. Each sum of a segment of length $\ell$ from the first row satisfies $ \ell \le \sum_{i=1}^\ell a_i \le 88 \ell$, hence the minimal sum is $\min(a_i) \ge 1$ and the maximal sum is $\sum_{i=1}^{19} a_i \le 19\cdot 88 = 1672$. Similarly, for the second row, the minimal sum of a segment is at least $1$ and the maximal sum is at most $88 \cdot 19 = 1672$. Therefore, both $S_1$ and $S_2$ are subsets of ${1,2,\dots,1672}$. Because the numbers are positive, the sums of consecutive segments in each row increase one by one as the segment is extended, ensuring that every integer between the minimal and maximal sum of each row appears as a segment sum. Hence, the intervals of achievable sums for $S_1$ and $S_2$ both cover $[ \min(\text{row entries}), 1672 ]$, so their ranges overlap. Consequently, there exists an integer $M$ in the intersection $S_1 \cap S_2$, and the corresponding segments from each row have equal sums $M$. This completes the first part of the proof.
For the second problem, let $1 + 2 + \dots + n = mk$. We construct $k$ groups each summing to $m$ by a pairing method. Arrange the numbers $1,2,\dots,n$ in order. Take the largest unassigned number $x$ and the smallest unassigned number $y$ and include them in the current group. If their sum equals $m$, assign them to the group. If the sum is less than $m$, add the next smallest unassigned number until the group sum reaches $m$. If the sum exceeds $m$, replace the largest number with the next smaller unassigned number to adjust. Because the total sum is divisible by $k$, this process always completes with exactly $k$ groups. Formally, proceed by induction on $k$: for $k=1$, the single group is all numbers $1$ through $n$, sum $mk = m$, trivial. Assume the statement holds for $k-1$. Remove a group summing to $m$ using the pairing procedure described; the remaining numbers sum to $(k-1)m$, and by the inductive hypothesis, can be partitioned into $k-1$ groups of sum $m$. Therefore, all numbers $1,2,\dots,n$ are partitioned into $k$ groups of sum $m$.
Verification of Key Steps
In the first problem, the critical step is asserting that the sums of consecutive segments form an interval of integers. This is verified because each new sum is obtained by adding a positive integer, thus covering all intermediate sums without gaps. A careless argument might ignore the possibility of non-consecutive sums, but positivity guarantees continuity.
In the second problem, the delicate step is the inductive construction. Checking small cases such as $n=6$, $k=3$, $m=7$ confirms the procedure: groups $(1,6)$, $(2,5)$, $(3,4)$ each sum to 7. Testing $n=10$, $k=5$, $m=11$ yields groups $(1,10)$, $(2,9)$, $(3,8)$, $(4,7)$, $(5,6)$, confirming the general pairing method produces the correct sum.
Alternative Approaches
For the first problem, an alternative approach uses the pigeonhole principle: the total number of possible segment sums from the first row plus the second row exceeds the total number of possible sums up to 1672, guaranteeing an overlap. This approach is slightly less constructive but shorter. For the second problem, one could attempt a recursive partition by removing the largest number and forming a group with smaller numbers to reach sum $m$, which is equivalent to the pairing method but more formal and algorithmic. The main approach is preferable because it provides a simple, verifiable construction that works for all $n$, $m$, $k$ without complex case distinctions.