Number Theory: Divisibility and Prime Factorization

Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
1 reply · 2K views
alexfresno
Messages
4
Reaction score
0
{SOLVED}Number theory/ divisibility

Show that m^2 is divisible by 3 if and only if m is divisible by 3.

MY attempt:

I assumed that 3k=m for some integers k and m.
squared both sides and now get.

3n=m where n=3*(3k^2). Thus 3|m^2

Now the problem is when i assume:
3k=m^2 and need to show 3|m.
 
Last edited:
Physics news on Phys.org
The easiest way seems to be via contradiction. If 3k = m^2 but 3 does not divide m, then what do you know about the prime factorization of m^2?