Proving √n Irrational: A Proof by Contradiction

Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
1 reply · 3K views
Arkuski
Messages
38
Reaction score
0
The problem reads as follows:

Let n be a positive integer that is not a perfect square. Prove that √n is irrational.

I understand the basic outline that a proof would have. Assume √n is rational and use a proof by contradiction. We can set √n=p/q where p and q are integers with gcd(p,q)=1. Now n=p2/q2. Next, nq2=p2. This implies p2 is divisible by q2, which subsequently implies that p is divisible by q. If n was a perfect square, its root would be an integer so q=1 and this is satisfied. However, if n is not a perfect square, its root would not be an integer. Thus, p divisible by q shows that gcd(p,q)≠1 and we have a contradiction.

My confusion is with the following step: p2 is divisible by q2 implies that p is divisible by q. Thank you so much for all of the help you can give me.
 
Physics news on Phys.org


Arkuski said:
The problem reads as follows:

Let n be a positive integer that is not a perfect square. Prove that √n is irrational.

I understand the basic outline that a proof would have. Assume √n is rational and use a proof by contradiction. We can set √n=p/q where p and q are integers with gcd(p,q)=1. Now n=p2/q2. Next, nq2=p2. This implies p2 is divisible by q2, which subsequently implies that p is divisible by q.
It's more usual to think about common factors between n and p, and how often they divide each.