Number thory- fermet's little theorm

  • Thread starter Thread starter yeland404
  • Start date Start date
Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
1 reply · 2K views
yeland404
Messages
23
Reaction score
0

Homework Statement


let a and b be integers that not divisible by the prime number p
if a^p[itex]\equiv[/itex]b^p, prove that a^p[itex]\equiv[/itex]b^p mod p^2

Homework Equations



if a^p[itex]\equiv[/itex]b^p, prove that a[itex]\equiv[/itex]b mod p

The Attempt at a Solution


I already get that a[itex]\equiv[/itex]b mod p , then how can I get a^p[itex]\equiv[/itex]b^p mod p^2 under the a^p[itex]\equiv[/itex]b^p mod p
 
Physics news on Phys.org
Hi ... i dono how to get the result a^p≡b^p mod p^2 using Fermat's theorem . But , the result can be proven using Binomial series.
Let a = mp + r , b = np + r where m and n are arbitrary integers.r is also an integer that denotes the remainder when a or b is divided by p.It is clear that our definition for a and b satisfy the intermediate result a≡b mod p = r.

ap ≡ (mp + r )p mod p2

Expanding RHS by binomial series and removing the terms which is exactly divisible by p^2 , we get ,

(mp + r )p mod p2 ≡ rp mod p2

similarly , bp ≡ (np + r )p mod p2 ≡ rp mod p2

Thus , it is proved that a^p and b^p will produce the same remainder when divided by p^2

Hope that u can understand this explanation... if not , post me the steps that you didnt understand ... i ll try to explain in detail
 
Last edited: