EDIT: The original question is: Let $N$ be a countable set and $f$ a function that maps $N$ onto a set $M$. Prove that $M$ is countable.
Consider a countable set $N$ which the function $f$ maps [on]to a set $M$. I want to prove that the set $M$ also is countable, if $N$ is. The thing I am unsure about, is if $f(N)=M$?
Here is my proof, though:
Proof. Let $N \subset X$ be a countable set and $f:X \rightarrow Y$.
Therefore, $N\cup f(N)=\left \{ x_1, f(x_1), x_2, f(x_2),...,x_n,f(x_n) \right \}$ which can be expressed as
$N\cup f(N)=\left \{x_1,f(x_1) \right \}\cup\left \{x_2,f(x_2) \right \}\cdots \cup\left \{x_n,f(x_n) \right \}$.
Theorem (*), picked from Set Theory and Matrices by I. Kaplansky : A countable union of countable sets is countable.
Since we have a union of $n$ sets in which there is two elements, $N\cup f(N)$ is therefore countable according to (*).
Since $N$ is defined as countable and $N\cup f(N)$ is countable, thus $f(N)$ is countable.
The question is though, is $f(N)$ referred as "the same thing" as $M$? If the purpose is proving that an arbitrary set $M$ is countable, I am totally lost.
Does anyone here have any suggestions?