Questions: Fermat's Little Theorem

5 questions to test your understanding

Score: 0 / 5
Question 1 Multiple Choice

What is 3^100 mod 7?

A1
B4
C2
D6
Question 2 Multiple Choice

To compute 2^1000 mod 17 using Fermat's Little Theorem, you should first reduce the exponent 1000 modulo which number?

A17, because all arithmetic is done mod 17
B16, because FLT gives 2^16 ≡ 1 (mod 17), so the exponent repeats with period 16
C1000, because the theorem applies to the base, not the exponent
D8, because you use half of p−1 for even bases
Question 3 True / False

For any prime p and any integer a — including multiples of p — the congruence a^p ≡ a (mod p) holds.

TTrue
FFalse
Question 4 True / False

Fermat's Little Theorem states that a^(p−1) ≡ 1 (mod p) for most integer a when p is prime.

TTrue
FFalse
Question 5 Short Answer

Explain why the set {a, 2a, 3a, ..., (p−1)a} reduced modulo a prime p must be a permutation of {1, 2, ..., p−1} when gcd(a,p) = 1, and how this implies Fermat's Little Theorem.

Think about your answer, then reveal below.