Questions: Carmichael Function and Carmichael Numbers

5 questions to test your understanding

Score: 0 / 5
Question 1 Multiple Choice

A primality testing program uses Fermat's test with base a = 2 and declares 561 to be prime because 2^560 ≡ 1 (mod 561). Why is this conclusion wrong, and what does this reveal about Fermat's test?

AThe program computed the modular exponentiation incorrectly; 2^560 ≢ 1 (mod 561)
B561 = 3 × 7 × 11 is composite, and as a Carmichael number it satisfies Fermat's condition for every coprime base — not just base 2 — making single-base Fermat testing fundamentally unreliable
CFermat's test only applies to numbers that are products of exactly two primes; 561 has three prime factors so a different test is needed
DThe computation is correct and 561 is prime; Carmichael numbers are a theoretical curiosity with no real examples below 10,000
Question 2 Multiple Choice

Why is the Carmichael function λ(n) sometimes strictly less than Euler's totient φ(n)?

Aλ(n) counts only the prime elements of the multiplicative group, while φ(n) counts all elements coprime to n
Bφ(n) gives the size of the multiplicative group (ℤ/nℤ)×; λ(n) gives its exponent — the smallest power that sends every element to 1 — which can be smaller when the group's structure is not cyclic
Cλ(n) = φ(n) for all positive integers; apparent differences arise from computation errors or misapplication of the formulas
Dφ(n) includes non-coprime elements that λ(n) correctly excludes, inflating φ(n) above λ(n)
Question 3 True / False

The Korselt criterion states that a squarefree composite n is Carmichael if and only if (p−1) | (n−1) for every prime p dividing n. This condition directly ensures λ(n) | (n−1), making n pass Fermat's test for all coprime bases.

TTrue
FFalse
Question 4 True / False

Because Carmichael numbers are extremely rare among large integers, Fermat's primality test is considered a reliable probabilistic test for cryptographic purposes — Miller-Rabin offers no meaningful improvement in practice.

TTrue
FFalse
Question 5 Short Answer

Explain why Carmichael numbers break Fermat's primality test, using the relationship between λ(n), φ(n), and the Fermat condition.

Think about your answer, then reveal below.