Carmichael Number

DOWNLOAD Mathematica Notebook

A Carmichael number is an odd composite number n which satisfies Fermat's little theorem

 a^(n-1)-1=0 (mod n)
(1)

for every choice of a satisfying (a,n)=1 (i.e., a and n are relatively prime) with 1<a<n. A Carmichael number is therefore a pseudoprime to any base. Carmichael numbers therefore cannot be found to be composite using Fermat's little theorem. However, if (a,n)!=1, the congruence of Fermat's little theorem is nonzero, thus identifying a Carmichael number n as composite.

Carmichael numbers are sometimes called "absolute pseudoprimes" and also satisfy Korselt's criterion. R. D. Carmichael first noted the existence of such numbers in 1910, computed 15 examples, and conjectured that there were infinitely many. In 1956, Erdős sketched a technique for constructing large Carmichael numbers (Hoffman 1998, p. 183), and a proof was given by Alford et al. (1994).

Any solution to Lehmer's totient problem must be a Carmichael number.

The first few Carmichael numbers are 561, 1105, 1729, 2465, 2821, 6601, 8911, 10585, 15841, 29341, ... (OEIS A002997). The number of Carmichael numbers less than 10^2, 10^3, ... are 0, 1, 7, 16, 43, 105, ... (OEIS A055553; Pinch 1993). The smallest Carmichael numbers having 3, 4, ... factors are 561=3×11×17, 41041=7×11×13×41, 825265, 321197185, ... (OEIS A006931).

Carmichael numbers have at least three prime factors. For Carmichael numbers with exactly three prime factors, once one of the primes has been specified, there are only a finite number of Carmichael numbers which can be constructed. Indeed, for Carmichael numbers with k prime factors, there are only a finite number with the least k-2 specified.

Numbers of the form (6k+1)(12k+1)(18k+1) are Carmichael numbers if each of the factors is prime (Korselt 1899, Ore 1988, Guy 1994). This can be seen since for

 N=(6k+1)(12k+1)(18k+1)=1296k^3+396k^2+36k+1,
(2)

N-1 is a multiple of 36k and the least common multiple of 6k, 12k, and 18k is 36k, so a^(N-1)=1 modulo each of the primes 6k+1, 12k+1, and 18k+1, hence a^(N-1)=1 modulo their product. The first few such Carmichael numbers correspond to k=1, 6, 35, 45, 51, 55, 56, ... (OEIS A046025) and are 1729, 294409, 56052361, 118901521, ... (OEIS A033502).

Let C(n) denote the number of Carmichael numbers less than n. Then, for all sufficiently large n,

 C(n)>n^(2/7)
(3)

(Alford et al. 1994), which proves that there are infinitely many Carmichael numbers. The upper bound

 C(n)<nexp(-(lnnlnlnlnn)/(lnlnn))
(4)

has also been proved (R. G. E. Pinch).

The Carmichael numbers have the following properties:

1. If a prime p divides the Carmichael number n, then n=1 (mod p-1) implies that n=p (mod p(p-1)).

2. Every Carmichael number is squarefree.

3. An odd composite squarefree number n is a Carmichael number iff n divides the denominator of the Bernoulli number B_(n-1).

The largest known Carmichael numbers having a given number of factors are summarized in the following table (updated from Dubner 1989, 1998).

factorsdigitsdiscoverer
360351Broadhurst (2002)
429094Broadhurst 2003 (Broadhurst 2015b)
51015Caldwell and Dubner
619140Broadhurst 2003 (Broadhurst 2015a)

Wolfram Web Resources

Mathematica »

The #1 tool for creating Demonstrations and anything technical.

Wolfram|Alpha »

Explore anything with the first computational knowledge engine.

Wolfram Demonstrations Project »

Explore thousands of free applications across science, mathematics, engineering, technology, business, art, finance, social sciences, and more.

Computerbasedmath.org »

Join the initiative for modernizing math education.

Online Integral Calculator »

Solve integrals with Wolfram|Alpha.

Step-by-step Solutions »

Walk through homework problems step-by-step from beginning to end. Hints help you try the next step on your own.

Wolfram Problem Generator »

Unlimited random practice problems and answers with built-in Step-by-step solutions. Practice online or make a printable study sheet.

Wolfram Education Portal »

Collection of teaching and learning tools built by Wolfram education experts: dynamic textbook, lesson plans, widgets, interactive Demonstrations, and more.

Wolfram Language »

Knowledge-based programming for everyone.