Maths Olympiad Prep

Library / /8 of 16

Combinatorics Difficulty 5.9 AIME, harder Prove it Brazil

Emerald writes 200922009^2 integers in a 2009×20092009 \times 2009 table, one number in each entry of the table. She sums all the numbers in each row and in each column, obtaining 4018 sums. She notices that all sums are distinct. Is it possible that all such sums are perfect squares?

Solution

Yes, it is. For instance, consider the table

(312)2(3^1 - 2)^23(2311)3(2 \cdot 3^1 - 1)0000\ldots00
00(322)2(3^2 - 2)^23(2321)3(2 \cdot 3^2 - 1)00\ldots00
0000(332)2(3^3 - 2)^23(2331)3(2 \cdot 3^3 - 1)\ldots00
\ldots\ldots\ldots\ldots\ldots\ldots
00000000\ldots(320092)2(3^{2009} - 2)^2

The sum of the numbers in each row except the last one is (3k2)2+3(23k1)=32k+23k+1=(3k+1)2(3^k - 2)^2 + 3(2 \cdot 3^k - 1) = 3^{2k} + 2 \cdot 3^k + 1 = (3^k + 1)^2, 1k20081 \le k \le 2008, and the sum of the numbers in the last row is (320092)2(3^{2009} - 2)^2.

The sum of the numbers in each column except the first one is 3(23k11)+(3k2)2=32k23k+1=(3k1)23(2 \cdot 3^{k-1} - 1) + (3^k - 2)^2 = 3^{2k} - 2 \cdot 3^k + 1 = (3^k - 1)^2, 2k20092 \le k \le 2009, and the sum of the numbers in the first column is 11.

Note that all 4018 sums are distinct perfect squares, so we are done.

Want a route through all this instead of an archive? The track puts 2,000 problems in a working order, from AMC 10 level to the IMO shortlist.

Source: MathNet, licensed CC-BY-4.0. Statement and solution reproduced as published; topic and difficulty added by this site.