• Home
  • Textbooks
  • Applied Algebra: Codes, Ciphers and Discrete Algorithms
  • Theorems of Fermat and Euler

Applied Algebra: Codes, Ciphers and Discrete Algorithms

Darel W. Hardy, Fred Richman, Carol L. Walker

Chapter 7

Theorems of Fermat and Euler - all with Video Answers

Educators


Section 1

Wilson's Theorem

00:16

Problem 1

Test the odd integers 101 through 110 for primality by applying Wilson's theorem.

Amy Jiang
Amy Jiang
Numerade Educator
03:25

Problem 2

If $n$ is not prime, what are the possible values of $(n-1)!\bmod n$ ? For which composites is $(n-1)!\not \equiv 0 \bmod n$ ?

AG
Ankit Gupta
Numerade Educator

Problem 3

Calculate $x^2 \bmod 11$ for integers $x=1,2,3, \ldots, 9,10$ and show $x^2 \bmod 11=$ 1 only for $x=1$ or 10 .

Check back soon!
01:51

Problem 4

For any positive integer $n>1$, show that $x^2 \bmod n=(n-x)^2 \bmod n$.

James Chok
James Chok
Numerade Educator

Problem 5

Find all solutions to $x^2 \bmod 15=1$ for $x \in\{1,2, \ldots, 14\}$.

Check back soon!
01:59

Problem 6

Prove or disprove: If $x^2 \bmod p=1$ has exactly two solutions $x \in\{1,2, \ldots$, $p-1\}$, then $p$ is prime.

James Chok
James Chok
Numerade Educator

Problem 7

Let $p$ be an odd prime. Show that $2(p-3)!\bmod p=p-1$.

Check back soon!

Problem 8

Prove that an integer $p>2$ is prime if and only if $(p-2)!\bmod p=1$.

Check back soon!
12:02

Problem 9

Illustrate the proof of Wilson's theorem for $p=17$ by pairing the integers $2,3,4, \ldots, 15$ and using that to find $16!$ mod 17 .

Mengchun Cai
Mengchun Cai
Numerade Educator
03:31

Problem 10

Show that $9!+1 \bmod 19=0$ and $18!+1 \bmod 19=0$.

Narayan Hari
Narayan Hari
Numerade Educator