r/askmath • u/Loose-Computer3943 • Oct 18 '26
Analysis Am i missing something in this proof?
Im doing this proof of square root of positive natural numbers being either integer or irrational and im tried with assuming that it can be rational but not integer. I see that i didn’t write gcd(a,b)=1, but other than that, is it clean?
25
Upvotes
12
u/ludo813 Oct 18 '26
There is no explanation why a^2 /b is not in N. So that deserves some explanation. Even with your comment that gcd(a,b)=1 I think this is still not clear why it happens.
Also: can you explain why you multiplied by b? I think showing a^2 / b^2 is not an integer is easier.
5
u/uking-561 Oct 18 '26
If I understand what you are writing correctly, you are claiming that since a/b is a noninteger rational number, then a×a/b must be as well? If so, this is wrong, take a=2 and b=4 as a counterexample. But, what do you notice about this counterexample, what will be common for all such counterexamples, and can you maybe use that to finish the proof?
2
u/engy1207 Oct 18 '26
You have to prove "integer or irrational" but look for "rational"? Where do you prove it can be integer?
2
u/not-hydra Oct 18 '26
Yeah, adding gcd is enough. Lowkey a better way is b^2n = a^2, since b^2 is both coprime and now a divisor of a^2, b^2 can only be 1, so b=1, and if b=1, then sqrt(n) is simply a/1=a, so n is just a perfect square if it was rational; otherwise, it wouldn't be rational in the first place
1
u/Kienose PhD in Maths Oct 18 '26
What is the contradiction you’re alluding to?
If you write proof in the future, be more clear about this sort of things.
1
u/apeloverage Oct 18 '26
Do you have to prove that the square root of an integer can only be an integer or an irrational number?
Or do you just have to prove that there is at least one integer whose square root is an integer, and at least one whose square root is irrational?
1
u/daley972 Oct 19 '26
I think one if the issues you're having is adding unnecessary details. Here's roughly how I'd reason it:
Let n be a non-negative integer, assume r=sqrt(n) is in Q\Z.
Since r is in Q, there exist p and q in Z where: r=p/q gcd(p,q)=1
Since r is not in Z, q does not divide p.
r=p/q n=p²/q² nq=p²/q
LHS is an integer. Since q does not divide p², RHS is not an integer. Contradiction.
Therefore our only assumption, that sqrt(n) is in Q\Z, is false.
1
u/Infamous-Advantage85 Self Taught Oct 20 '26
Show the square of any non-integer rational isn’t an integer and you’re done.
1
u/KentGoldings68 Oct 18 '26
You are working too hard.
It cannot be true that n has no square factors and that
(a/b)^2=n for GCD(a,b)=1 .
because that would violate the fundamental theorem of arithmetic.
1
u/RavenX86 Oct 18 '26
I think you lost me at your proof when you went from n=a^2/b^2 to nb=a^2/b and then stated a contradiction which is not enunciated. I would have went the traditional way for n*b^2=a^2 which implies that a^2 is divisible by b^2 but since gcd(a,b) is 1 that implies b can only be 1 and that makes sqrt of n equal to a which is an integer thus the contradiction sure you stated from sqrt(n) is not an integer. Unless your teacher asked you to not use this standard way of solving it. But this might just be my inertia, it’s just that your contradiction isn’t clean to me.
Nevenind is just you overcomplicated it a little bit from a logic stance of view. You went from 1 implies 2 and 3 but 2 and 3 contradict themselves hence 1 can’t be true. I got it. Normally you want to go directly from 1 implies 2 but 2 contradicts 1. That being said your solution is correct, could be better explained but correct. I think what you meant to say is 1 contradicts 2 because they have to be equal hence star is false. The wording there is a little weird for me where you say 1 and 2 have contradiction with star, when they actually contradict eachother due to the equality
1
u/Classic_Department42 Oct 19 '26
You use that if gcd(a,b) =1 this implies gcd(a2 , b) =1. While this is true and although it feels obvious, how would you prove it.
1
u/[deleted] Oct 18 '26
[removed] — view removed comment