Friday, 25 January 2019

A number is prime if and only if ...



Prove that a number p is prime if and only if the gcd(numerator,denominator) of all fractions of the form 1p1,2p2,3p3,,kpk,,(p1)/2(p1)/2+1

equals 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<ab<p such that ab=p. In particular, we have ap12. To show this, we only need to show that ab12a, or equivalently that a(b2)1. This is clear, since b>2.



Finally, observe that gcd(a,pa)=gcd(a,aba)=a1.



Remark: If p is even, then p12 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 p12. Note that if we interpret the product as being up to p12, then the result is not correct for the composite number p=4.


No comments:

Post a Comment

real analysis - How to find limhrightarrow0fracsin(ha)h

How to find limh0sin(ha)h without lhopital rule? I know when I use lhopital I easy get $$ \lim_{h\rightarrow 0}...