Let $S \subset \mathbb{Z}$ be a set of integers such that for every pair of distinct elements $a, b \in S$, the sum $a + b$ is a perfect square, and no two such sums are equal.
Does there exist an infinite such set $S$? If not, what is the largest possible size of such a finite set?
What I tried:
- I first considered small sets like $S = \{a, b, c\}$ and tried to assign integer values such that $a+b, a+c, b+c$ are all distinct perfect squares. I managed to find some triples, but extending this to 4 or more elements became increasingly difficult.
- I also looked at the sequence of perfect squares and tried to reverse-engineer sets $S$ by treating square numbers as pairwise sums $a + b$, but this often led to inconsistencies or repeated sums.
- I checked OEIS and known constructions in additive number theory, but couldn’t find this exact configuration.
- Thought about relaxing the condition to allow equal sums or just require some subset to have the property, but that seemed to miss the spirit of the original question.