wu :: forums
« wu :: forums - Wilson's theorem »

Welcome, Guest. Please Login or Register.
Nov 28th, 2024, 11:45am

RIDDLES SITE WRITE MATH! Home Home Help Help Search Search Members Members Login Login Register Register
   wu :: forums
   riddles
   easy
(Moderators: towr, Grimbal, william wu, Eigenray, SMQ, ThudnBlunder, Icarus)
   Wilson's theorem
« Previous topic | Next topic »
Pages: 1  Reply Reply Notify of replies Notify of replies Send Topic Send Topic Print Print
   Author  Topic: Wilson's theorem  (Read 932 times)
Mickey1
Junior Member
**





   


Gender: male
Posts: 116
Wilson's theorem  
« on: Apr 24th, 2012, 2:28am »
Quote Quote Modify Modify

This is a version of a proof of Wilson’s theorem, i.e. (n-1)!=n-1 (mod n)  if an only if n is a prime.
 
Only if n is a prime:  
If n = ab the number a and b (both >0 and <n) will be among the factors in (n-1)!, and therefore (n-1)!=0 (mod n)
 
If n is a prime:
When k goes from 1 to n-1,  (n-1)!/k will form a permutation of the numbers 1 to n-1, since (n-1)!/k1 =(n-1)! /k2 implies that k1=k2 (for n=prime). For this permutation, multiplication of all the left hand terms = multiplication of all the right hand terms gives the equality  [(n-1)!]^(n-1)/ (n-1)!= (n-1)!, so that [(n-1)!]^(n-1) = (n-1)!^2, and [(n-1)!]^(n-1) = 1 (Fermats little theorem ) and therefore (n-1)! is either 1 or -1.
 
If (n-1)!=1 then  2 = (n-1)!+1 (mod n) making 2 a prime (mod n), 1 always being a rest after division. This should  hold for all primes n, but it is not true since e.g. 7+2 =9 =3*3 (with 0<3<7) so (n-1)!=-1 or n-1 (mod n).
 
I saw some proofs that seemed complicated, but I now see that Wikipedia’s proof is no longer than mine (assuming mine is OK). Also they both use Fermat’s little theorem, which makes the proof less transparent.
IP Logged
Pages: 1  Reply Reply Notify of replies Notify of replies Send Topic Send Topic Print Print

« Previous topic | Next topic »

Powered by YaBB 1 Gold - SP 1.4!
Forum software copyright © 2000-2004 Yet another Bulletin Board