Jump to content

Science:Math Exam Resources/Courses/MATH312/December 2009/Question 04 (b)/Solution 1

From UBC Wiki

We begin by multiplying the product by (−1)p−1≡1modp. This gives

12⋅32⋅52⋅...⋅(p−2)2≡12⋅32⋅52⋅...⋅(p−2)2⋅(−1)p−1modp

Now, rewrite each square as a2=a⋅a and for each value of a, distribute a power of -1. Notice that we have (p−1)/2 terms in our product. So we need to take a factor of (−1)(p−1)/2 to accomplish this. This gives

12⋅32⋅52⋅...⋅(p−2)2⋅(−1)p−1≡(1)(−1)(3)(−3)(5)(−5)...(p−2)(−(p−2))⋅(−1)(p−1)/2modp

Now for each negative term, we add p to get.

(1)(−1)(3)(−3)(5)(−5)...(p−2)(−(p−2))⋅(−1)(p−1)/2≡(1)(p−1)(3)(p−3)(5)(p−5)...(p−2)(2)⋅(−1)(p−1)/2modp

After rearranging the right hand side above, we see that

(1)(p−1)(3)(p−3)(5)(p−5)...(p−2)(2)⋅(−1)(p−1)/2≡(p−1)!⋅(−1)(p−1)/2modp

By Wilson's Theorem and combining the above, we have

12⋅32⋅52⋅...⋅(p−2)2≡(p−1)!⋅(−1)(p−1)/2modp≡(−1)⋅(−1)(p−1)/2modp≡(−1)(p+1)/2modp

and this was what we wanted to show.