Presentation is loading. Please wait.

Presentation is loading. Please wait.

Number Theory Factors & Divisibility LCM and GCF BASE number

Similar presentations


Presentation on theme: "Number Theory Factors & Divisibility LCM and GCF BASE number"— Presentation transcript:

1 Number Theory Factors & Divisibility LCM and GCF BASE number
Modular Arithmetic Even & Odd Numbers

2 Divisibility Rules A number is divisible by 2n if and only if the n last digits of the number are divisible by 2n. A number is divisible by 3 or 9 if and only if the sum of its digits is divisible by 3 or 9. A number is divisible by 5n if and only if the last n digits are divisible by that power of 5n. A number is divisible by 11 if and only if the alternating sum of the digits is divisible by 11.

3 Example Sum of digits = 6+9+6+15=36 multiple of 3 & 9
Which of the following are factors of ? 2, 3, 4,,5,6,8,9,10 Sum of digits = =36 multiple of 3 & 9 Ends with 10  multiple of 5 & 10 Last two digits dividable by 4 (22) multiple of 4 Answer: 2, 3, 4, 5, 6=2x3, 9, 10

4 Example Consider a five digit number ABCDE
What is the smallest 5-digit number that is divisible by both 8 and 9? Consider a five digit number ABCDE The smallest will be A = 1, and we prefer the rest of the digits be 0. To be divisible by 9, we need sum of digits be multiple of 9. And the answer is:

5 Example Note that CDCD = CD * 100 + CD = CD * 101
In the multiplication problem below, A, B, C and D are different digits. What is A + B? ABA X CD CDCD Note that CDCD = CD * CD = CD * 101 We get: * CD = CDCD Hence ABA = 101; and A =1, B = 0 Answer: A + B = = 1

6 Example 4 + 5 – 9 = 0 yes 9 + 3 – 8 – 5 = -1 no
Which of the following is divisible by 11? ) ) ) ) 4 + 5 – 9 = yes 9 + 3 – 8 – 5 = no – 4 – 0 = yes – = yes

7 Factors Fundamental theorem of arithmetic
Every positive integer has a unique prime factorization Example: Find all the prime factors of 120? 120 = 12 * 10 = 3 * 4 * 2 * 5 = 23 * 3 * 5 Answer: 2, 3, 5 Example: Find all the factors of 24? 24 = 23 * 3 Answer: 20, 21, 22, 23, and 3* 20, 3* 21, 3* 22, 3* 23

8 Sum of Factors Example: Find sum of factors of 24? 24 = 23 * 3
The list of factors are 1, 2, 4, 8, 3, 6, 12, 24 The sum = = 60 Alternatively, we can calculate the sum: ( ) * ( ) = ( ) * (1 + 3) = 15 * 4 = 60

9 Sum of Factors For a number X = al * bm * cn
The sum of X’s factors is: (a0 + a1 + … + al) * (b0 + b1 + … + bm) * (c0 + c1 + … + cn) Example: Find the sum of factors of 5!? 5! = 5*4*3*2*1 = 120 = 23 * 3 * 5 The sum of its factors: ( ) * ( ) * ( ) = ( ) * (1 + 3) * (1 + 5) = 360

10 LCM and GCF Find the LCM and GCF of 84 and 140 84 = 2 * 2 * 3 * 7
140 = 2 * 2 * 5 * 7 LCM = 2 * 2 * 3 * 5 * 7 = 420 GCF = 2 * 2 * 7 = 28 Use Venn Diagram: 5 3 2, 2, 7 140 84

11 LCM and GCF Find the product of LCM and GCF of 45 & 105 45 = 3 * 3 * 5
45 = 3 * 3 * 5 105 = 3 * 5 * 7 LCM = 3 * 3 * 5 * 7= 315 GCF = 3 * 5 = 15 LCM * GCF = 315 * 15 = 4725 Note that: 45 * 105 = also!!!

12 Example The GCF for a pair of numbers is 18, and their LCM is 180. If one of the number is 90, what is the other number? Product of the pair = 18 * 180 Divide by one of the number, we got the other number: (18 * 180) / 90 = 18 * 2 = 36

13 Example How many integers between 1000 and 2000 have all three of the numbers 15, 20 and 25 as factors? A number with 15, 20 and 25 as factors must be divisible by their LCM. 15 = 3 x 5, 20 = 22 x 5, and 25 = 52 LCM(15, 20,25) = 22 x 3 x 52 = 300 Between 1000 and 2000, there are 3 numbers that are multiple of 300: 1200, 1500, 1800

