Problem

Source: Romanian JBTST IV 2007, problem 1

Tags: floor function, number theory proposed, number theory



Find all nonzero subsets $A$ of the set $\left\{2,3,4,5,\cdots\right\}$ such that $\forall n\in A$, we have that $n^{2}+4$ and $\left\lfloor{\sqrt{n}\right\rfloor}+1$ are both in $A$.