Kvant Math Problem 1142

Consider small tables first.

Verified: no
Verdicts: SKIP + SKIP
Solve time: 4m02s
Source on kvant.digital

Problem

The table $m\times n$ is filled with $mn$ numbers such that in each row and each column these numbers form an arithmetic progression. The sum of the four numbers located at the corners of the table equals $s$. What is the sum of all the numbers in the table?

Exploration

Consider small tables first. For a $2\times 2$ table with entries forming arithmetic progressions in both rows and columns, label the entries as $a$, $a+d$, $a+e$, $a+d+e$, where $d$ is the row difference and $e$ the column difference. The sum of the corners is $a + (a+d) + (a+e) + (a+d+e) = 4a + 2d + 2e = s$. The sum of all four entries coincides with this calculation, which suggests the total sum is proportional to $s$. Extending to a $3\times 3$ table with row differences $d_1$, $d_2$ and column differences $e_1$, $e_2$, write the entries explicitly as $a_{ij} = a + (j-1)d + (i-1)e$. Summing all entries gives a combination of the corner entries and multiples of row and column differences. Trying specific numerical examples such as $a=1$, $d=2$, $e=3$, confirms a pattern that the sum of all entries is proportional to $mn$ times the average of the four corners. This suggests that the sum of the table depends linearly on $m$, $n$, and the sum of the corners. The delicate step is ensuring that the formula derived for small cases generalizes to arbitrary $m$ and $n$ and that the arithmetic progressions’ constraints are fully incorporated.

Problem Understanding

The problem asks to compute the sum of all entries in an $m\times n$ table, where both each row and each column form an arithmetic progression, given that the sum of the four corner entries is $s$. This is a Type C problem because it asks to determine a value, specifically the sum of all table entries. The core difficulty is accounting simultaneously for the constraints imposed by the row and column arithmetic progressions and ensuring that the expression for the sum of all entries can be expressed purely in terms of $m$, $n$, and the sum of the corners, without dependence on the individual differences along rows and columns. Intuitively, each entry can be written as a linear combination of the top-left corner and multiples of the row and column differences, so the sum over all entries should factor as $mn$ times the average of the four corners.

Proof Architecture

Lemma 1 states that any $m\times n$ table with entries forming arithmetic progressions in each row and column can be expressed as $a_{ij} = a + (j-1)d + (i-1)e$ for some numbers $a$, $d$, $e$. This is true because specifying the top-left corner and the row and column differences determines each entry uniquely. Lemma 2 asserts that the sum of all entries can be computed by summing over $i$ and $j$ in the formula $a_{ij} = a + (j-1)d + (i-1)e$. This reduces to a sum depending linearly on $a$, $d$, and $e$. Lemma 3 claims that the sum of the four corners equals $s = a + a + (n-1)d + a + (m-1)e + a + (m-1)e + (n-1)d = 4a + 2(m-1)e + 2(n-1)d$, which provides a linear relation between $a$, $d$, $e$, and $s$. The crucial step is then expressing the total sum in terms of $s$, $m$, and $n$ alone, eliminating $a$, $d$, and $e$.

Solution

Label the entries of the $m\times n$ table by $a_{ij}$ with $1\le i\le m$ and $1\le j\le n$. Because each row and each column is an arithmetic progression, denote $a_{11} = a$ as the top-left entry, $d$ as the common difference along the rows, and $e$ as the common difference along the columns. Then every entry can be written as

$a_{ij} = a + (j-1)d + (i-1)e.$

The sum of all entries is

$\sum_{i=1}^{m}\sum_{j=1}^{n} a_{ij} = \sum_{i=1}^{m}\sum_{j=1}^{n} \left(a + (j-1)d + (i-1)e\right) = \sum_{i=1}^{m}\sum_{j=1}^{n} a + \sum_{i=1}^{m}\sum_{j=1}^{n} (j-1)d + \sum_{i=1}^{m}\sum_{j=1}^{n} (i-1)e.$

Compute each term. The first term is $mn a$. The second term is

$\sum_{i=1}^{m}\sum_{j=1}^{n} (j-1)d = \sum_{i=1}^{m} d\sum_{j=1}^{n} (j-1) = m d \frac{n(n-1)}{2}.$

Similarly, the third term is

$\sum_{i=1}^{m}\sum_{j=1}^{n} (i-1)e = \sum_{j=1}^{n} e\sum_{i=1}^{m} (i-1) = n e \frac{m(m-1)}{2}.$

Thus the total sum is

$S = mn a + m d \frac{n(n-1)}{2} + n e \frac{m(m-1)}{2} = mn a + \frac{mn(n-1)}{2} d + \frac{mn(m-1)}{2} e.$

Factor $mn$ to obtain

$S = mn\left(a + \frac{n-1}{2} d + \frac{m-1}{2} e\right).$

Next, the four corners are $a_{11} = a$, $a_{1n} = a + (n-1)d$, $a_{m1} = a + (m-1)e$, $a_{mn} = a + (n-1)d + (m-1)e$. Their sum is

$s = a + (a + (n-1)d) + (a + (m-1)e) + (a + (n-1)d + (m-1)e) = 4a + 2(n-1)d + 2(m-1)e.$

Divide both sides by $4$ to obtain

$\frac{s}{4} = a + \frac{n-1}{2} d + \frac{m-1}{2} e.$

Comparing with the previous formula for $S$, we find

$S = mn \cdot \frac{s}{4}.$

Thus the sum of all numbers in the table is

$\boxed{\frac{mn s}{4}}.$

This completes the proof.

Verification of Key Steps

To verify the computation, consider a $2\times 3$ table with $a = 1$, $d = 2$, $e = 3$. Then the table entries are

$\begin{matrix} 1 & 3 & 5 \ 4 & 6 & 8 \end{matrix}.$

The sum of the corners is $1 + 5 + 4 + 8 = 18$. The sum of all entries is $1 + 3 + 5 + 4 + 6 + 8 = 27$, which coincides with $mn s /4 = 2\cdot 3\cdot 18 /4 = 27$. Checking a $3\times 3$ table with $a=0$, $d=1$, $e=2$, the corners are $0,2,4,6$ with sum $12$, and total sum is $0+1+2+2+3+4+4+5+6=27$, again matching $mn s/4 = 3\cdot 3\cdot 12/4 = 27$. These independent computations confirm that the factorization and algebra are correct and that no term was omitted in the general derivation.

Alternative Approaches

An alternative approach is to consider the linearity of arithmetic progressions and argue that the sum of all entries is the product of the number of rows and columns times the average of the first and last rows. Similarly, averaging the first and last columns yields the same result. Averaging the four corners directly gives the same linear combination. This approach uses symmetry arguments and avoids explicit summation formulas, but it is less rigorous in expressing each step algebraically. The main approach is preferable because it gives an explicit formula for every entry, confirms the correctness of each coefficient, and handles arbitrary $m$ and $n$ systematically.