33
Sierpi ´ nski and Carmichael numbers William Banks Department of Mathematics University of Missouri Columbia, MO 65211, USA [email protected] Carrie Finch Mathematics Department Washington and Lee University Lexington, VA 24450, USA [email protected] Florian Luca Centro de Matem´aticas Universidad Nacional Aut´onoma de M´ exico C.P. 58089, Morelia, Michoac´ an, M´ exico [email protected] Carl Pomerance Department of Mathematics Dartmouth College Hanover, NH 03755-3551 USA [email protected] Pantelimon St ˘ anic ˘ a Department of Applied Mathematics Naval Postgraduate School Monterey, CA 93943, USA [email protected] January 16, 2013

Sierpinski and Carmichael numbers

  • Upload
    others

  • View
    3

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Sierpinski and Carmichael numbers

Sierpinski and Carmichael numbers

William Banks

Department of MathematicsUniversity of Missouri

Columbia, MO 65211, [email protected]

Carrie Finch

Mathematics DepartmentWashington and Lee University

Lexington, VA 24450, [email protected]

Florian Luca

Centro de MatematicasUniversidad Nacional Autonoma de Mexico

C.P. 58089, Morelia, Michoacan, [email protected]

Carl Pomerance

Department of MathematicsDartmouth College

Hanover, NH 03755-3551 [email protected]

Pantelimon Stanica

Department of Applied MathematicsNaval Postgraduate SchoolMonterey, CA 93943, USA

[email protected]

January 16, 2013

Page 2: Sierpinski and Carmichael numbers

Abstract

We establish several related results on Carmichael, Sierpinski andRiesel numbers. First, we prove that almost all odd natural numbersk have the property that 2nk + 1 is not a Carmichael number for anyn ∈ N; this implies the existence of a set K of positive lower densitysuch that for any k ∈ K the number 2nk + 1 is neither prime norCarmichael for every n ∈ N. Next, using a recent result of Matomaki,we show that there are x1/5 Carmichael numbers up to x that arealso Sierpinski and Riesel. Finally, we show that if 2nk+ 1 is Lehmer,then n 6 150ω(k)2 log k, where ω(k) is the number of distinct primesdividing k.

1 Introduction

In 1960, Sierpinski [25] showed that there are infinitely many odd naturalnumbers k with the property that 2nk + 1 is composite for every naturalnumber n; such an integer k is called a Sierpinski number in honor of hiswork. Two years later, J. Selfridge (unpublished) showed that 78557 is aSierpinski number, and this is still the smallest known example.1

Every currently known Sierpinski number k possesses at least one coveringset P, which is a finite set of prime numbers with the property that 2nk + 1is divisible by some prime in P for every n ∈ N. For example, Selfridgeshowed that 78557 is Sierpinski by proving that every number of the form2n·78557 + 1 is divisible by a prime in P := 3, 5, 7, 13, 19, 37, 73. When acovering set is used to show that a given number is Sierpinski, every naturalnumber in a certain arithmetic progression (determined by the covering set)must also be Sierpinski; in particular, the set of Sierpinski numbers has apositive lower density.

If N is a prime number, Fermat’s little theorem asserts that

aN ≡ a (mod N) for all a ∈ Z. (1)

Around 1910, Carmichael [9, 10] initiated the study of composite numbersN with the same property; these are now known as Carmichael numbers. In1994, Alford, Granville and Pomerance [1] proved the existence of infinitely

1At present, there are only six smaller numbers that might have the Sierpinski property:10223, 21181, 22699, 24737, 55459, 67607; see http://www.seventeenorbust.com for themost up-to-date information.

1

Page 3: Sierpinski and Carmichael numbers

many Carmichael numbers. Since prime numbers and Carmichael numbersshare the property (1), it is natural to ask whether certain results for primescan also be established for Carmichael numbers; see, for example, [2, 3, 5,14, 20, 29] and the references contained therein.

Our work in this paper originated with the question as to whether thereexist Sierpinski numbers k such that 2nk + 1 is not a Carmichael numberfor any n ∈ N. Since there are many Sierpinski numbers and only a fewCarmichael numbers, it is natural to expect there are many such k. However,because the parameter n can take any positive integer value, the problem isboth difficult and interesting. Later on, we dropped the condition that k beSierpinski and began to study odd numbers k for which 2nk + 1 is never aCarmichael number. Our main result is the following theorem.

Theorem 1. Almost all odd natural numbers k have the property that 2nk+1is not a Carmichael number for any n ∈ N.

This is proved in §2. Our proof uses results and methods from a recentpaper of Cilleruelo, Luca and Pizarro-Madariaga [11], where it is shown thatthe bound

n 6 22000000 τ(k)2ω(k)(log k)2 (2)

holds for every Carmichael number 2nk + 1. Here, τ(k) is the number ofpositive integer divisors of k, and ω(k) is the number of distinct prime factorsof k. To give some perspective on this result, let v2(·) be the standard2-adic valuation, so that 2−v2(m)m is the odd part of any natural number m.Theorem 1 implies that the set

k = 2−v2(n−1)(n− 1) : n is a Carmichael number

has asymptotic density zero.2 By comparison, Erdos and Odlyzko [15] haveshown that the set

k = 2−v2(p−1)(p− 1) : p is a prime number

has a positive lower density.Since the collection of Sierpinski numbers has a positive lower density,

the following corollary is an immediate consequence of Theorem 1.

2In [11] it is shown that 27 is the smallest number in this set.

2

Page 4: Sierpinski and Carmichael numbers

Corollary 1. There exists a set K ⊆ N of positive lower density such thatfor any fixed k ∈ K, the number 2nk+ 1 is neither prime nor Carmichael foreach n ∈ N.

Riesel numbers have a similar definition to that of Sierpinski numbers.An odd natural number k is called a Riesel number if 2nk − 1 is compositefor all n ∈ N. Such numbers were first investigated in 1956 by Riesel [24]. Atpresent, the smallest known example is 509203.3 It is known that there areinfinitely many natural numbers that are both Sierpinski and Riesel. Usingrecent results of Matomaki [20] and Wright [29] coupled with an extensivecomputer search, we prove the following result in §3.

Theorem 2. Infinitely many natural numbers are simultaneously Sierpinski,Riesel, and Carmichael. In fact, the number of them up to x is x1/5 forall sufficiently large x.

Let ϕ(·) be the Euler function, which is defined by ϕ(n) := n∏

p |n(1−p−1)

for all n ∈ N; in particular, one has ϕ(p) = p− 1 for every prime p. In 1932,Lehmer [19] asked whether there are any composite numbers n such thatϕ(n) | n − 1, and the answer to this question is still unknown. We say thatn is a Lehmer number if n is composite and ϕ(n) | n − 1. It is easy tosee that every Lehmer number is Carmichael, but there are infinitely manyCarmichael numbers which are not Lehmer (see [4]). We prove the followingresult in §4.

Theorem 3. Let k be an odd natural number. If 2nk + 1 is Lehmer thenn 6 150ω(k)2 log k.

Remark. The situation for Lehmer numbers of the form 2nk − 1 is trivial.Indeed, when N := 2nk − 1 is Lehmer, then ϕ(N) | N − 1 = 2(2n−1k − 1).For n > 2 this implies that 4 - ϕ(N), which is impossible since N is odd,squarefree and composite. Therefore, n must be 1.

