To prove that in at least one of the heaps there are two numbers whose sum is a perfect square, we start by considering the set ( V = { n, n+1, \dotsc, 2n } ). Tom divides this set into two heaps (partitions), and we want to show that in at least one heap, there exist two numbers ( a ) and ( b ) such that ( a + b = s^2 ), where ( s^2 ) is a perfect square.
Step 1: Identify the Relevant Perfect Squares
First, we find all perfect squares between ( 2n ) and ( 4n ) because the smallest possible sum of two numbers from ( V ) is ( n + n = 2n ), and the largest possible sum is ( 2n + 2n = 4n ). The integers ( s ) satisfying ( s^2 \in [2n, 4n] ) are:
[ s = \left\lceil \sqrt{2n} \right\rceil, \left\lceil \sqrt{2n} \right\rceil + 1, \dotsc, \left\lfloor 2\sqrt{n} \right\rfloor ]
The total number of such perfect squares is approximately proportional to ( \sqrt{n} ), which is small compared to ( n ) for large ( n ).
Step 2: Examine the Graph Structure
We construct a graph ( G ) where the vertices are the elements of ( V ), and edges connect pairs ( (a, b) ) if ( a + b = s^2 ) for some perfect square ( s^2 ) found in Step 1. Our aim is to show that any independent set (a set of vertices with no edges between them) in ( G ) has size at most ( n/2 ).
Step 3: Bound the Independence Number
Suppose, for contradiction, that there's an independent set ( S ) of size greater than ( n/2 ). The number of pairs within ( S ) is:
[ \binom{|S|}{2} > \binom{n/2}{2} = \frac{n(n - 2)}{8} ]
However, the number of sums ( a + b ) that could be perfect squares is limited (since there are relatively few perfect squares between ( 2n ) and ( 4n )). Therefore, most of these sums cannot be perfect squares, implying that most pairs in ( S ) do not form edges in ( G ). Yet, since ( S ) is independent, this is consistent with our graph structure.
But considering that the total number of sums ( a + b ) (with ( a, b \in S )) must be less than or equal to the number of integers between ( 2n ) and ( 4n ), we reach a contradiction for large ( n ). Thus, the independence number ( \alpha(G) ) satisfies ( \alpha(G) \leq n/2 ).
Step 4: Apply the Pigeonhole Principle
In any partition of ( V ) into two heaps, at least one heap must contain more than ( n/2 ) numbers (since there are ( n + 1 ) elements in total). Let's denote the larger heap by ( H ). From Step 3, we know that ( |H| > n/2 ) implies that ( H ) cannot be an independent set (since the maximum size of an independent set is ( n/2 )). Therefore, ( H ) must contain at least one edge from ( G ), which corresponds to two numbers ( a ) and ( b ) such that ( a + b = s^2 ) for some perfect square ( s^2 ).
Conclusion
No matter how Tom divides the cards into two heaps, the larger heap will always contain at least two numbers whose sum is a perfect square.
Answer: Because in any division into two heaps, one heap must have more than n⁄2 numbers—and among any such set, some pair sums to a perfect square—there’s always a heap containing two numbers whose sum is a perfect square.