Theorem: If r is a irrational number, then sqrt(r) is also irrational.
Proof by contradiction. Suppose r is an irrational number and sqrt(r)
is rational. Then, there exist integers a and b, with b not equal to 0,
such that
sqrt(r) = a/b. Then r= a2/b2. However,
since a2 and b2 are integers and b2
is not equal to 0, r is a rational number. This contradicts the assumption
that r was irrational. Hence sqrt(r) must be irrational. QED.
Theorem: Suppose p is an integer at least 2. If 2p-1
is prime then p must be prime.
Proof by contradiction. Suppose p is an integer such
that 2p-1 is prime and p is composite. Then there exist integers
r and s such that p=rs and 1<r<p and 1<s<p.
Then 2p-1=2rs-1=(2r-1)(2r(s-1)
+ 2r(s-2)+ 2r(s-3) + ... + 2r(2)
+ 2r + 1). Since r and s are both at least 2,
each of the factors of 2p-1 are at least 2. Hence 2p-1
is composite. This contradicts the assumption that 2p-1 was
prime. Hence p must be prime. QED
You can see thisway to factor by long division. Here is an example. Suppose p=15=3x5.
215-1=23x5-1=(23-1)(2(3x4)
+ 2(3x3)+ 2(3x2) + 23 + 1)
32768 -1 = 7 x (4098 + 512 + 64 + 8 + 1) =
7 x 4681