I am working on the following problem:
Is the set $S = \left\{ (x,y): x^2+y^2=\frac {1}{n^2}, n \in \mathbb N \wedge (x \in \mathbb Q \vee y \in \mathbb Q) \right\}$ countable?
My answer is yes.
Reason:
For a fixed $n$, let $S_n = \left\{ (x,y): x^2+y^2=\frac {1}{n^2}, n \in \mathbb N \wedge (x \in \mathbb Q \vee y \in \mathbb Q) \right\}$.
Then $S_n = (\mathbb Q \times \mathbb Q) \cup \bigcup\limits_{r\in \mathbb Q}\left(\pm r, \pm\sqrt {\frac {1}{n^2}-r^2}\right)$ where $r <\frac {1}{n^2} $.
Clearly each set forming $S_n$ is countable, its union ($S_n$) is also countable. As $S=\bigcup\limits_{n\in \mathbb N} S_n$, $S$ is also countable.
Am I correct? Thanks in advance!
Actually you have
$$S_n=L_n\cup R_n$$
where
$$L_n=\bigg\{\bigg(r,\pm\sqrt{\frac{1}{n^2}-r^2}\bigg)\ \bigg|\ r\in \mathbb{Q}\text{ and }r^2\leq\frac{1}{n^2}\bigg\}$$ $$R_n=\bigg\{\bigg(\pm\sqrt{\frac{1}{n^2}-r^2},r\bigg)\ \bigg|\ r\in \mathbb{Q}\text{ and }r^2\leq\frac{1}{n^2}\bigg\}$$
Note the different order in $L_n$ and $R_n$ (that's the only difference between them). Those sets correspond to $x\in\mathbb{Q}\vee y\in\mathbb{Q}$ condition which is or, not and. And with this simple modification your reasoning is correct.