2.1 Prime Numbers and Factorisation Flashcards

1
Q

How can we prove that a is a factor of b

A

If an integer k exists where b = k * a

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

Define what h is when h = hcf(a,b) and explain what it mean

A

h is highest common factor of a and b.

This means h is a factor of both a and b, also anything that is a factor of both a and b is also a factor of h.

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

What is the hcf(8,12)

A

4 and -4

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

Do the base case step

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

Do the induction step

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

Difference between mathematical induction and strong induction

A

In mathematical induction, you are only allowed to assume that P(k) is true. In strong induction you are allowed to assume that P(1), … , P(k) are all true. In other words, you are allowed to make more assumptions when using strong induction.

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

Use strong induction to explain/prove that every integer n>= 2 can be written as a product of prime numbers

A

Base case: P(2) is true
P(k+1) must be true whenever P(2), P(3), … ,P(k) are all true

The integer k + 1 can written as a product of primes and we can ssume that P(j) is true for all 2 <= j <= k

k+1 is either a prime number or it isn’t.

If it is: it can be written as a product of one prime number so there’s notjing more to prove

If it isn’t: we can write k + 1 = a * b where 2 <= a,b <= k.

We are therefore allowed to assume that P(a) and P(b) are both true. Since k+ 1 = a * b, therefore P(k+1) is true as well.

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

What is the fundamental theorem of arithmetic

A

Every integer n >= 2 can be written as a product of prime number. And this factorisation is unique (the same sets of prime numbers).

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

What is the division algorithm

A

If you divide a by b where b != 0. Then there is a unique quotient q and remainder r such that a = qb + r and

0 <= r <= |b|

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