Number Theory Flashcards

1
Q

How do you implement the Euclidean Algorithm? What is it used for?

A

The Euclidean algorithm is used to determine the GCD of two numbers (a, b).

You start off with a divide between two columns labeled a|q. Under ‘a’ you place the largest of the two numbers and then under that, the smallest number. You treat these as the first two remainders. Next on the second row of the second column(q), you write how many times number 2(b) goes into number 1(a), then you write the remainder in column (a). You keep repeating this until you can evenly divide the remainder column and have a remainder of zero, the last remainder is the GCD of the two integers and is written:

GCD(a, b) = (final-remainder)

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

How do we determine the GCD using prime factorisation?

A

We write our two integers in two seperate tables, and on the right column of each we start with two, and calculate how many times it divides our integer evenly, then write that divisibility under the original number, we then check if it is divisible by 2, if not, we move onto the next prime, and the next, and then the next until it is fully factorised. We do this for both, and then write out the prime factors as (P(1)^n x P(2)^n x …..) where P is the prime number and n is how many times it is a factor.

We then use the formulae of (P(1)^min{a, b} * P(2)^min{a, b} * P …..) until all factors are used, to determine the GCD. We denote min, as to chose the smallest power of the two prime factors.

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

How do we determine LCM using prime factorisation?

A

We write our two integers in two seperate tables, and on the right column of each we start with two, and calculate how many times it divides our integer evenly, then write that divisibility under the original number, we then check if it is divisible by 2, if not, we move onto the next prime, and the next, and then the next until it is fully factorised. We do this for both, and then write out the prime factors as (P(1)^n x P(2)^n x …..) where P is the prime number and n is how many times it is a factor.

We then use the form (P(1)^max{a, b} * P(2)^max{a, b} * P…..), for all factors, using the greater of the two powers for all prime factors, to determine the LCM.

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

Define “Relatively Prime.”

A

Relatively prime is where the GCD of two numbers is “1”, meaning they are relatively prime.

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

What is meant by multiplicitive inverse?

A

Multiplicitive inverse takes the form

x*y == 1(mod n)

We say x and y are the multiplicitive inverse’s of one another when they yield the remainder 1.

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

How is a|b read?

A

“a ‘divides’ b”

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