I'd like to prove the following statement:
$\forall s\in\mathbb{N},(\exists x \in\mathbb{N},s^2=3x) \lor (\exists y\in\mathbb{N},s^2=3y-2)$
One approach which is most likely wrong that I have attempted was to split $s$ into odd and even numbers; $s=2k$ or $s=2k+1$
Any help would be appreciated.
We want to show
$\forall s\in\mathbb{N},(\exists x \in\mathbb{N},s^2=3x) \lor (\exists y\in\mathbb{N},s^2=3y-2)$
Note that every natural number $s$ is either $s= 3k$ or $s=3k\pm 1$
In the first case let $$s^2=9k^2 = 3(3k^2)=3x$$ and in the second case $$s^2=9k^2\pm 6k+1$$ thus $$ s^2+2=9k^2\pm 6k+3=3(3k^2 \pm 2k+1)=3y$$
that is $s^2 =3y-2$