Show that for any positive integer "a" such that gcd(a, p) = 1 and a^(p - 1) = 1 (mod p)?

2009-08-03 3:32 pm
p = 561 !!!!!!!!!
更新1:

Show that for any positive integer "a" such that gcd(a, p) = 1 and a^(p - 1) = 1 (mod p). How to show it? THX.

回答 (3)

2009-08-03 3:39 pm
✔ 最佳答案
If gcd(a,p) = 1, then a must be co prime to p. This is very similar to Fermat's little theorem (In fact I think it is Fermat's little theorem). In Fermat's little theorem, p is prime, not co prime to a.

This problem is very difficult to prove, even I can't remember the proof. However turns out that many people have summarise it:

http://primes.utm.edu/notes/proofs/FermatsLittleTheorem.html

Also try this:

http://en.wikipedia.org/wiki/Proofs_of_Fermat's_little_theorem
參考: I'm a computer science student that studied a lot of algorithm theories.
2009-08-03 10:45 pm
This is Fermat's little theorem. You can find the proofs of it here.

http://en.wikipedia.org/wiki/Proofs_of_Fermat%27s_little_theorem
2009-08-03 10:37 pm
Refer to Fermat's little theorem.


收錄日期: 2021-05-01 12:40:21
原文連結 [永久失效]:
https://hk.answers.yahoo.com/question/index?qid=20090803073222AALXQO9

檢視 Wayback Machine 備份