I am trying to prove the next statement.
For $r$ different primes such that the product $p_{1}\cdot p_{2}\cdots p_{k}>n^{2}$ and $a,b\in \{-n^{2},...,n^{2}\}$ $a=b \iff \forall r : a \mod p_{r}=b \mod p_{r}$
I made a table to build a numbering system applying mod on the naturals for each prime, I get sequences of numbers that I can put in my table, in such a way that the columns are coordinates and the new elements of my counting system, but I think that this is not a proof at all. I am stuck with this problem and I can't see how to proceed, especially the return.