Trying to understand Gauss's Lemma

  • Thread starter Oxymoron
  • Start date
In summary: I still don't understand how floor(p/4) relates to floor((4n+1)/4). Can you help clarify?In summary, the Gauss Lemma states that (2/p) = (-1)^n for any odd prime p. The p odd prime case is when p=2. If p=4n+1 then floor(p/4) is 4 and floor((4n+1)/4)=floor(n+1/4)=5. If p=3(mod 4) then floor((4n+2)/4)=floor(n+2/4)=7 and floor(p/4) is 3.
  • #36
1. Let p=1(mod 8). => p=8n+1

exponent = 8n/4 - floor((8n+1)/4) = 4n - 2n = 2n (EVEN)

2. Let p=-1(mod 8) => p=8n-1

exponent = (8n-2)/2 - floor((8n-1)/4) = 4n - 1 - 2n = 2n-1 (ODD)

3. Let p=3(mod 8) => p=8n+3

exponent = (8n+2)/2 - floor((8n+3)/4) = 4n - 1 - 2n = 2n-1 (ODD)

4. Let p=-3(mod 8) => p=8n-3

exponent = (8n-4)/2 - floor((8n-3)/4) = 4n - 2 - 2n = 2n-2 (EVEN)
 
Last edited:
Physics news on Phys.org
  • #37
But shouldn't the first two exponents be EVEN and the last two ODD?
 
  • #38
You have floor((8n-1)/4)=2n, this isn't correct.
 
  • #39
Sorry, where do I have that?

floor((8n-1)/4) = floor(2n-1/4) which is always going to be 1 less than an even number => ODD

n=1 RHS = 1
n=2 RHS = 3
n=3 RHS = 5
etc...
 
Last edited:
  • #40
Oxymoron said:
2. Let p=-1(mod 8) => p=8n-1

exponent = (8n-2)/2 - floor((8n-1)/4) = 4n - 1 - 2n = 2n-1 (ODD)

(8n-2)/2=4n-1 so

(8n-2)/2 - floor((8n-1)/4) = 4n - 1 - 2n

tells me you have

floor((8n-1)/4) = 2n
 
  • #41
Ah, I see. Well floor((8n-1)/4) is certainly not 2n. ;)

floor((8n-1)/4) = 2n-1 So we should have

4n - 1 - (2n - 1) = 2n => EVEN


And fixing the mistake in the last case yields ODD
 
  • #42
Well, if this is all correct then I have shown what I needed to show. :)
 

Similar threads

  • Calculus and Beyond Homework Help
Replies
9
Views
1K
  • Calculus and Beyond Homework Help
Replies
13
Views
2K
  • Calculus and Beyond Homework Help
Replies
2
Views
271
  • Calculus and Beyond Homework Help
Replies
1
Views
1K
Replies
23
Views
1K
  • Calculus and Beyond Homework Help
Replies
9
Views
797
  • Calculus and Beyond Homework Help
Replies
3
Views
550
  • Calculus and Beyond Homework Help
Replies
7
Views
1K
  • Precalculus Mathematics Homework Help
Replies
9
Views
1K
  • Calculus and Beyond Homework Help
Replies
16
Views
2K
Back
Top