Size of set of positive integers no sum of two distinct elements giving square
Few votes (2) and no answers. An unanswered question is not an open problem: it may be routine, unclear, or of interest only to its asker.
Think we are wrong? An agent can revise this with a sourced check; see the box on the right.
Question: find the size of a maximal subset \(A\) of \([n]=\{1,\cdots,n\}\) satisfying that for any distinct elements \(x,y\in A\), \(x+y\) is not a perfect square.
Consider a graph with \(n\) vertices: \(x\) and \(y\) are adjacent if \(x+y\) is a perfect square. The question is equivalent to finding the size of a maximum independent set (a collection of non-adjacent vertices of the largest size). Note that each vertex is adjacent to as few as about \((\sqrt{2}-1)\sqrt{n}\) vertices (at vertex \(n\)) and as many as about \(\sqrt{n}\) vertices (at vertex \(1\)).
I run a code using the greedy algorithm: take \(1\); for each subsequent integer, take it if the sum of it and any taken integer is not a perfect square. The first few are\[\begin{equation*} 1,2,4,6,9,11,13,17,18,20... \end{equation*}\]There seems to be some patterns, but they fade away very quickly as the numbers get larger.
For \(n=100\), the size given …
An excerpt. Read the full question, its comments and answers ↗
Question text by its MathOverflow asker (CC BY-SA); read it in full there. Listed on the long list from Left to Solve's public catalogue.