I have to show that the following are an equivalence relation on $A$ and find a bijection between $A/\sim$ and $B$.
I know that to show something is an equivalence relation it needs to satisfy the reflective, symmetry and transitive property, but I don't know how to prove that. I also don't know anything about bijections.
a) $A=\mathbb{Z}$ (integers); $m\sim n$ means that $m^2=n^2$;$B=\mathbb{N}$ (Natural numbers)
b) $A=\mathbb{R}\times \mathbb{R}; (x,y)$ is equivalent to $(x_1, y_1)$ means that $x^2+y^2=x_1^2+y_1^2$; $B=\{x \in \mathbb{R}|x \geq 0\}$
Any help would be appreciated!
a) You need to prove:
Therefore, $\sim$ is an equivalence relation on $\mathbb{Z}$. It is no hard to show that a equivalence class for $n\in\mathbb{Z}$ under $\sim$ is: $[n]=\{n,-n\}$. Now, we need to prove that there is an injective and surjective mapping $f:\mathbb{Z}/\sim \longrightarrow \mathbb{N}$. So, what about $x\mapsto |x|$?