Britannica AI Icon

Quick Summary

A Carmichael number is a composite number that satisfies a specific mathematical condition, making it appear prime under certain tests. This condition is related to Fermat's Little Theorem, which states that for any prime number p and any integer a not divisible by p, ap - a is divisible by p.

While a prime number will always satisfy this, the converse is not always true for composite numbers. A composite number n that satisfies this condition for a base a (where a and n are relatively prime) is called a Fermat pseudoprime. Carmichael numbers are special Fermat pseudoprimes because they satisfy this condition for all bases a that are relatively prime to n. The smallest Carmichael number is 561.12

Summary created from Britannica articles using AI. AI can make mistakes, so verify using Britannica articles.
2 Britannica Sources
  1. Pierre de Fermat
  2. pseudoprime

Ask Britannica AI about this topic

Britannica doesn't have a full article on this topic, so we've curated a list of our relevant coverage.