Throughout the paper, we use logk x to denote the k-th iterate of thefunction log x := maxlnx, 1, where lnx is the natural logarithm. We usethe notations O, o, , with their customary meanings. Any constantor function implied by one of these symbols is absolute unless otherwiseindicated.

3As of this writing, there are 55 candidates smaller that 509203 to consider; seehttp://www.prothsearch.net/rieselprob.html for the most recent information.

3

Page 5: Sierpinski and Carmichael numbers

Acknowledgments. The authors thank the referee for a careful readingof the manuscript and for useful suggestions, and Jan-Hendrik Evertse forhelpful advice and for providing some references. They also thank PedroBerrizbeitia for an enlightening conversation. The third-named author wassupported in part by Project PAPIIT 104512 and a Marcos Moshinsky fel-lowship. The fourth-named author would like to acknowledge support fromNSF grant DMS-1001180. The fifth-named author acknowledges sabbaticalsupport from the Naval Postgraduate School.

2 Proof of Theorem 1

2.1 Preliminary estimates

Let x be a large real parameter, and put

C(x) :=

odd k ∈ (x/2, x] : 2nk + 1 is Carmichael for some n.

If S(x) ⊆ C(x) for all large x, we say that S(x) is negligible if |S(x)| = o(x)as x → ∞. Below, we construct a sequence C1(x),C2(x), . . . of negligiblesubsets of C(x), and for each j > 1 we denote

C∗j(x) := C(x) \j⋃i=1

Ci(x).

Theorem 1 is the statement that C(x) is itself negligible; thus, we need toshow that C∗j(x) is negligible for some j.

Let Ω(n) be the number of prime factors of n, counted with multiplicity,and put

N1(x) :=k 6 x : Ω(k) > 1.01 log2 x

.

Since log2 x is the normal order of Ω(n) over numbers n 6 x, it follows that

|N1(x)| = o(x) (x→∞). (3)

In fact, using the Turan-Kubilius inequality (see [27]) one sees that |N1(x)| x/ log2 x, and stronger bounds can be deduced from results in the literature(although they are not needed here). Using (3) it follows that

C1(x) := C(x) ∩N1(x)

4

Page 6: Sierpinski and Carmichael numbers

is negligible.Next, let Ω(z;n) denote the number of prime factors p ≤ z of n, counted

with multiplicity. Set

N2(x) :=k 6 x : Ω(z1; k) > 2 log3 x

with z1 := (log x)10.

Since the normal order of Ω(z1;n) over numbers n 6 x is log2 z1 ∼ log3 x, itfollows that |N2(x)| = o(x) as x→∞; therefore,

C2(x) := C(x) ∩N2(x)

is negligible.In what follows, we denote

yl := x1/2−10ε and yu := x1/2+10ε,

where

ε = ε(x) :=1

log2 x.

According to Tenenbaum [26, Theoreme 1] (see also Ford [17, Theorem 1])there are precisely x/(log2 x)δ+o(1) numbers k 6 x that have a divisor d ∈[yl, yu], where δ := 1− (1 + ln ln 2)/ ln 2; in particular, the set

N3(x) :=k 6 x : k has a divisor d ∈ [yl, yu]

is such that |N3(x)| = o(x) as x→∞; therefore,

C3(x) := C(x) ∩N3(x)

is negligible.For each k ∈ C(x), let n0(k) be the least n ∈ N for which 2nk + 1 is a

Carmichael number. For any real X > 1 let

F(X) :=k ∈ C(x) : n0(k) 6 X

,

and for any subset Q ⊆ N, let F(Q;X) be the set of k ∈ F(X) for whichthere exists n 6 X with the property that 2nk + 1 is a Carmichael numberdivisible by some number q ∈ Q.

Lemma 1. If X and Q are both defined in terms of x, and one has

X∑q∈Q

q−1 = o(1) and X|Q| = o(x) (x→∞),

then∣∣F(Q;X)

∣∣ = o(x) as x→∞.

5

Page 7: Sierpinski and Carmichael numbers

Proof. For fixed n 6 X and q ∈ Q, if 2nk + 1 is a Carmichael number thatis divisible by q, then k lies in the arithmetic progression −2−n mod q; thus,the number of such k 6 x cannot exceed x/q + 1. Summing over all n 6 Xand q ∈ Q we derive that∣∣F(Q;X)

∣∣ 6 ∑n6Xq∈Q

(x/q + 1) 6 xX∑q∈Q

q−1 +X|Q| = o(x) (x→∞),

as required.

2.2 Small values of n0(k)

Consider the set

C4(x) := F(X1), where X1 :=log x

log2 x.

According to Pomerance [22] there are t/L(t) Carmichael numbers thatdo not exceed t, where

L(t) := exp

(log t log3 t

log2 t

).

Since the function f(k) := 2n0(k)k + 1 is one-to-one and maps C4(x) into theset of Carmichael numbers not exceeding 2X1x+ 1, we have

|C4(x)| 2X1x

L(2X1x)=

x

L(x)1+o(1)= o(x) (x→∞).

In other words, C4(x) is negligible.

2.3 Medium values of n0(k)

Our aim in this subsection is to show that

S(x) := F(X2) \ F(X1) with X2 := exp

(log x

log2 x

)is negligible. To do this, we define five more negligible sets C5(x), . . . ,C9(x)and show that S(x) is contained in

⋃9i=1 Ci(x). We denote

S∗j(x) := S(x) \j⋃i=1

Ci(x) (1 6 j 6 9).

6

Page 8: Sierpinski and Carmichael numbers

As before, we put

z1 := (log x)10, yl := x1/2−10ε, yu := x1/2+10ε, ε :=1

log2 x.

Note that X2 = xε with this notation.Let N := 2nk + 1 be a Carmichael number with k ∈ S∗4(x) and n 6 X2.

For any prime p dividing N we have p − 1 | N − 1 = 2nk (the well–knownKorselt’s criterion); thus, p = 2md+1 for some m 6 n and some divisor d | k.Note that d 6∈ [yl, yu] since k 6∈ C3(x).

Suppose that d > yu. Writing k = dd1 we see that d1 6 x/d < x/yu = yl.Furthermore, 2n−md1 = (N −1)/(p−1) ≡ 1 (mod p); that is, p | 2n−md1−1.Note that 2n−md1 − 1 = (N − p)/(p − 1) is nonzero since N is Carmichael,hence composite.

Now let P be the set of primes of the form 2md + 1 with m 6 X2 andd ∈ [yu, x], and let P1 be the subset of P consisting of those primes p thatdivide at least one Carmichael number N = 2nk + 1 with k ∈ S∗4(x) andn 6 X2. In view of the above discussion we have∏

p∈P1

p

∣∣∣∣ ∏06`6X2d16yl

(`,d1)6=(0,1)

