Presentation on theme: "Presented by: Tutorial Services The Math Center Base 10 to Different Number Bases When converting a number from base 10 to another base follow these."— Presentation transcript:
Presented by: Tutorial Services The Math Center
Base 10 to Different Number Bases When converting a number from base 10 to another base follow these steps: 1. Take the number you want to convert to a different base and divide by the new base. 2. When dividing, write the answer with the remainder. 3. Take the quotient, not the remainder, and again divide the new number by the base. 4. Write your answer with the remainder. 5. Next, follow the third step again. 6. Repeat steps 3 and 4 until you get to an answer where you can no longer divide the quotient by the base. For example if 1 is the quotient and 2 is the base, 1 / 2 will not divide into a whole number. You stop here. 7. To write your answer, take the last number you get as a quotient when doing the division and write the remainders next to it starting from the last remainder you got, to the first remainder. Don’t forget to put the base as a subscript at the end of the number.
Example Convert 45 to base 2. Quotient Remainder 45 / / / / / Stop --> 1 / 2 Take the last quotient you got before you stopped, and that would be the first digit of the new number in base 2. Next, write the remainders starting from the last remainder you got, to the first remainder. Answer: 45 =
Numbers in Different Bases to Base 10 When converting numbers in different bases to base 10 follow these steps: 1. First count the amount of digits in the number you will process. (i.e. 25 has 2 digits) 2. Then, take the first number going from left to right and multiply it by the base it is on raised to one number less than the total numbers of digits in the number. (i.e has 2 digits, therefore the first operation should look like this (2 x 2^1), where 2 is the first digit in the number 20 2 and 2^1 is the base being raised to its corresponding power.) 3. Keep doing this subsequently with the following numbers. Note that each subsequent digit needs to be multiplied by the base raised to one power less then the previous operation. Keep in mind the last digit will need to be multiplied by 2^0. 4. Finally, add all the results from steps 2 and 3 to get your result in base 10.
Example Convert to base 10 The number of digits in the number is equal to 6, therefore the first operation should start with a power of 5. (1 x 2 5 ) + (0 x 2 4 ) + (1 x 2 3 ) + (1 x 2 2 ) + (0 x 2 1 ) + (1 x 2 0 ) (1 x 32) + (0 x 16) + (1 x 8) + (1 x 4) + (0 x 2) + (1 x 1)
Exercise Convert to base 10 Solution: (2 x 6 2 ) + (3 x 6 1 ) + (4 x 6 0 ) (2 x 36) + (3 x 6) + (4 x 1)
Addition and Subtraction in Other Bases When adding numbers in different bases follow these steps: 1. First add the numbers as you would normally do it. 2. Ask yourself, how many times does the base go into the sum. 3. If the base does not go into the sum, place the resultant of the sum as part of the answer. 4. If the base goes into the sum, place the remainder as part of the answer and carry over the quotient (the number of times the base goes into the sum). 5. Repeat steps 1 and 2 for the subsequent additions.
Addition and Subtraction in Other Bases (cont.) 1. Subtract as you would normally do it. 2. If you cannot subtract because the number is smaller than the one you are subtracting, then you will have to borrow from the following number. Borrow the amount of the base and add to the number that needed the borrowing. 3. The number from which you are borrowing will need to decrease by one. 4. If the number from which you are borrowing happens to be zero, then you will have to borrow from the following number. 5. Repeat steps 2 and 3. To subtract numbers in different bases follow these rules:
Exercise(s) Solution : Add Solution: Subtract
Multiplication In Different Bases 1. Multiply as you would normally do. 2. Figure out how many times the base goes into the resultant of the numbers multiplied. 3. The remainder of the previous step goes on the bottom and how many times the base goes into the resultant carries over. (If the resultant is less then the base number, leave the resultant as part of your answer on the bottom where the remainder would normally go.) 4. Keep doing this for every column. 5. Add like you normally would for adding numbers of the same base. 6. Get your answer Multiplication Procedure
Multiplication Examples Example 2 Example 1
Multiplication Exercise X 25 9 MultiplySolution
Division in Different Bases Division Procedure: 1. Construct a multiplication table with the corresponding base. 2. Divide as you normally would. 3. Combine all the previous rules for addition, subtraction and multiplication in order to arrive to the expected answer.
Division Exercise(s) Multiplication Table
Number Bases Links Logic Workshop Student Handout Logic Workshop Student Handout Truth Tables Handout Truth Tables Handout