r0bHadz said:
One last question. We know if 3|a^2 => 3|a from the following theorem
if x|f => x|fo for all o ∈ ℤ and its converse is true
Not really. It follows from ##3## being prime. A prime number which divides a product has to divide a factor of the product. It is the correct definition of prime: ##3\,|\,a\cdot a \Longrightarrow 3\,|\,a##.
E.g. ##3\,|\,20\cdot 24## then either ##3\,|\,20## or ##3\,|\,24##. If we have a non prime, say ##30## then ##30\,|\,20\cdot 24 =480## but ##30\nmid 20## and ##30\nmid 24## because the prime factors of ##30## are distributed among ##20## and ##24##.
For the proof you want to write, it is the convenient property. If you would have defined prime as irreducible number, i.e. there are no proper factors in ##3##, then it was not obvious from the definition for this irreducibility, how ##3\,|\,a^2## implies ##3\,|\,a##. Why should this be?
As mentioned earlier, you can use the prime factor decomposition as well. Assume ##a=p_1^{r^1}\cdot \ldots \cdot p_m^{r_m},## then ##3\,|\,a^2=p_1^{2r^1}\cdot \ldots \cdot p_m^{2r_m}## implies that one of the factors ##p_i = 3\,.## and thus ##3\,|\,a##.