14 Example A whole number larger than 2 leaves a remainder of 2 when divided by each of the numbers 3, 4, 5 and 6. What is the smallest such number? The smallest whole number that can be divided by each of 3, 4, 5 and 6 is LCM{3; 4; 5; 6} = 22 x3x5 = 60 The smallest whole number greater than 2 that leaves a remainder of 2 when divided by each of 3, 4, 5 and 6 is then: = 62

15 Example Two farmers agree that pigs are worth 300 dollars and that goats are worth 210 dollars. When one farmer owes the other money, he pays the debt in pigs or goats, with "change" received in the form of goats or pigs as necessary. (For example, a dollar debt could be paid with two pigs, with one goat received in change.) What is the amount of the smallest positive debt that can be resolved in this way? Let P be # of pigs, and G be # of goats. The difference will be: D = 300 * P – 210 * G D = 30 (10 * P - 7 * G) 30 is the GCF of 300 and 210, and D must be a multiple of 30, which can be achieved by P = 5, G = 7. Answer: 30

16 Base Numbers Examples of different base numbers:
123 = 1 * * = 12310 1 hr 2 m 3 sec = 1 * * = 12360 ‘D’ = = 1 * * * * * * * 20 = = 6810

17 Example Find the base 10 value of 7778
Answer: = 7 * * = 511 Find the base 8 representation of 5 * * Answer: * * = 5 * * =

18 Example Find the base 2 value of 2510? 25 = 16 + 8 + 1 = 24 + 23 + 20
Answer: = Alternatively, we can calculate: / r / r 0 6 / r 0 3 / r 1 1 / r 1 We get the answer:

19 Example How many digits will it take to represent 24210 in base 3?
Note that = 35 = Also note that = We got = = 22222 We need 5 digits in base 3.

20 Example What is the last digit of 10! in base-9?
10! = 10 * 9 * 8 * … * 1 which is divisible by 9 Therefore in base-9, the last digit must be 0.

21 Modular Arithmetic Detect repetition, and simply the problem with the remainder. Example: What is the units digit of ? Note that 81 = 8; 82 = …4; 83 = …2; 84 = …6; = …8; 86 = …4; … 2; …6; … The units digit repeats after every block of 4. 2011 / 4 = … r 3 The last digit of = last digit of 24683 Answer: 2

22 Modular Arithmetic Detect repetition, and simply the problem with the remainder. Example: What is the units digit of ? Note that 81 = 8; 82 = …4; 83 = …2; 84 = …6; = …8; 86 = …4; … 2; …6; … The units digit repeats after every block of 4. 2011 / 4 = … r 3 The last digit of = last digit of 24683 Answer: 2

23 Modular Arithmetic Strategy: Detect repetition, and simply the problem using modular arithmetic. Modular Arithmetic: X * Y (mod M) = X (mod M) * Y (mod M) X + Y (mod M) = X (mod M) + Y (mod M)

24 Examples What is the units digit of 24682011 ?
Note that 81 = 8; 82 = …4; 83 = …2; 84 = …6; = …8; 86 = …4; … 2; …6; … The units digit repeats after every block of 4. 2011 / 4 = … r 3 The last digit of = last digit of 24683 Answer: 2

25 Modular Arithmetic What is the remainder when … is divided by 8? 30 / r1 31 / r3 32 / r / r3 34 / r1 ( … )/ 8 = ( … + 3) /8 (mod 8) Note that there are 2010/2 = 1005 pairs of (1 + 3) Answer = 1005 * (1 + 3) / 8 = 4 (mod 8)

26 Even & Odd numbers even_number + even_number = even_number
even_number + odd_number = odd_number odd_number + odd_number = even_number even_number * even_number = even_number even_number * odd_number = even_number odd_number * odd_number = odd_number

27 Example Barry wrote 6 different numbers, one on each side of 3 cards, and laid the cards on a table, as shown. The sums of the two numbers on each of the three cards are equal. The three numbers on the hidden sides are prime numbers. What is the average of the hidden prime numbers? 44 59 38

28 Example There are one odd and two even numbers showing
Barry wrote 6 different numbers, one on each side of 3 cards, and laid the cards on a table, as shown. The sums of the two numbers on each of the three cards are equal. The three numbers on the hidden sides are prime numbers. What is the average of the hidden prime numbers? 44 59 38 There are one odd and two even numbers showing There must be two odd number and one even number on the other side, all prime numbers! The only even prime number is 2 Hence we get the common sum: = 61 And the other two numbers: – 44 = 17; 61 – 38 = 23; Answer: ( ) /3 = 14


Download ppt "Number Theory Factors & Divisibility LCM and GCF BASE number"

Similar presentations


Ads by Google