Open main menu
Home
Random
Recent changes
Special pages
Community portal
Preferences
About Wikipedia
Disclaimers
Incubator escapee wiki
Search
User menu
Talk
Dark mode
Contributions
Create account
Log in
Editing
Wilson's theorem
(section)
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
==Gauss's generalization== [[Carl Friedrich Gauss|Gauss]] proved<ref>Gauss, DA, art. 78</ref><ref>{{cite journal | last1 = Cosgrave | first1 = John B. | last2 = Dilcher | first2 = Karl | journal = Integers | mr = 2472057 | article-number = A39 | title = Extensions of the Gauss–Wilson theorem | url = https://emis.de/journals/INTEGERS/papers/i39/i39.Abstract.html | volume = 8 | year = 2008}}</ref> that <math display=block> \prod_{k = 1 \atop \gcd(k,m)=1}^{m-1} \!\!k \ \equiv \begin{cases} -1 \pmod{m} & \text{if } m=4,\;p^\alpha,\;2p^\alpha \\ \;\;\,1 \pmod{m} & \text{otherwise} \end{cases} </math> where ''p'' represents an odd prime and <math>\alpha</math> a positive integer. That is, the product of the positive integers less than {{mvar|m}} and relatively prime to {{mvar|m}} is one less than a multiple of {{mvar|m}} when {{mvar|m}} is equal to 4, or a power of an odd prime, or twice a power of an odd prime; otherwise, the product is one more than a multiple of {{mvar|m}}. The values of ''m'' for which the product is −1 are precisely the ones where there is a [[Primitive root modulo n|primitive root modulo ''m'']].
Edit summary
(Briefly describe your changes)
By publishing changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the
CC BY-SA 4.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)