4 & 5 - Number Theory Flashcards

1
Q

Modulo operation: 2 components

A

Quotient and remainder

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

a ≡ c (mod b) means what?

A

a is congruent to c mod b

a mod b = c mod b

a and c have the same remainder divided by b; a-c is a multiple of b

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

Divisibility

A

c such that a = bc then a is a multple of b and b is a divisor of a

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

Prime numbers

A

No divisors other than 1 and itself

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

Unique Factorisation

A

Any integer can be written as a product of primes in a unique way

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

Greatest Common Divisor

A

Largest integer a factor of both numbers.

AKA Highest Common Factor
Euclid’s Algorithm is faster!

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

If two numbers have no common factors other than one they are…

A

relatively prime.

Eg 9 and 20 are not prime themselves but relatively prime.

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

Modular arithmetic WITH division

A

6/3 = 2 BUT 1/3 we cannot have 0.3333

Think of 1/3 being the num which when * by 3, gives 1.

so 3*7 = 21 then mod 20 is 1

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

Multiplicative inverse of a number in a set (give an example for 3 in set Z20)

A

for example, 7 is the multiplicative inverse of 3 in Z20

(3*7 = 21 so mod 20 = 1)
7=3^-1 etc

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

Multiplicative inverse of 2 in z20

A

This cannot exist.

Dividing an even number by an even number is always even

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

Computing the inverse (not by trial and error)

A

for example 3

3 * d mod 20 =1
3 * d = 20 * c +1
20 * -c + 3 * d = 1

Use extended euclid gcd(a,b), u,v
20 = 20 * 1 + 3 * 0
3 = 20 * 0 + 3 * 1 (quotient 20/3 =6)
2 = 20 * 1 + 3 * -6 (qutoient 3/2 = 1)
1 = 20 * -1 + 3 * 7

d = 7 is the answer (20*-1 is irrelevant)

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

When there is an inverse of a mod b, the gcd(a,b) is

A

1

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

What if you compute a negative inverse? (Ie u or v is -3 and you need to use it in mod 20)

A

For example, -3 in mod 20 would be 17.F

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