image
Physics Forums Logo
image
image
* Register * Upgrade Blogs Library Staff Rules Mark Forums Read
image
image   image
image

Go Back   Physics Forums > Mathematics > Number Theory


Reply

image n congruent 3 mod 4 Share It Thread Tools Search this Thread image
Old Apr15-09, 12:53 PM                  #1
Abelian_Math

Abelian_Math is Offline:
Posts: 2
n congruent 3 mod 4

Prove that if nLaTeX Code: \\equiv3 (mod 4), then n cannot be represented as a sum of two squares.
  Reply With Quote
Old Apr15-09, 01:38 PM                  #2
AUMathTutor

AUMathTutor is Offline:
Posts: 490
Re: n congruent 3 mod 4

Well, assume a^2 + b^2 = 3 (mod 4).

Then a^2 + b^2 is odd, which means exactly one of a, b is odd. We can call a odd, without loss of generality. b is therefore even.

Clearly, b^2 = 0 (mod 4). The square of any even number is 0 mod 4.

Therefore, a^2 must be 3 mod 4. Ergo

a^2 = 3 (mod 4)
<=>
a^2 = 4n + 3

Any odd number can be written as either 4m+1 or 4m-1. So

(4m+1)^2 = 16m^2 + 8m + 1 = 4n + 3
<=>
16m^2 + 8m = 4n + 2
<=>
8m^2 + 4m = 2n + 1
<=>
4(2m^2 + m) = 2n + 1

A clear contradiction. Checking the other case,

(4m-1)^2 = 16m^2 - 8m + 1 = 4n + 3
<=>
16m^2 - 8m = 4n + 2
<=>
8m^2 - 4m = 2n + 1
<=>
4(2m^2 - m) = 2n + 1

Also a clear contradiction. Therefore, it cannot possible be true that

a^2 = 4n + 3

So it follows that it is not the case that

a^2 = 3 (mod 4)

From which one can deduce that, since b^2 = 0 (mod 4),

a^2 + b^2 = 3 (mod 4)

Cannot happen.

It may not be the prettiest proof, but I'm sure the other regulars will swoop in with a two-liner and make me look like a muppet. ;D
  Reply With Quote
Old Apr15-09, 03:50 PM                  #3
CRGreathouse

CRGreathouse is Offline:
Posts: 2,939
Recognitions:
Homework Helper Homework Helper
Science Advisor Science Advisor
Re: n congruent 3 mod 4

Originally Posted by AUMathTutor View Post
It may not be the prettiest proof, but I'm sure the other regulars will swoop in with a two-liner and make me look like a muppet. ;D
Squares are zero or one mod 4.
Thus the sum of two squares cannot be 3 mod 4.
  Reply With Quote
Old Apr15-09, 04:58 PM                  #4
AUMathTutor

AUMathTutor is Offline:
Posts: 490
Re: n congruent 3 mod 4

"Squares are zero or one mod 4."

I think that taking this statement for granted is sort of presupposing the conclusion. Although a simple proof of this would certainly prove the guy's thing.

I think one should be careful when proving theorems as an exercise... although there may be a theorem which makes your exercise trivial, you're not always allowed to use it per se. For instance, I could ask you to prove that there are infinitely many primes, and you could say "It has been proven that there are infinitely many primes already. Therefore, there are infinitely many primes. QED". Yes, alright. But that's sort of defeating the purpose.
  Reply With Quote
Old Apr15-09, 05:38 PM                  #5
MLeszega

MLeszega is Offline:
Posts: 18
Re: n congruent 3 mod 4

Can you show that n cannot be congruent to 3 (mod 4) by showing that it must be congruent to 0, 1 or 2 (mod 4)? Because you can do this by breaking it down into 3 cases. If n = x^2 + y^2 then either x and y are (1) both even, (2) both odd, or (3) one odd, one even.
For (1) x^2 and y^2 are both congruent to 0 (mod 4) (because they are even), so x^2 + y^2 is congruent to 0 (mod 4).
For (2) x^2 and y^2 are both congruent to 1 (mod 4) (because they are both odd), so x^2 + y^2 is congruent to 2 (mod 4).
Finally, (3) one is odd, the other even. You find that this is congruent to 1 (mod 4).

So then n cannot be congruent to 3 (mod 4) because by our 3 cases it must be either 0,1 or 2 (mod 4).

Sorry in advance if I was unclear or made any other mistakes.
  Reply With Quote
Old Apr15-09, 06:08 PM                  #6
CRGreathouse

CRGreathouse is Offline:
Posts: 2,939
Recognitions:
Homework Helper Homework Helper
Science Advisor Science Advisor
Re: n congruent 3 mod 4

Originally Posted by AUMathTutor View Post
"Squares are zero or one mod 4."

I think that taking this statement for granted is sort of presupposing the conclusion. Although a simple proof of this would certainly prove the guy's thing.
If you prefer the 'long' two-line version:
0^2 = 0, 1^2 = 1, 2^2 = 0, 3^4 = 1 (mod 4). Thus squares are 0 or 1 mod 4.
0+0 = 0, 0 + 1 = 1, 1 + 0 = 1, 1 + 1 = 2. Thus sums of squares are never 3 mod 4.
  Reply With Quote
Old Apr15-09, 07:44 PM                  #7
AUMathTutor

AUMathTutor is Offline:
Posts: 490
Re: n congruent 3 mod 4

I suppose that does work, too. Interestingly enough it is exactly what I did, except that I didn't realize that you only had to show it for 0, 1, 2, and 3. You're right, of course.
  Reply With Quote
Old Apr15-09, 08:40 PM                  #8
CRGreathouse

CRGreathouse is Offline:
Posts: 2,939
Recognitions:
Homework Helper Homework Helper
Science Advisor Science Advisor
Re: n congruent 3 mod 4

Originally Posted by AUMathTutor View Post
I suppose that does work, too. Interestingly enough it is exactly what I did, except that I didn't realize that you only had to show it for 0, 1, 2, and 3. You're right, of course.
It is the same, you're right. Yours might even be more understandable. I claim only that mine is shorter. :)
  Reply With Quote
image image
Reply
Thread Tools


Similar Threads for: n congruent 3 mod 4
Thread Thread Starter Forum Replies Last Post
Congruent financial measure?? what?? analysera88 Social Sciences 0 Nov25-08 07:19 PM
not congruent? tgt Math & Science Software 1 Nov5-08 05:11 AM
Congruent Modulo stanners Linear & Abstract Algebra 1 Jun20-07 07:57 AM
Congruent Triangle in circle thomas49th Precalculus Mathematics 5 Apr7-07 04:02 AM
Congruent equality - how to prove? AntonVrba Number Theory 2 Sep12-05 06:29 AM

Powered by vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd. © 2009 Physics Forums
Sciam | physorgPhysorg.com Science News Partner
image
image   image