(2`d1 − 1) 6∏

06`6X2d16yl

eX2 6 exp(2X22yl).

Here, we have used the fact that 2`d1 − 1 6 2X2yl 6 eX2 holds for x > x0.Since p > yu > x1/2 for all p ∈ P, it follows that

|P1| 6log(∏

p∈P1p)

log(x1/2)6

4X22yl

log x=

4x1/2−8ε

log x

for x > x0; in particular, X2|P1| = o(x) as x→∞. Using this inequality for|P1| we also have

X2

∑p∈P1

p−1 6X2|P1|yu

64x−17ε

log x= o(1) (x→∞).

Applying Lemma 1 we see that the set

C5(x) := S∗4(x) ∩ F(P1;X2) = C∗4(x) ∩ F(P1;X2)

is negligible.

7

Page 9: Sierpinski and Carmichael numbers

Similarly, let P2 be the set of primes of the form 2md+ 1 with m > log xand d 6 yl. Clearly, for x > x0 we have the bound

|P2| 6∣∣(m, d) : 1 6 m 6 X2, d 6 yl

∣∣ 6 X2yl = x1/2−9ε. (4)

Therefore, X2|P2| = o(x) as x→∞. Moreover,

X2

∑p∈P2

p−1 6X2|P2|2log x

6 x1/2−ln 2−8ε = o(1) (x→∞).

Applying Lemma 1 we see that the set

C6(x) := S∗5(x) ∩ F(P2;X2) = C∗5(x) ∩ F(P2;X2)

is negligible.We now take a moment to observe that for every k ∈ S∗6(x) one has

n0(k) 6 X3 with X3 := (log x)3.

Indeed, let 2nk+ 1 be a Carmichael number such that n 6 X2. If p | 2nk+ 1,then p = 2md+ 1 with m 6 log x, d 6 yl and d | k. Taking into account thatd 6 yl 6 x1/2 6 2log x− 1 for x > x0, it follows that 2md+ 1 6 22 log x, and so

2n 6 2nk + 1 6∏

m6log xd6yl, d | k

(2md+ 1) 6 22(log x)2τ(k).

Since k 6∈ N1(x) we have

τ(k) 6 2Ω(k) 6 21.01 log2 x 6 (log x)0.8, (5)

and therefore,n 6 2(log x)2.8 6 X3 (x > x0).

Let P3 be the set of primes of the form 2md+ 1 with m >M and d 6 yl,where

M := 10 log2 x.

The estimation in (4) shows that |P3| 6 x1/2−9ε; thus X3|P3| = o(x) asx→∞. Also,

X3

∑p∈P3

p−1 6 X3

( ∑m>M

2−m)(∑

d6yl

d−1

) (log x)4−10 ln 2 = o(1)

8

Page 10: Sierpinski and Carmichael numbers

as x→∞. By Lemma 1 it follows that the set

C7(x) := S∗6(x) ∩ F(P3;X3) = C∗6(x) ∩ F(P3;X3)

is negligible.Next, let Q1 be the collection of almost primes of the form q = p1p2,

where p1 = 2m1d + 1, p2 = 2m2d + 1, m1 < m2 6 M , and d > z1. Here,M := 10 log2 x and z1 := (log x)10 as before. Clearly, the bound

|Q1| 6∣∣(m1,m2, d) : m1,m2 6M, d 6 yl

∣∣ 6M2yl 6 x1/2−9ε

holds if x > x0, and thus X3|Q1| = o(x) as x→∞. Also,

X3

∑q∈Q1

q−1 6 X3

(∑m>1

2−m)2(∑

d>z1

d−2

) X3

z1

= (log x)−7 = o(1)

as x→∞. Applying Lemma 1 again, we see that

C8(x) := S∗7(x) ∩ F(Q1;X3) = C∗7(x) ∩ F(Q1;X3)

is negligible.Similarly, let Q2 be the collection of almost primes of the form q = p1p2,

where p1 = 2m1d1 + 1, p2 = 2m2d2 + 1, m1 < m2 6 M , d1, d2 6 yl, andgcd(d1, d2) is divisible by some prime r > z1. We have

|Q2| 6∣∣(m1,m2, d1, d2) : m1,m2 6M, d1, d2 6 yl

∣∣ 6M2y2l 6 x1−19ε

if x > x0, hence X3|Q2| = o(x) as x→∞. Furthermore,

∑q∈Q2

q−1 6

(∑m>1

2−m)2( ∑

d1=ru6yld2=rv6ylr>z1

(d1d2)−1

)

(∑r>z1

r−2

)(∑u6yl

u−1

)2

(log x)−8,

and therefore

X3

∑q∈Q2

q−1 (log x)−5 = o(1) (x→∞).

9

Page 11: Sierpinski and Carmichael numbers

By Lemma 1 the set

C9(x) := S∗8(x) ∩ F(Q2;X3) = C∗8(x) ∩ F(Q2;X3)

is negligible.To conclude this subsection, we now show that S∗9(x) = ∅; this implies

that S(x) is contained in C1(x) ∪ · · · ∪ C9(x) as claimed.Suppose on the contrary that S∗9(x) 6= ∅. For each k ∈ S∗9(x) there exists

n ∈ (X1, X3] such that 2nk + 1 is Carmichael; let

2nk + 1 =∏j=1

(2mjdj + 1) (6)

be its factorization into (distinct) primes. Grouping the primes on the rightside of (6) according to the size of dj, we set

A :=∏

16j6`dj6z1

(2mjdj + 1) and B :=2nk + 1

A.

For every prime pj := 2mjdj +1 dividing A we have mj < M since k 6∈ C7(x);therefore,

pj 6 2M+1z1 = 210 log2 x+1+(10/ ln 2) log2 x 6 230 log2 x = 23M .

Taking into account the bound (5), we see that

A 6∏d | km<M

23M 6 23M2τ(k) 6 2300(log2 x)2(log x)0.8 6 2(log x)0.9 (x > x0). (7)

On the other hand, every prime pj := 2mjdj + 1 dividing B has dj > z1.Since each mj < M and k 6∈ C8(x), it follows that the divisors dj are differentfor distinct primes pj dividing B. For any such divisor dj, factor dj = d−j d

+j ,

where d−j [resp. d+j ] is the largest divisor of d that is composed solely of primes

6 z1 [resp. > z1]. The numbers d+j are coprime in pairs since k 6∈ C9(x);

consequently, ∏pj |B

d+j 6 k

10

Page 12: Sierpinski and Carmichael numbers

as the product on the left side is a divisor of k. As for the numbers d−j , wenote that

d−j 6 zΩ(z1;k)1 6 (log x)20 log3 x 6 2(log2 x)2 (x > x0),

where we have used the fact that k 6∈ N2(x) for the second inequality. Puttingeverything together, we derive the bound

B 6∏pj |B

2M+1d−j d+j 6 (210 log2 x+1+(log2 x)2)τ(k)

∏pj |B

d+j 6 2(log x)0.9k (8)

for all x > x0. Combining (6), (7) and (8) it follows that

2nk + 1 = AB 6 22(log x)0.9k,

and therefore, n 6 2(log x)0.9. However, since n > X1 = (log x)/ log2 x this isimpossible for large x. The contradiction implies that S∗9(x) = ∅ as claimed.

2.4 Large values of n0(k)

Recall that a number k is said to be powerful if p2 | k for every prime pdividing k. We denote

C10(x) :=k 6 x : k is powerful

.

By the well known bound |C10(x)| x1/2, the set C10(x) is negligible.From now on, fix k ∈ C∗10(x), and let n > X2 := exp((log x)/ log2 x) be

such that 2nk + 1 is a Carmichael number. Also, let p = 2md + 1 be a fixedprime factor of 2nk + 1. For convenience, we denote

N1 :=

⌊√n

log x

⌋and N2 :=

n

N1

.

Since numbers of the form um+vn with (u, v) ∈ [0, N1]2 all lie in the interval[0, 2nN1], and there are (N1+1)2 such pairs (u, v), by the pigeonhole principlethere exist (u1, v1) 6= (u2, v2) such that∣∣(u1m+ v1n)− (u2m+ v2n)

∣∣ 6 2N1n

(N1 + 1)2 − 16

2n

N1

= 2N2.

11

Page 13: Sierpinski and Carmichael numbers

Put u := u1 − u2 and v := v1 − v2. Then

(u, v) 6= (0, 0), max|u|, |v| 6 N1, |um+ vn| 6 2N2. (9)

Replacing u, v with u/d, v/d, where d is either gcd(u, v) or − gcd(u, v), wecan further assume that

gcd(u, v) = 1 and u > 0. (10)

From the congruences

2md ≡ −1 (mod p) and 2nk ≡ −1 (mod p) (11)

we derive that2um+vndukv ≡ (−1)u+v (mod p).

Therefore, p divides the numerator of the rational number

G := 2um+vndukv − (−1)u+v.

We claim that G 6= 0. Indeed, suppose on the contrary that G = 0. Sincek and d are both odd, it follows that um + vn = 0 and dukv = 1. If u = 0or v = 0, the first equation implies that (u, v) = (0, 0), which is not allowed;hence uv 6= 0, and by (10) we have u > 0. Since u and v are coprime, theequality du = k−v implies that k = ku1 for some k1 > 1. As k 6∈ C10(x), itfollows that u = 1. Then, as d | k and d = k−v, we also have v = −1, d = k,and 0 = um+vn = m−n, so m = n. But this shows that 2nk+1 = p, whichis not possible since 2nk + 1 is a Carmichael number. This contradictionestablishes our claim that G 6= 0.

Since p divides the numerator of G, using (9) we derive the bound

p 6 2|um+vn|d|u|k|v| + 1 6 22N2+1x2N1 = 2(2+2/ ln 2)N2+1, (12)

which is used below and in §2.5. We also need the following:

Lemma 2. Let

∆1 :=

√2(log2 x)3/2

(log n)1/4.

For x > x0, the Carmichael number 2nk + 1 has no more than n1/3 primedivisors p = 2md+ 1 with m > ∆1N2.

12

Page 14: Sierpinski and Carmichael numbers

Proof. With the minor modifications outlined here, this result is essentiallycontained in [11, Lemma 7]. The underlying argument is fairly standard (see,for example, [6, 7, 12, 13, 18]), although it relies on a quantitative version ofthe Subspace Theorem due to Evertse [16], a bound of Pontreau [23] on thenumber of solutions to certain S-unit equations, and Baker’s bound on linearforms in logarithms (see [21] or [8, Theorem 5]).

Let p = 2md+ 1 be a prime divisor of 2nk+ 1 with m > ∆1N2. Using theEuclidean algorithm, we write

n = mq + r with 0 6 r < m 6 5N2, (13)

where the last inequality is a consequence of (12). Note that

q 6n

m6

n

∆1N2

= ∆−11 N1. (14)

From (11) we obtain the congruences

2mqdq ≡ (−1)q (mod p) and 2mq+rk ≡ −1 (mod p),

hence p dividesG := dq + (−1)q2rk.

We claim that G 6= 0. Indeed, suppose on the contrary that G = 0. Thenr = 0 (since d is odd), q is odd, and k = dq. As k 6∈ C10(x), q = 1.But this implies that d = k and n = mq + r = m, hence 2nk + 1 = p,which is impossible since 2nk+1 is a Carmichael number. This contradictionestablishes our claim that G 6= 0.

Since p divides G, using (13) and (14) we derive the bound

p 6 |G| 6 2r+1dqk 6 2r+1xq+1 6 2(r+1)+(q+1)(log x)/ ln 2

6 2(5N2+1)+(∆−11 N1+1)(log x)/ ln 2 6 22∆−1

1 N2 (x > x0).(15)

We also have the lower bound

p− 1 = 2md > 2m > 2∆1N2 . (16)

PutU := 2md, V1 := dq and V2 := (−1)q2rk.

13

Page 15: Sierpinski and Carmichael numbers

Then, taking into account the fact that V1 + V2 = G, the inequalities (15)and (16) together imply that

U > |V1 + V2|∆2 with ∆2 := 12∆2

1 =(log2 x)3

(log n)1/2.

Taking into account the bound (5) and the combination of [11, Lemmas 2, 3],for x > x0 we see that all but O(log2 x) of the triples (U, V1, V2) constructedin this manner satisfy the conditions of [11, Lemma 7] if the parameter δ2

in that lemma is replaced by ∆2. Following the proof, we conclude that thebound [11, Equation (47)] on the number t1t2 of such triples (U, V1, V2) canbe replaced by

t1t2 6 2100µ2s (x > x0)

in our situation, where

µ := 2⌊3∆−1

2

⌋+ 1 and s := ω(k) + 2.

As µ 6 7∆−12 and s 6 1.1 log2 x (since k 6∈ N1(x)), we see that

100µ2s 6 5400log n

(log2 x)56

log n

3 ln 2− 1 (x > x0).

Putting everything together, it follows that the Carmichael number 2nk + 1has at most t1t2 +O(log2 x) 6 (1

2+o(1))n1/3 prime divisors p = 2md+1 with

m > ∆1N2. The result follows.

2.5 The final argument

We continue to use notation introduced earlier.Put z2 := blog4 xc, and let C11(x) be the set of numbers k ∈ C∗10(x) such

that q2 | k for some q > z2. For any such q the number of k 6 x cannotexceed x/q2; summing over all q we have

|C11(x)| 6∑q>z2

x

q2 x

z2

x

log4 x= o(x) (x→∞);

thus, C11(x) is a negligible set.Next, let C12(x) be the set of k ∈ C∗11(x) with the property that there is

a prime q such that qz2 | k. For any such q the number of k 6 x does not

14

Page 16: Sierpinski and Carmichael numbers

exceed x/qz2 . Also, since z2 > 2 for x > x0 and k 6∈ C11(x), it follows thatq 6 z2. Consequently,

|C12(x)| 6∑q6z2

x

qz26x · π(z2)

2z26

2x log4 x

(log3 x)ln 2= o(x) (x→∞),

hence, C12(x) is negligible.Finally, we put C13(x) := C∗12(x). To complete the proof of Theorem 1

it is enough to show that C13(x) is negligible. We begin by noting that forevery k 6∈ N1(x) the bound

n 6 K1 := exp((log x)4)

holds whenever 2nk+1 is Carmichael; in fact, it is an easy consequence of (2)since τ(k) 6 (log x)0.8 (by (5)) and ω(k) 6 Ω(k) 6 1.01 log2 x.

In particular, for every k ∈ C13(x) there exists n ∈ [X2, K1] such that2nk + 1 is a Carmichael number. The interval [X2, K1] can be covered withat most O(logK1) = O((log x)4) intervals of the form [a, 2a). Thus, if wedenote by C13(a;x) the set of k ∈ C13(x) such that 2nk + 1 is a Carmichaelnumber for some n ∈ [a, 2a), we have

|C13(x)| (log x)4 maxX26a6K1

|C13(a;x)|,

hence it suffices to show that

maxX26a6K1

|C13(a;x)| x

(log x)5. (17)

From now on, we work to prove (17).Now, fix a ∈ [X2, K1] and k ∈ C13(a;x), and let n ∈ [a, 2a) be such

that N := 2nk + 1 is Carmichael. Let P denote the set of prime divisorsp = 2md+ 1 of N with m > ∆1N2. Put

A :=∏

p | 2nk+1p∈P

p and B :=2nk + 1

A.

Since every prime p | N satisfies (12), and |P| 6 n1/3 by Lemma 2, we have

A 6 (25N2)n1/3

= 25n5/6(log x)1/2 6 210a5/6(log x)1/2 (x > x0). (18)

Put s := blog2 xc and z3 := (log x)0.9. We split the prime factors of Binto three sets according to the following types:

15

Page 17: Sierpinski and Carmichael numbers

(i) Primes p = 2md+ 1 of type I are those for which either m 6 a1/3, or pdivides 2njkj + 1 for j = 1, . . . , s, where k1, . . . , ks are distinct numbersin C13(a;x) and n1, . . . , ns ∈ [a, 2a);

(ii) Primes p = 2md+ 1 of type II have the property that 2td+ 1 is a primefactor of B for at most 100 values of t in the interval [m,m+ z3];

(iii) Primes p of type III are prime factors of B that are neither of type Inor of type II.

Factor B = BIBIIBIII , where

BI :=∏p |B

p of type I

p, BII :=∏p |B

p of type II

p and BIII :=∏p |B

p of type III

p.

Our approach is to show that primes of type I are small, whereas primes oftype II are few in number. As for primes of type III, there may be manyfor a given k; however, we show that there are only a few such primes onaverage, and this is sufficient to finish the proof.

Case 1. Primes of type I.

Let p := 2md + 1 be a prime of type I. Since d 6 x for all p | B, in thecase that m 6 a1/3 it is easy to see that

m 6M3 := 10a1/3 log x and p 6 2M3 (x > x0). (19)

Our goal is to show that (19) holds for every type I prime. Assuming thisresult for the moment and using (5), we derive the bound

BI 6∏m6M3d | k

2M3 6 2M23 τ(k) 6 2a

2/3(log x)3 (x > x0). (20)

Now suppose that p := 2md + 1 is of type I with m > a1/3, and letk1, . . . , ks and n1, . . . , ns have the properties described in (i). We claim thatthere are two numbers kj, say k1 and k2, for which there exists a prime qdividing k2 but not k1; in particular, since d divides each kj, q does not divided. Indeed, suppose on the contrary that every kj is divisible by the primesq1 . . . , qt, which we order by

q1 < · · · < qr 6 z2 < qr+1 < · · · < qt

16

Page 18: Sierpinski and Carmichael numbers

with 0 6 r 6 t. Since kj 6∈ C11(x) ∪ C12(x) for each j, it follows that

kj = qr+1 · · · qtr∏i=1

qαi,ji with 1 6 αi,j 6 z2 (1 6 i 6 r, 1 6 j 6 s).

As s cannot exceed the number of all such factorizations, we have (using thebound π(u) 6 2u/ log u for all large u)

blog2 xc = s 6 zr2 6 zπ(z2)2 6 exp(2z2) 6 (log3 x)2,

which is impossible for x > x0. This contradiction proves the claim.Next, we apply a three-dimensional analogue of the argument used in §2.4

to derive the inequality (12).Put N3 := d(2a)1/3e. Since maxm,n1, n2 6 2a = N3

3 , all numbersof the form um + vn1 + wn2 with (u, v, w) ∈ [0, N3]3 lie in the interval[0, 3N4

3 ]; as there are (N3 + 1)3 such triplets (u, v, w), it follows that thereexist (u1, v1, w1) 6= (u2, v2, w2) for which∣∣(u1m+ v1n1 + w1n1)− (u2m+ v2n1 + w2n2)

∣∣ 6 3N43

(N3 + 1)3 − 16 3N3.

Put (u, v, w) := (u1 − u2, v1 − v2, w1 − w2) 6= (0, 0, 0), and note that

max|u|, |v|, |w| 6 N3, |um+ vn1 + wn2| 6 3N3. (21)

In view of the congruences

2md ≡ −1 (mod p) and 2njkj ≡ −1 (mod p) (j = 1, 2),

we have2um+vn1+wn2dukv1k

w2 ≡ (−1)u+v+w (mod p).

Therefore, p divides the numerator of the rational number

G := 2um+vn1+wn2dukv1kw2 − (−1)u+v+w.

We claim that G 6= 0. Indeed, suppose on the contrary that G = 0. Sincedk1k2 is odd, it follows that um + vn1 + wn2 = 0, u + v + w is even, anddukv1k

w2 = 1. Since there is a prime q that divides k2 but neither k1 nor d, it

follows that w = 0, and therefore

2um+vn1dukv1 = (−1)u+v.

17

Page 19: Sierpinski and Carmichael numbers

However, by the arguments of §2.4 we see this relation is not possible unless(u, v) = (0, 0); but this leads to (u, v, w) = (0, 0, 0), which is not allowed. Weconclude that G 6= 0.

Since p divides the numerator of G, using (21) we derive the bound

p 6 2|um+vn1+wn2|d|u|k|v|1 k|w|2 + 1 6 23N3+1x3N3 6 2M3 (x > x0).

Since p > 2m, this establishes the promised result that (19) holds for everytype I prime.

Case 2. Primes of type II.

We first observe that every prime factor p = 2md+ 1 of B satisfies

m 6 ∆1N2 62a1/2(log x)1/2(log2 x)3/2

(log n)1/26M4 := 2a1/2(log2 x)2, (22)

where we have used the fact that

log n > logX2 =log x

log2 x.

Let d be fixed and split the interval [0,M4] into subintervals Ij of length z3,where Ij := [jz3, (j + 1)z3) for j = 0, . . . , bM4/z3c. Every such Ij containsat most 100 indices m for which p = 2md + 1 is a type II prime factor of2nk + 1; these primes clearly satisfy

p = 2md+ 1 6 22M4 (x > x0).

Thus, for fixed d we have∏p |BII

p=2md+1

p 6 (22M4)100(M4/z3+1) 6 2300M24 /z3 (x > x0).

Then, taking the product over all divisors d of k, we derive that

BII 6 2300M24 τ(k)/z3 (x > x0).

Finally, using (5) and the definitions of M4 and z3, for all x > x0 we have

300M24 τ(k)

z3

61200a(log2 x)4(log x)0.8

(log x)0.96

a

(log x)0.09(x > x0)

18

Page 20: Sierpinski and Carmichael numbers

hence we obtain the bound

BII 6 2a/(log x)0.09 (x > x0). (23)

Case 3. Primes of type III.

Combining the bounds (18), (20) and (23), we have

ABIBII 6 210a5/6(log x)1/2+a2/3(log x)3+a/(log x)0.09 6 2a/2 (x > x0);

therefore, since2a 6 2nk + 1 = AB = ABIBIIBIII ,

it follows thatBIII > 2a/2 (x > x0). (24)

We now adopt the convention that for every k ∈ C13(a;x), the number n ischosen to be the least integer in [a, 2a) such that 2nk + 1 is a Carmichaelnumber. With this convention in mind, we use the notation BIII(k) insteadof BIII to emphasize that this number depends only on k.

Multiplying the bounds (24) over all k ∈ C13(a;x), we get

2(a/2)|C13(a;x)| 6∏

k∈C13(a;x)

BIII(k) 6

( ∏p∈Ba

p

)s, (25)

where we have used Ba to denote the collection of type III primes that dividesome BIII(k) with k ∈ C13(a;x). Note that every prime in Ba is repeated nomore than s times since p is not of type I.

Let p = 2md + 1 ∈ Ba. Since d 6 x and m > a1/3 > X1/32 > 2 log x for

all x > x0, it follows that p 6 22m. Thus, fixing m and denoting by Da,m theset of numbers d for which 2md+ 1 ∈ Ba, it follows that∏

d∈Da,m

(2md+ 1) 6 22m|Da,m| 6 22M4|Da,m|,

where we used (22) for the second inequality. Taking the product over allvalues of m 6M4, we have for x > x0:∏

p∈Ba

p 6 22M24Da with Da := max

m6M4

|Da,m|. (26)

19

Page 21: Sierpinski and Carmichael numbers

Hence, to get an upper bound for the product in (26), it suffices to find auniform upper bound for Da.

Observe that, as the primes in Ba are not of type II, every d ∈ Da,m hasthe property that 2td+ 1 is prime for at least 100 values of t in the interval[m,m + z3]. Let m be fixed, and let λ1 < · · · < λ100 be fixed integers in theinterval [0, z3]. We begin by counting the number of d 6 x for which the 100numbers

2m+λjd+ 1 : 1 6 j 6 100

are simultaneously prime. By the Brun

sieve, the number of such d 6 x is

O

(x

(log x)100

(E

ϕ(E)

)100), where E :=

∏i<j

(2λj−λi − 1).

SinceE 6 21002z3 6 2104 log x = x104 ln 2,

using the well known bound u/ϕ(u) log2 u we have

E

ϕ(E) log2E log2 x.

Hence, for fixed λ1 < · · · < λ100 the number of possibilities for d is

O

(x(log2 x)100

(log x)100

).

As the number of choices for λ1, . . . , λ100 in [0, z3] is 6 (z3 +1)100 (log x)90,it follows that

|Da,m| x(log2 x)100

(log x)10.

Consequently,

Da := maxm6M4

|Da,m| 6x

(log x)9(x > x0),

and we have

2M24Da 6

8ax(log2 x)4

(log x)96

ax

(log x)8(x > x0). (27)

Inserting estimate (27) into (26), and combining this with (25), we see that

2(a/2)|C13(a;x)| 6 2axs/(log x)8 ,

20

Page 22: Sierpinski and Carmichael numbers

and therefore

|C13(a;x)| 6 2xs

(log x)86

2x log2 x

(log x)8(x > x0).

Since this bound clearly implies (17), our proof of Theorem 1 is complete.

3 Proof of Theorem 2

The following statement provides the key to the proof of Theorem 2.

Theorem 4 (Matomaki). If gcd(b,m) = 1 and b is a quadratic residuemod m, then for all large x there are m x1/5 Carmichael numbers up to xin the arithmetic progression b mod m.

In the recent preprint [29], Wright extends the previous theorem to removethe condition on b being a quadratic residue modulo m. Precisely, he showed(under gcd(b,m) = 1) that the number of Carmichael numbers up to x that

are congruent to b mod m is xK

(log3 x)2 , for some constant K > 0. Using

this result would allow a somewhat easier approach to the problem, but weprefer to use Matomaki’s Theorem 4, since it gives a better lower bound forthe count.

The next proposition illustrates our approach to the proof of Theorem 2.

Proposition 1. For all large x, there are x1/5 natural numbers up to xthat are both Sierpinski and Carmichael.

Proof. In view of Theorem 4, to prove this result it suffices to find coprimeb,m such that b is a quadratic residue mod m, and every sufficiently largenumber in the arithmetic progression b mod m is a Sierpinski number.

Suppose that we can find a finite collection C := (aj, nj; bj, pj)Nj=1 ofordered quadruples of integers with the following properties:

(i) n1, . . . , nN are natural numbers, and p1, . . . , pN are distinct primes;

(ii) every integer lies in at least one of the arithmetic progressions aj mod nj;

(iii) pj | 2nj − 1 for each j;

(iv) pj | 2ajbj + 1 for each j;

21

Page 23: Sierpinski and Carmichael numbers

(v) bj is a quadratic residue mod pj for each j.

Put m := p1 · · · pN , and let b ∈ Z be such that b ≡ bj (mod pj) for each j.Since p1, . . . , pN are distinct primes, is clear from (v) that b is a quadraticresidue mod m. Let k be an arbitrary element of the arithmetic progressionb mod m that exceeds maxp1, . . . , pN. For every n ∈ Z there exists jsuch that n ≡ aj (mod nj). For such j, using (iii) and (iv) one sees thatpj | 2nk + 1, hence 2nk + 1 is composite since k > pj. As this is so for everyn ∈ Z, it follows that k is Sierpinski.

To complete the proof of the theorem it suffices to observe that

C := (1, 2; 1, 3), (2, 4; 1, 5), (4, 8; 1, 17), (8, 16; 1, 257),

(16, 32; 1, 65537), (32, 64; 1, 641), (0, 64;−1, 6700417)(28)

is a collection with the properties (i)− (v).

Proof of Theorem 2. In view of Theorem 4, it suffices to find coprime b,msuch that b is a quadratic residue mod m, and every sufficiently large numberin the arithmetic progression b mod m is both Sierpinski and Riesel.

Suppose that we can find two finite collections C := (aj, nj; bj, pj)Nj=1

and C ′ := (cj,mj; dj, qj)Mj=1 such that C has the properties (i)–(v) listed inProposition 1, and C ′ has the properties:

(vi) m1, . . . ,mN are natural numbers, and q1, . . . , qN are distinct primes;

(vii) the union of the arithmetic progressions cj mod mj is Z;

(viii) qj | 2mj − 1 for each j;

(ix) qj | 2cjdj − 1 for each j;

(x) dj is a quadratic residue mod qj for each j.

Furthermore, assume that

(xi) gcd(p1 · · · pN , q1 · · · qM) = 1.

Put m := p1 · · · pNq1 · · · qM , and let b ∈ Z be such that b ≡ bi (mod pi) fori = 1, . . . , N and b ≡ dj (mod qj) for j = 1, . . . ,M . Since all the primes piand qj are distinct, is clear from (v) that b is a quadratic residue mod m.Arguing as in the proof of Proposition 1 we see that every sufficiently large

22

Page 24: Sierpinski and Carmichael numbers

number in the arithmetic progression b mod m is both Sierpinski (using (iii)and (iv)) and Riesel (using (viii) and (ix)).

Hence, to prove the theorem it suffices to exhibit collections C and C ′ withthe stated properties. For this, we take C to be the collection listed in (28),whereas for C ′ we use the collection disclosed in the Appendix.

4 Proof of Theorem 3

Let us now suppose that N := 2nk + 1 is Lehmer. We can clearly assumethat n > 150 log k, and by Wright [28] we must have k > 3; therefore,

1 6 ω(k) 6log k

log 3<

n

150. (29)

Since every Lehmer number is Carmichael, we can apply the following lemma,which is a combination of [11, Lemmas 2, 3, 4].

Lemma 3. Suppose that p = 2md + 1 is a prime divisor of the Carmichaelnumber N = 2nk + 1, where d | k and n > 3 log k.

(i) If d = 1, then m = 2α for some integer α > 0, and p < k2;

(ii) if d > 1 and the numbers 2md and 2nk are multiplicatively dependent,then p < 2n/3k1/3 + 1;

(iii) if d > 1 and the numbers 2md and 2nk are multiplicatively independent,then m < 7

√n log k.

Moreover, N has at most one prime divisor for which (ii) holds.

Let A1, A2, A3 respectively denote the product of the primes p | N foreach possibility (i), (ii), (iii) in Lemma 3. If A1 > 1 and p = 22α + 1 is thelargest prime dividing A1, then we have

A1 6α∏j=0

(22j + 1) = 22α+1 − 1 = (p− 1)2 − 1 6 p2 6 k4, (30)

and clearly Lemma 3 implies that

A2 6 2n/3k1/3 + 1 6 2n/3+1k1/3. (31)

23

Page 25: Sierpinski and Carmichael numbers

Furthermore, if the prime divisors of A3 are pj := 2mjdj + 1, j = 1, . . . , r,then

d1 · · · dr | ϕ(A3) | ϕ(N) | N − 1 = 2nk,

so we see that d1 · · · dr | k and r 6 ω(k). Consequently,

A3 =r∏j=1

(2mjdj + 1) 6r∏j=1

2mj+1dj 6 2(7√n log k+1)ω(k)k. (32)

Combining (30), (31) and (32), it follows that

2nk 6 N = A1A2A3 6 2n/3+1+(7√n log k+1)ω(k)k16/3.

Taking the logarithm and using the inequalities of (29) we derive that

n 6n

3+ 1 +

(7√n log k + 1

)ω(k) +

13 log k

3 ln 2

6n

3+(7√n log k

)ω(k) +

19n

450 ln 2,

and it follows that

n 6 49

(2

3− 19

450 ln 2

)−2

ω(k)2 log k 6 150ω(k)2 log k

as stated.

5 Appendix A

The collection C ′ that is needed for our proof of Theorem 2 (see §3) consistsof the quadruples (cj,mj; dj, qj) disclosed in the following tables.

24

Page 26: Sierpinski and Carmichael numbers

cj mj dj qj

0 2 1 31 3 4 72 5 8 316 7 2 1270 9 1 730 15 1 15114 21 128 33723 25 4 6013 25 1576 180121 27 64 26265711 35 58 7131 35 16 12292124 45 22473 2331135 45 393 631

cj mj dj qj

23 63 55318 927372 63 487243 6496571 70 a1 p138 75 15604 10080163 75 4096 105672013 81 2269 259330 81 69097 7111947 81 84847359 976858395 90 4120594 1883700189 105 7154 2919159 105 48124 10668126 105 48168 152041a1 := 290641821624556480; p1 := 581283643249112959

cj mj dj qj

38 135 43817595232267 4997161783080139 135 41 27166 135 41811 34803151 150 1133819953185 113383673040129 162 134527 135433137 162 33554432 272010961158 175 12419 395518 175 30170438 6081600133 175 a2 p2155 189 1072100 156000792 189 a3 p351 210 247125 664441179 210 412036 1564921a2 := 311219987433457559260630

p2 := 535347624791488552837151

a3 := 44183558259521350402959571

p3 := 207617485544258392970753527

25

Page 27: Sierpinski and Carmichael numbers

cj mj dj qj

93 225 68316 115201168 225 111534 617401183 225 196089342 1348206751141 225 5524543637190621 1386136982629935165 270 14107 15121134 315 465324 87003144 315 944338 983431296 315 524288 29728307155963706810228435378401245 405 421858 537841155 405 794228530486264 11096527935003481219 405 a4 p433 450 4714696801 4714696801143 450 a5 p5231 525 2325 4201458 525 3644 7351336 525 108146490 18116595121 525 a6 p6138 567 a7 p7518 675 a8 p868 675 a9 p9a4 := 5374027197450830037173993714239791208197682

p4 := 17645665556213400107370602081155737281406841

a5 := 277105769675251661059822497

p5 := 281941472953710177758647201

a6 := 130389571378501740404359908566659664918592879449898771616

p6 := 325985508875527587669607097222667557116221139090131514801

a7 := 34175792320105064276509598883086470918869640752174548399861885128941214865520182674355385966526465

p7 := 34175792320105064276509600649933535697253970335472049142780400956425111741139140798213387072831489

a8 := 1086551216887830778103354063694

p8 := 1094270085398478390395590841401

a9 := 375881803356253828783891377794842091038

p9 := 470390038503476855180627941942761032401

26

Page 28: Sierpinski and Carmichael numbers

cj mj dj qj

668 675 128 284249626318864764008979456176055168 675 378466 1605151293 675 31900530 28951183983 810 2980 9721141 810 1619 6481425 810 1113369644664597 196954328113704129 945 a10 p1096 945 a11 p1196 1575 79759849 82013401

1356 1575 21286182334 32758188751344 1575 27829883893510195 76641458269269601233 1575 a12 p12411 1575 a13 p131806 2025 29194 810011191 2025 375769199 4290043511131 2025 a14 p14a10 := 50835936807709736817104784421509870

p10 := 124339521078546949914304521499392241

a11 := 59062237672015342892330136827234845353476843214908095835470998053274553710744754308864210671730

p11 := 89371283318924988713544642472309024678004403189516730060412595564942724011446583991926781827601

a12 := 499918989349861832576268113521739

p12 := 764384916291005220555242939647951

a13 := 415411639487789290827522873736236492723576906851307827673621379441482

p13 := 745832506848141808511611576240568244832258614550704416204357517716551

a14 := 462022372600473167169237015384303310307

p14 := 2029839982282855554442383177052070534551.

6 Appendix B

We conclude with examples of Sierpinski-Carmichael, Riesel-Carmichael, andSierpinski-Riesel-Carmichael numbers. The idea behind the construction isthe same for each of the three examples. We construct a Carmichael numberof the form N = f(t) = (2t+1)(4t+1)(6t+1), where each of the factors 2t+1,4t+ 1 and 6t+ 1 is prime. We can then check that N is Carmichael since 2t,4t and 6t are easily seen to be factors of N−1. What remains is to constructthe coverings necessary to produce Sierpinski or Riesel numbers (or both):we have called the elements in these coverings (cj,mj; dj, qj) throughout thisarticle. The final step is to solve the congruence f(tj) ≡ dj (mod qj). Thus,we have an additional column for tj in the tables presented below.

27

Page 29: Sierpinski and Carmichael numbers

Sierpinski-Carmichael numberLet f(t) = (6t+ 1)(12t+ 1)(18t+ 1).

cj mj dj qj tj

1 2 1 3 02 4 1 5 04 8 1 17 08 16 1 257 016 32 1 65537 00 48 96 97 7616 24 226 241 4232 96 655316 2225377 9066929

Now observe that (cj,mj) forms a covering, t = 1034170868575402949878725satisfies all the congruences tj (mod qj), and that f(t) ≡ dj (mod qj) foreach j. Thus, for this value of t, f(t) is Sierpinski. To see thatf(t) = 1433447863276475102293771681784302201846076475365432242305613689102632631601

is also Carmichael, notice that 6t + 1 = 6205025211452417699272351, 12t +1 = 12410050422904835398544701, and 18t+1 = 18615075634357253097817051are all prime, and f(t)− 1 is divisible by 6t, 12t, and 18t.

Riesel-Carmichael numberLet f(t) = (2t+ 1)(4t+ 1)(6t+ 1).

cj mj dj qj tj

0 2 1 3 00 3 1 7 04 9 32 73 15 12 11 13 57 8 2 17 1111 18 14 19 1125 36 13 37 2211 48 53 97 441 36 55 109 2819 24 32 241 733 16 225 257 19637 48 29 673 210

Again, the congruences cj (mod mj) form a covering. Moreover, ob-serve that t = 383045479078858981706118 satisfies all the congruences tj(mod qj), and that f(t) ≡ dj (mod qj) for each j. Thus, for this value of t,f(t) is Riesel. To see that

28

Page 30: Sierpinski and Carmichael numbers

f(t) = 2697691354484186943747008650234933049993410660498697822360729113096591609

is also Carmichael, notice that 2t+1 = 766090958157717963412237, 4t+1 =1532181916315435926824473, and 6t+ 1 = 2298272874473153890236709 areall prime, and f(t)− 1 is divisible by 2t, 4t, and 6t.

Sierpinski-Riesel-Carmichael numberLet f(t) = (2t+ 1)(4t+ 1)(6t+ 1).

cj mj dj qj tj

1 2 1 3 00 4 4 5 36 12 1 13 04 9 41 73 810 18 10 19 12 24 60 241 9114 36 16 37 1434 36 105 109 138 72 325 433 9162 72 37713 38737 1256

0 2 1 3 00 3 1 7 00 5 1 31 05 8 8 17 101 10 6 11 12 15 38 151 3211 16 32 257 1413 20 36 41 267 30 75 331 1963 32 57345 65537 516299 40 59633 61681 593937 48 72 97 5419 48 641 673 22459 60 2 61 2613 60 1028 1321 12979 80 2 4278255361 1351662299113 120 128 4562284561 3018421270

In the table above, the congruence cj (mod mj) in the top part of thetable form a covering, and the congruences in the bottom part of the tableform a separate covering. The integer

t = 1338979105545414811992186692235778298273840303222085925082378476296462844923

29

Page 31: Sierpinski and Carmichael numbers

satisfies all of the congruences tj (mod qj) in the entire table. Thus, f(t) ≡ dj(mod qj) for both the top and bottom parts of the table. This implies thatf(t) is both Sierpinski (from the top part) and Riesel (from the bottom part).Finally,

f(t) = 115229224052855887100756588659264307276443422419402462627311319917631839876768−

543292399537807831615677851203822707234896300064793740772960178584232868017442980971−

810181759397938835296681335113793727167516391877007957575147486369

is Carmichael, since the factors2t+ 1 = 2677958211090829623984373384471556596547680606444171850164756952592925689847,

4t+1 = 5355916422181659247968746768943113193095361212888343700329513905185851379693, and6t+ 1 = 8033874633272488871953120153414669789643041819332515550494270857778777069539

are all prime, and f(t)− 1 is divisible by 2t, 4t, and 6t.

References

[1] W. Alford, A. Granville, and C. Pomerance, ‘There are infinitely manyCarmichael numbers,’ Ann. of Math. (2) 139 (1994), no. 3, 703–722.

[2] W. Banks, ‘Carmichael numbers with a square totient,’ Canad. Math.Bull. 52 (2009), no. 1, 3–8.

[3] W. Banks, ‘Carmichael numbers with a totient of the form a2 + nb2,’Monatsh. Math. 167 (2012), no. 2, 157–163.

[4] W. Banks, W. Nevans and C. Pomerance, ‘A remark on Giuga’s con-jecture and Lehmer’s totient problem,’ Albanian J. Math. 3 (2009),no. 2, 81–85.

[5] W. Banks and C. Pomerance, ‘On Carmichael numbers in arithmeticprogressions,’ J. Aust. Math. Soc. 88 (2010), no. 3, 313–321.

[6] Y. Bugeaud, P. Corvaja and U. Zannier, ‘An upper bound for theg.c.d. of an − 1 and bn − 1,’ Math. Z. 243 (2003), 79–84.

[7] Y. Bugeaud and F. Luca, ‘A quantitative lower bound for the greatestprime factor of (ab+ 1)(ac+ 1)(bc+ 1),’ Acta Arith. 114 (2004), 275–294.

30

Page 32: Sierpinski and Carmichael numbers

[8] Y. Bugeaud, M. Mignotte and S. Siksek, ‘Classical and modular ap-proaches to exponential Diophantine equations. I. Fibonacci and Lu-cas perfect powers,’ Ann. of Math. (2) 163 (2006), no. 3, 969–1018.

[9] R. D. Carmichael, ‘Note on a new number theory function,’ Bull.Amer. Math. Soc. 16 (1910), 232–238.

[10] R. D. Carmichael, ‘On composite numbers P which satisfy the Fermatcongruence aP−1 ≡ 1 mod P ,’ Amer. Math. Monthly 19 (1912), no. 2,22–27.

[11] J. Cilleruelo, F. Luca and A. Pizarro-Madariaga, ‘Carmichael numbersin the sequence 2nk + 1n>1,’ preprint, 2012.

[12] P. Corvaja and U. Zannier, ‘On the greatest prime factor of (ab +1)(ac+ 1),’ Proc. Amer. Math. Soc. 131 (2003), 1705–1709.

[13] P. Corvaja and U. Zannier, ‘A lower bound for the height of a rationalfunction at S-units,’ Monatsh. Math. 144 (2005), 203–224.

[14] A. Ekstrom, C. Pomerance and D. S. Thakur, ‘Infinitude of ellipticCarmichael numbers,’ J. Austr. Math. Soc. 92 (2012), no. 1, 45–60.

[15] P. Erdos and A. M. Odlyzko, ‘On the density of odd integers of theform (p− 1)2−n and related questions,’ J. Number Theory 11 (1979),no. 2, 257–263.

[16] J.–H. Evertse, ‘An improvement of the Quantitative Subspace Theo-rem,’ Compositio Math. 101 (1996), 225–311.

[17] K. Ford, ‘The distribution of integers with a divisor in a given interval,’Ann. of Math. (2) 168 (2008), no. 2, 367–433.

[18] S. Hernandez and F. Luca, ‘On the largest prime factor of (ab+1)(ac+1)(bc+ 1),’ Bol. Soc. Mat. Mexicana 9 (2003), 235–244.

[19] D. H. Lehmer, ‘On Euler’s totient function,’ Bull. Amer. Math. Soc.38 (1932), 745–757.

[20] K. Matomaki, ‘Carmichael numbers in arithmetic progressions’, J.Aust. Math. Soc., to appear.

31

Page 33: Sierpinski and Carmichael numbers

[21] E. M. Matveev, ‘An explicit lower bound for a homogeneous rationallinear form in logarithms of algebraic numbers. II,’ Izv. Ross. Akad.Nauk Ser. Mat. 64 (2000), 125–180; English transl. in Izv. Math. 64(2000), 1217–1269.

[22] C. Pomerance, ‘On the distribution of pseudoprimes,’ Math. Comp.37 (1981), 587–593.

[23] C. Pontreau, ‘A Mordell-Lang plus Bogomolov type result for curvesin G2

m,’ Monatsh. Math. 157 (2009), 267–281.

[24] H. Riesel, ‘Nagra stora primtal,’ Elementa 39 (1956), 258–260.

[25] W. Sierpinski, ‘Sur un probleme concernant les nombres k 2n + 1,’Elem. Math. 15 (1960), 73–74; Corrig. 17 (1962), 85.

[26] G. Tenenbaum, ‘Sur la probabilite qu’un entier possede un diviseurdans un intervalle donne,’ Compositio Math. 51 (1984), 243–263.

[27] P. Turan, ‘On a theorem of Hardy and Ramanujan’, J. London Math.Soc. 9 (1934), 274–276.

[28] T. Wright, ‘On the impossibility of certain types of Carmichael num-bers,’ Integers 12 (2012), A31, 1–13.

[29] T. Wright, ‘Infinitely many Carmichael numbers in arithmetic pro-gressions,’ Bull. London Math. Soc., to appear.

32