Sum of any subset of 20 integers should be a perfect square

538 Views Asked by At

I am unsure about the exact details of the question. But it asks us to find a set of $20$ non-zero integers such that the sum of all the elements in any of its subsets should yield a perfect square.

I don't think this is possible and am unable to make headway. If any modified form of this question is solvable please mention that.

If it's not possible to construct such a set we should prove why it's not possible to find such a set.

2

There are 2 best solutions below

1
On

It's impossible as stated. Here's a sketch of a not-so-elegant disproof:

Call the numbers $A = \{a_i\}$ By considering subsets of size one, this implies each element ${a_i}$ has to be positive, and itself has to be a square.

Also, each of the $\{a_i\}$ must be distinct; if any two of them were the same (say $a_j = X^2$), then we could pick a size-two subset whose sum $a_j + a_k = 2X^2$ could not be a square.

Now consider congruences modulo 4. Note that modulo 4, perfect squares $\equiv$ 0 or 1. 2 or 3 are impossible. Hence each of the ${a_i} \equiv 0,1 (mod 4)$.

Next by considering subsets of size two, if at least two of the ${a_i} \equiv 1 (mod 4)$, then we'd be able to construct some size-two subset which was $\equiv 2$, hence couldn't be a square. Hence at least 19 of the 20 ${a_i} \equiv 0 (mod 4)$, and the other one $\equiv 0,1$.

So we've heavily constrained $A$. In fact we can use similar arguments for B = 6, 12, 60, 420 etc. to conclude 19 of the ${a_i} \equiv 0 (mod B)$. We can keep picking bases B, without limit (just keep multiplying by next unused prime), to prove that the gaps between the ${a_i}$ are infinite, hence A cannot exist. (Remember, the $\{a_i\}$ must be distinct).

Then, at least for this statement of it, the best you can do is A = {one positive square and nineteen zeros}.

(If the question was to have solutions, it must have been restricted somehow, e.g. "sum of all the elements in any of its size-n subsets should yield a perfect square". For some n.)

0
On

For 3 numbers, it's an open problem.

See "Perfect cuboid" section of https://en.wikipedia.org/wiki/Euler_brick

Your only hope is to prove that for 20 numbers there is more information given, which can be used to prove that no such 20 numbers exist.