3.2.3 Performing Operations
For some basic operations in other bases, sometimes it is simpler to convert all numbers to base-10, perform the operations, then convert back to base-n. Let’s look at an example where I would employ this technique:
However, when numbers are larger, this might not be the case, so let’s look at the most popular operations on the number sense test which are addition (and subsequently subtraction) and multiplication (division is usually not tested, so I will exclude explaining this operation).
Addition:
For addition of two integers in base-10 we sum the digits one at a time writing down the answer digit () and carrying when necessary. Other base-n work in the same manner with the only difference being the answer digits range from 0 to (). Let’s look at an example:
- First Digit:
- Second Digit:
- Third Digit:
- Answer:
Subtraction:
Subtraction works in a similar method, only the concept of “borrowing” when you can’t subtract the digits is slightly altered. When you “borrow” in base-10 you lower the digit you are borrowing from and then “add” 10 to the adjacent digit to aid in the subtraction. In a different base-n, you will be borrowing in the same fashion but adding n to the adjacent digit. Let’s look at an example:
- First Digit: Since you “can’t” do you have to borrow
- Second Digit:
- Third Digit:
- Answer:
In the above expressions, everything in italics represents the borrowing process. When borrowing from the second digit, you lower it by 1 (seen by the ) and then add to the adjacent digit (the first one) .
Multiplication:
What I like to do for multiplication in a different base is essentially perform the FOILing procedure in base-10 then convert your appropriate result to base-n and apply appropriate carry rules. Let’s look at a couple of examples (one involving carries and the other one not):
- First Digit:
- Second Digit:
- Third Digit:
- Answer:
The above scenario was simple because no carries were involved and converting those particular single digits from base-10 to base-9 was rather simple. Let’s look at one with carries involved:
- First Digit:
- Second Digit:
- Third Digit:
- Fourth Digit:
- Answer:
The above example shows the procedure where you do the FOILing in base-10 then convert that to base-9, write down last digit, carry any remaining digits, repeat procedure. As one can see to perform multiplication in other bases it is important to have changing bases automatic so that the procedure is relatively painless.
To practice the above three operations here are some problems: