Lably
Skip to content

Carmichael number

Composite number in number theory

  • 8 min read
  • 8 chapters

Related on Lably

Through Composite number, Modular arithmetic and Congruence relation

bn≡b(modn)

for all integers ⁠b⁠. The relation may also be expressed in the form:

bn−1≡1(modn)

for all integers b that are relatively prime to ⁠n⁠. They are infinite in number.

They constitute the comparatively rare instances where the strict converse of Fermat's Little Theorem does not hold. This fact precludes the use of that theorem as an absolute test of primality.

The Carmichael numbers form the subset K1 of the Knödel numbers.

The Carmichael numbers were named after the American mathematician Robert Carmichael by Nicolaas Beeger, in 1950. Øystein Ore had referred to them in 1948 as numbers with the "Fermat property", or "F numbers" for short.

Overview

Fermat's little theorem states that if p is a prime number, then for any integer ⁠b⁠, the number bp−b is an integer multiple of ⁠p⁠. Carmichael numbers are composite numbers which have the same property. Carmichael numbers are also called Fermat pseudoprimes or absolute Fermat pseudoprimes. A Carmichael number will pass a Fermat primality test to every base b relatively prime to the number, even though it is not actually prime. This makes tests based on Fermat's Little Theorem less effective than strong probable prime tests such as the Baillie–PSW primality test and the Miller–Rabin primality test.

However, no Carmichael number is either an Euler–Jacobi pseudoprime or a strong pseudoprime to every base relatively prime to it so, in theory, either an Euler or a strong probable prime test could prove that a Carmichael number is, in fact, composite.

Arnault gives a 397-digit Carmichael number N that is a strong pseudoprime to all prime bases less than 307:

N=p⋅(313(p−1)+1)⋅(353(p−1)+1)

where

p= 2​‍9674495668​‍6855105501​‍5417464290​‍5332730771​‍9917998530​‍4335099507​‍5531276838​‍7531717701​‍9959423859​‍6428121188‍0336647542​‍1834556249​‍3168782883

is a 131-digit prime. p is the smallest prime factor of ⁠N⁠, so this Carmichael number is also a (not necessarily strong) pseudoprime to all bases less than ⁠p⁠.

As numbers become larger, Carmichael numbers become increasingly rare. For example, there are 20138200 Carmichael numbers between 1 and 1021 (approximately one in 50 trillion (5×1013) numbers).

Korselt's criterion

An alternative and equivalent definition of Carmichael numbers is given by Korselt's criterion.

Theorem (A. Korselt 1899): A positive composite integer n is a Carmichael number if and only if n is square-free, and for all prime divisors p of ⁠n⁠, it is true that ⁠p−1∣n−1⁠.

It follows from this theorem that all Carmichael numbers are odd, since any even composite number that is square-free (and hence has only one prime factor of two) will have at least one odd prime factor, and thus p−1∣n−1 results in an even dividing an odd, a contradiction. (The oddness of Carmichael numbers also follows from the fact that −1 is a Fermat witness for any even composite number.) From the criterion it also follows that Carmichael numbers are cyclic. Additionally, it follows that there are no Carmichael numbers with exactly two prime divisors.

Sign in to keep reading

7 more chapters are free with a Lably account.

More in Topics in mathematics