Prove that a number p is prime if and only if the gcd(numerator,denominator) of all fractions of the form 1p−1,2p−2,3p−3,…,kp−k,…,(p−1)/2(p−1)/2+1
The proof in the forwards direction by contradiction is simple because it leads to gcd(fraction)≠1. In the reverse direction I have (by contrapositive): p is composite (odd or even) implies there exists a fraction whose gcd is not 1. It's true for even composites because any even k gives a gcd not equal to 1, but for an odd composite I'm having trouble seeing how to prove it.
Anyone have any ideas about the reverse direction?
Answer
Suppose that p>4 is not prime. Then there exist positive integers a and b, with 1<a≤b<p such that ab=p. In particular, we have a≤p−12. To show this, we only need to show that ab−1≥2a, or equivalently that a(b−2)≥1. This is clear, since b>2.
Finally, observe that gcd(a,p−a)=gcd(a,ab−a)=a≠1.
Remark: If p is even, then p−12 is not an integer. So it seems likely that we are to assume that p is odd. However, the argument goes through for even p>4, using the fractions with numerator up to ⌊p−12⌋. Note that if we interpret the product as being up to ⌊p−12⌋, then the result is not correct for the composite number p=4.
No comments:
Post a Comment