Number theory Flashcards
Division algorithm
Way of expressing a large number as a multiplication in a remainder.
a=bq +r
Euclidean algorithm used to find?
Greatest common divisor of two large numbers
How to find GCD
We use division algorithm where the remainder becomes the factor in next line until remainder is 0, then that factor is our GCD.
Reverse Euclidean algorithm
Rewrite remainder GCD line in terms of the GCD. Substitute in rearranged upper lines, solve any brackets and group like terms. Stop when GCD is expressed as multiples of two original numbers.
How to express a base10 number in base 6
Do division algorithm of number, using new base as factor.
Once remainder = to number being decided we stop. We then read up division algorithm and find value of it in new base.
Hexadecimal values past 9
10 = A
11 = B
12 = C
13 = D
14 = E
15 = F
How to convert different bases back to base 10
Set in table of all the different powers of base, starting with 0. See how many of each level there are. Multiplying out and that will be value in base 10.
Fundamental theory of arithmetic
Each number greater than 1can be expressed as a product of primes
How to work out prime composition of an integer.
Divide by smallest prime possible, then divide other number left over by smallest prime. Keep doing this until only primes left over. Collect terms.