2.2 Euclid's Algorithm and Diophantine Equations Flashcards

1
Q

What is euclids algorithm used for

A

To find the hcf of 2 integers

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

Describe how euclids algorithm works

A

Example 5 and 12

Bigger number: 12

12/5 = 2 r 2
Move the remainder down and start again

2 integers are now 5 and 2

5/2 = 2 r 1

2/1 = 2 r 0

When there is no remainder left, the thing that is left over is the hcf, so 1.

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

What is a diophantine problem

A

One where we are only interested in integer solutions to an equation, typically a polynomial with fewer equations than unknowns

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

Solve 630x + 132y = h where h = hcf(630,132)

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

How to prove a linear diophantine equation has an integer solution

A

If and only if h is a factor of c (number on the right) then there is a solution.

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

If there is a solution to a diophantine linear equation then how many solutions will there be

A

Infinite

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

How to find the general solution to ax + by = c

A

Use euclids to find h = hcf(a,b)

If h is not a factor of c, there no solutions so STOP

Else, run euclids backwards to find the integers satisfying as + bt = c

The general solution is now given by letting k vary in the formulae

x = s + kb/h y = t - ka/h

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

Find general solution to 1071x + 462y = 42

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