Exercise 2.4.3 (Composite repunits)

(a)
Let m = 11111 . Show that 2 m 1 = 10536 ( mod m ) . Deduce that m is composite.
(b)
Let m = 1111111 . Show that 2 m 1 = 553891 ( mod m ) . Deduce that m is composite.
(c)
Let m = 11111111111 . Show that 2 m 1 = 1496324899 ( mod m ) . Deduce that m is composite.
(d)
Let m = 1111111111111 . Show that 2 m 1 = 1015669396877 ( mod ). Deduce that m is composite.

Answers

Proof. Note that, if 111 11 p is prime, then p is prime (why?). The converse is false, as the following counterexamples show it.

a)
Applying the algorithm of fast exponentiation (and the Python program) given in problem 2, we obtain for m = 11111 , 2 m 1 10536 1 ( mod m ) .

If m was prime, we would obtain by Fermat’s theorem 2 m 1 1 ( mod m ) . This is false, so m is composite.

b)
If m = 1111111 , then 2 m 1 553891 ,

so m is composite.

c)
If m = 11111111111 , then 2 m 1 1496324899 ,

so m is composite.

d)
If m = 1111111111111 , then 2 m 1 1015669396877 ,

so m is composite.

ipython:

     In [13]: m = 1111111111111
     
     In [14]: powermod(2,m-1,m)
     Out[14]: 1015669396877

User profile picture
2024-08-21 14:42
Comments