S1, C5-6: Modular Arithmetic Flashcards

1
Q

Positive integers written as a product of prime numbers

A

Every positive integer can be written as a product of prime numbers in exactly one way.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

How many prime numbers are there? (Euclid’s Theorem)

A

Infinitely many

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Coprime

A

Two integers, a and b, are said to be coprime or relatively prime if gcd(a, b)=1.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Congruence

A

We say that a is congruent to b modulo m if

m|(a-b)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Let a and b be integers. There is an integer b such that ab is congruent to 1 mod m iff…

A

gcd(a, m)= 1

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Modular inverse

A

When there is a number b such that ab is congruent to 1 (mod m), we call it the inverse of a mod m. And then a is invertible.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Chinese Remainder Theorem

A

Let m1 and m2 be coprime, and let a1 and a2 be any integers. The simultaneous congruences
x (congruent to) a1 (mod m1)
x (congruent to) a2 (mod m2)
have a solution modulo m1m2.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

When can you find a +ve n s.t. a^n is congruent to 1 mod m?

A

When a and m are coprime.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Fermat’s Little Theorem

A

Let p be prime, and let a be an integer coprime to p. Then

a^(p-1) is congruent to 1 mod p.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Fermat-Euler Theorem. Let a and n be integers with

gcd(a, n) = 1. Then a^(ϕ(n)) is congruent to

A

a^(ϕ(n)) is congruent to 1 mod n.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Euler’s function / Totient function: ϕ(n)

A

ϕ: N -> N is defined by taking ϕ(n) to be the number of integers between 1 and n (inclusive) which are coprime to n.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Wilson’s Theorem. We have (n-1)! congruent to -1 (mod n) iff

A

n is prime

How well did you know this?
1
Not at all
2
3
4
5
Perfectly