Proving Impossibility of Integer n in Modular Arithmetic

  • Thread starter Thread starter mike1
  • Start date Start date
  • Tags Tags
    Arithmetic
mike1
Messages
14
Reaction score
0

Homework Statement



Prove that it is impossible to find an integer n, such that

n^2 = 2 mod(4) or n^2 = 3 mod(4)

Hence or otherwise, prove that there do not exist integers m and n such that

3m^2 - 1 = n^2

Homework Equations





The Attempt at a Solution



Since n must be congruent to each of 0,1,2,3, n^2 must be congruent to 0,1,4,9 but what do I do next to prove this?
 
Physics news on Phys.org
Well, if (for example) n^2 \equiv 9\pmod 4, and you know that 9 \equiv 1\pmod 4,then you can tell that n^2 \equiv ??\pmod 4
 
mike1 said:

Homework Statement



Prove that it is impossible to find an integer n, such that

n^2 = 2 mod(4) or n^2 = 3 mod(4)

Hence or otherwise, prove that there do not exist integers m and n such that

3m^2 - 1 = n^2

Homework Equations





The Attempt at a Solution



Since n must be congruent to each of 0,1,2,3, n^2 must be congruent to 0,1,4,9 but what do I do next to prove this?

Welcome to PF, mike! :smile:

Can you simplify 0,1,4,9 mod 4?
Is any of those congruent to 2 or to 3?
 
Sorry, still confused :(
 
As you say, n^2 must be congruent to one of 0,1,4,9.

Writing something "mod 4", means you are only interested in the remainder after division by 4.
What is the remainder if you divide for instance 9 by 4?
 
So: 9 = 1 mod(4), since 9-1 = 8/4=2
 
Yep.
So what are the remainders of 0,1,4,9?
 
0= mod(4)
1= mod(4)
4= 0 mod(4)
9= 1 mod(4)
 
If you divide 1 by 4, it cannot be divided and the remainder is just 1.
The same for zero.

So your remainders for n^2 are 0,1,0,1.
Is any of those congruent to 2 or to 3?
 
  • #10
No, because 0/4 or 1/4 is not 2 or 3? & hence it's impossible to find an integer to satisfy it?
 
  • #11
Yep. :)
 
  • #12
Thanks :)

For part b) Since n^2 is congruent to 0 or 1 mod(4), after re-arranging we see that
3m^2 = n^1+1, so then n^2 + 1 is congruent to 1 or 2 mod(4). What should be done about the 3m^2?
 
  • #13
What are the possible remainders of m^2?
 
  • #14
Is it 0,1,4,9 but then times by 3 so 0,3,12,27? Or is that completely wrong..
 
  • #15
Oh that is correct.
But didn't we conclude that 0,1,4,9 were congruent to 0,1,0,1?

Multiply that with 3!
 
  • #16
Oh! So the remainders of 3m^2 are 0,3,0,3. So 3m^2 is congruent to 0 or 3 mod(4), but how we combine both of expressions?
 
Last edited:
  • #17
Well, you already had:
n^2 + 1 is congruent to 1 or 2 mod(4).

Perhaps compare it to that?
 
  • #18
How do I compare it to that?
Can I say since 3m^2=n^2+1, then 3m^2 is congruent to 0,1,2,3 mod(4)?...
 
  • #19
If we had 3m2=n2+1, then we know that 3m2=n2+1 (mod 4). What are the possible values of the left hand side? What are the possible values of the right hand side? (these were calculated earlier in the thread) Is it possible for the left hand and right hand side to be equal?
 
  • #20
Office_Shredder said:
If we had 3m2=n2+1, then we know that 3m2=n2+1 (mod 4). What are the possible values of the left hand side? What are the possible values of the right hand side? (these were calculated earlier in the thread) Is it possible for the left hand and right hand side to be equal?

Do you mean 0,3,0,3 and 0,1,0,1?
 
Last edited:
  • #21
Ignore...
 
Last edited:
  • #22
mike1 said:
Do you mean 0,3,0,3 and 0,1,0,1?

Almost.
You should have different numbers...
(Look back in the thread.)
 
  • #23
I like Serena said:
Almost.
You should have different numbers...
(Look back in the thread.)

yeah, I've got it now..thanks :)
 
  • #24
Good! :smile:
 
Back
Top