d2jsp
Log InRegister
d2jsp Forums > Off-Topic > General Chat > Homework Help > Fermat's Little Theorem
Add Reply New Topic New Poll
Member
Posts: 5,204
Joined: Dec 6 2009
Gold: 24,204.00
Jan 28 2016 02:30pm
Hey I am having trouble with this problem:



Not really sure how to use FLT to get a contradiction here
Member
Posts: 153
Joined: Dec 3 2015
Gold: 276.00
Jan 28 2016 02:52pm
think i had a similar hw before lemme see if i can dig it up
Member
Posts: 16,662
Joined: Nov 24 2007
Gold: 15,245.00
Trader: Trusted
Jan 28 2016 05:27pm
Let p a prime number such that p = 3 [4].
Let x an integer such as x² = -1 [p].

Assume x is a multiple of p : so does x², and that's impossible since x² is not 0 [p].

Fermat's little theorem hence claims that : x^(p-1) = 1 [p].

Since p = 3 [4], p-1 = 2 [4] and (p-1)/2 = 1 [2].

Notice that :
x^(p-1) = (x²)^((p-1)/2)

Now we get :
(x²)^((p-1)/2) = 1 [p]
(-1)^((p-1)/2) = 1 [p]

But (p-1)/2 is an odd integer (see above) :
-1 = 1 [p]

p is an even prime : p = 2, and that's absurd because p = 3 [4].
Member
Posts: 7,324
Joined: Dec 22 2002
Gold: 1,261.00
Jan 28 2016 05:30pm
I don't remember enough modular math to solve this, but I imagine you would have to assume that there exists an integer x such that x^2 is congruent to -1 mod p and then use FLT to say that x^p is congruent with x mod p. From there you'd need to use some mod rules to find that p cannot be congruent to 3 mod 4 and thus your assumption must be false.
So something like:
Given: p ≡ 3 mod 4
Assume: x^2 ≡ -1 mod p
FLT: x^p ≡ x mod p

From here you can start doing some stuff like take the last two and say that x^(p + 2) ≡ -x mod p and hence x^(p + 1) ≡ -1 mod p or x^(p + 3) ≡ 1 mod p or x^p * x^3 ≡ 1 mod p

I don't really know where to take it from here.

edit: I started typing before feanur posted :\

This post was edited by russian on Jan 28 2016 05:55pm
Member
Posts: 5,204
Joined: Dec 6 2009
Gold: 24,204.00
Jan 28 2016 07:42pm
Quote (feanur @ Jan 28 2016 06:27pm)

Assume x is a multiple of p : so does x², and that's impossible since x² is not 0 [p].


So after this point you get that gcd(x,p) = 1? Hence we can use FLT?
Member
Posts: 16,662
Joined: Nov 24 2007
Gold: 15,245.00
Trader: Trusted
Jan 28 2016 08:30pm
Quote (Bloo_Guardian @ Jan 29 2016 02:42am)
So after this point you get that gcd(x,p) = 1? Hence we can use FLT?


Since p is prime, gcd(x,p) = 1 or p.
If it's 1, FLT states that : x^(p-1) = 1 [p].
If it's p (ie : if x is a multiple of p), FLT only states that : x^p = x [p] (which is obvious).

I checked that gcd(x,p)=1 just to be able to use the strongest version of FLT.
Member
Posts: 5,204
Joined: Dec 6 2009
Gold: 24,204.00
Jan 29 2016 12:05am
Great, thank you!!
Go Back To Homework Help Topic List
Add Reply New Topic New Poll