第4章数の表し方と計算
4.4 Addition and Subtraction in Base Systems4.4 いろいろな進法での足し算と引き算

Figure 4.5図4.5
All information in computers is represented by 0's and 1's, including quantity, which means computers use Base 2 for arithmetic. (credit: modification of work “Magnifying glass and binary code” by Marco Verch Professional Photographer/Flickr, CC BY 2.0)
英語のヒント
コンピュータの中のすべての情報は、量も含めて0と1で表される。つまり、コンピュータは算術に2進法を使う。(出典:Marco Verch Professional Photographer/Flickr の “Magnifying glass and binary code” を改変、CC BY 2.0)
Learning Objectives学習目標
After completing this section, you should be able to:
英語のヒント
この節を終えると、次のことができるようになる。
- Add and subtract in bases 2–9 and 12.
英語のヒント
2〜9進法と12進法で足し算と引き算をする。 - Identify errors in adding and subtracting in bases 2–9 and 12.
英語のヒント
2〜9進法と12進法での足し算と引き算の誤りを見つける。
Once we decide on a system for counting, we need to establish rules for combining the numbers we’re using. This begins with the rules for addition and subtraction. We are familiar with base 10 arithmetic, such as or . How does that change if we instead use a different base? A larger base? A smaller one? In particular, computers use base 2 for all number representation. When your calculator adds or subtracts, multiplies or divides, it uses base 2. This is because the circuitry recognizes only two things, high current and low current, which means the system is uses only has two symbols. Which is what base 2 is.
英語のヒント
数え方の体系を決めたら、使う数を組み合わせる規則を立てる必要がある。それは足し算と引き算の規則から始まる。私たちは、やのような10進法の算術にはなじんでいる。代わりに別の進法を使ったら、それはどう変わるのか。もっと大きい進法なら。もっと小さい進法なら。とくに、コンピュータは数を表すのにすべて2進法を使う。電卓が足したり引いたり、かけたり割ったりするとき、2進法を使っている。これは、回路が強い電流と弱い電流という2つのものしか認識しないからで、つまりその体系が使う記号は2つしかない。それがまさに2進法である。
In this section, we use addition and subtraction in bases other than 10 by referencing the processes of base 10, but applied to a new base system.
英語のヒント
この節では、10進法の手順を参照し、それを新しい進法に当てはめることで、10以外の進法での足し算と引き算を使う。
Addition in Bases Other Than Base 1010進法以外の進法での足し算
Now that we understand what it means for numbers to be expressed in a base other than 10, we can look at arithmetic using other bases, starting with addition. When you think back to when you first learned addition, it is very likely you learned the addition table. Once you knew the addition table, you moved on to addition of numbers with more than one digit. The same process holds for addition in other bases. We begin with an addition table, and then move on to adding numbers with two or more digits.
英語のヒント
数が10以外の進法で表されるとはどういうことかがわかったので、足し算から始めて、ほかの進法を使った算術を見ていける。初めて足し算を学んだころを思い返すと、たし算の表を覚えた可能性がとても高い。たし算の表がわかると、2けた以上の数の足し算に進んだ。ほかの進法での足し算にも同じ手順が当てはまる。たし算の表から始め、それから2けた以上の数の足し算に進む。
We worked with base 6 earlier, and have the numbers in base 6 up to 1006. Using that table of values, we can create the base 6 addition table.
英語のヒント
前に6進法を扱い、6進法で1006までの数を得た。その値の表を使って、6進法のたし算の表を作れる。
Here’s the beginning of the base 6 addition table:
英語のヒント
6進法のたし算の表の始まりは次のとおりである:
| + | 0 | 1 | 2 | 3 | 4 | 5 |
| 0 | 0 | 1 | 2 | 3 | 4 | 5 |
| 1 | 1 | 2 | 3 | 4 | 5 | ? |
| 2 | 2 | 3 | 4 | 5 | ? | ? |
| 3 | 3 | 4 | 5 | ? | ? | ? |
| 4 | 4 | 5 | ? | ? | ? | ? |
| 5 | 5 | ? | ? | ? | ? | ? |
Many of the cells are not filled out. The ones filled in are values that never get past 5, which is the largest legal symbol in base 6, so they are acceptable symbols. But what do we do with 5 + 3 in base 6? We can’t represent the answer as “8” since “8” is not a symbol available to us. Let’s go back to the list of numbers we have for base 6.
英語のヒント
多くのマスは埋まっていない。埋まっているのは、6進法で使えるいちばん大きい記号である5を決して超えない値なので、受け入れられる記号である。しかし、6進法で5 + 3はどうすればよいか。“8”は私たちが使える記号ではないので、答えを“8”と表すことはできない。6進法の数の並びに戻ろう。
| 0 | 1 | 2 | 3 | 4 | 5 |
| 10 | 11 | 12 | 13 | 14 | 15 |
| 20 | 21 | 22 | 23 | 24 | 25 |
| 30 | 31 | 32 | 33 | 34 | 35 |
| 40 | 41 | 42 | 43 | 44 | 45 |
| 50 | 51 | 52 | 53 | 54 | 55 |
So, what is 5 + 1 equal to in base 6? Well, start at the 5, and jump ahead one step. You land on 10.
英語のヒント
では、6進法で5 + 1は何に等しいか。そう、5から始めて、1つ先に跳ぶ。10に着く。


This means that, in base 6, 5 + 1 = 10.
英語のヒント
つまり、6進法では5 + 1 = 10である。
So, what is 5 + 2 in base 6? Well, 5 + 2 = 5 + 1 + 1, so 10 + 1…jump one more space and you land on 11. So, 5 + 2 = 11 in base 6.
英語のヒント
では、6進法で5 + 2は何か。そう、5 + 2 = 5 + 1 + 1なので、10 + 1…もう1つ先に跳ぶと11に着く。よって、6進法では5 + 2 = 11である。

And so it goes. Using that process, stepping one more along the list, we can fill in the remainder of the base 6 addition table (Table 4.4).
英語のヒント
そういう具合に進む。その手順を使って、並びに沿って1つずつ進めば、6進法のたし算の表の残りを埋められる(表4.4)。
| + | 0 | 1 | 2 | 3 | 4 | 5 |
| 0 | 0 | 1 | 2 | 3 | 4 | 5 |
| 1 | 1 | 2 | 3 | 4 | 5 | 10 |
| 2 | 2 | 3 | 4 | 5 | 10 | 11 |
| 3 | 3 | 4 | 5 | 10 | 11 | 12 |
| 4 | 4 | 5 | 10 | 11 | 12 | 13 |
| 5 | 5 | 10 | 11 | 12 | 13 | 14 |
With this table, and with our understanding of “carrying the one,” we can then use the addition table to do addition in base 6 for numbers with two or more digits, using the same processes you learned for addition when you did it by hand.
英語のヒント
この表と、「1を繰り上げる」ことの理解があれば、手で足し算をしたときに学んだのと同じ手順を使って、たし算の表で2けた以上の数の6進法の足し算ができる。
Example 4.28例題 4.28
Adding in Base 66進法で足す
Calculate 2516 + 1336.
英語のヒント
2516 + 1336を計算せよ。
Solution解答
Step 1: Let’s set up the addition using columns.
英語のヒント
手順1:縦にそろえて足し算を書く。
| 2 | 5 | 1 | |
| + | 1 | 3 | 3 |
Step 2: Let’s do the one’s place first. According to the base 6 addition table (Table 4.4), 1 + 3 = 4.
英語のヒント
手順2:まず一の位をする。6進法のたし算の表(表4.4)によれば、1 + 3 = 4である。
| 2 | 5 | 1 | |
| + | 1 | 3 | 3 |
| 4 |
Step 3: Now, we do the “tens” place (it’s really the sixes place). According to the base 6 addition table (Table 4.4), we have 5 + 3 = 12. So, like in base 10, we use the 2 and carry the 1.
英語のヒント
手順3:次に、「十の位」(本当は六の位)をする。6進法のたし算の表(表4.4)によれば、5 + 3 = 12である。よって、10進法と同じように、2を書いて1を繰り上げる。
| 1 | |||
| 2 | 5 | 1 | |
| + | 1 | 3 | 3 |
| 2 | 4 |
Step 4: Now the “hundreds” place (really, thirty-sixes place). There, we have 1 + 2 + 1 = 3 + 1 = 4.
英語のヒント
手順4:次に「百の位」(本当は三十六の位)。そこでは、1 + 2 + 1 = 3 + 1 = 4である。
| 1 | |||
| 2 | 5 | 1 | |
| + | 1 | 3 | 3 |
| 4 | 2 | 4 |
So, 2516 + 1336 = 4246.
英語のヒント
よって、2516 + 1336 = 4246。
As you can see, the process is the same as when you learned base 10 addition, just a different symbol set.
英語のヒント
わかるように、手順は10進法の足し算を学んだときと同じで、記号の集まりが違うだけである。
Example 4.29例題 4.29
Creating an Addition Table for a Base Lower Than 1010より小さい進法のたし算の表を作る
- Create the addition table for base 7.
英語のヒント
7進法のたし算の表を作れ。 - Create the addition table for base 2.
英語のヒント
2進法のたし算の表を作れ。
Solution解答
- We begin with the table below.
英語のヒント
下の表から始める。+ 0 1 2 3 4 5 6 0 0 1 2 3 4 5 6 1 1 2 3 4 5 6 2 2 3 4 5 6 3 3 4 5 6 4 4 5 6 5 5 6 6 6 In base 7, the number that follows 6 is 10 (since we’ve run out of symbols!). So, 67 + 17 = 107. Once that is established, 67 + 27 will be two numbers past 6, which is 11 in base 7.英語のヒント
7進法では、6の次の数は10である(記号を使い切ったので!)。よって、67 + 17 = 107。それが確かめられれば、67 + 27は6から2つ先の数で、7進法では11である。+ 0 1 2 3 4 5 6 0 0 1 2 3 4 5 6 1 1 2 3 4 5 6 10 2 2 3 4 5 6 11 3 3 4 5 6 4 4 5 6 5 5 6 6 6 10 11 Continuing, we can fill in the rows as we would in base 10, but being aware that we are working in base 7 (Table 4.5).英語のヒント
続けて、7進法で計算していることに気をつけながら、10進法でするように行を埋めていける(表4.5)。Table 4.5表4.5Base 7 Addition Table英語のヒント
7進法のたし算の表+ 0 1 2 3 4 5 6 0 0 1 2 3 4 5 6 1 1 2 3 4 5 6 10 2 2 3 4 5 6 10 11 3 3 4 5 6 10 11 12 4 4 5 6 10 11 12 13 5 5 6 10 11 12 13 14 6 6 10 11 12 13 14 15 - We revisit base 2 here. Begin with the table:
英語のヒント
ここで2進法をもう一度扱う。次の表から始める:Table 4.6表4.6Base 2 Addition Table英語のヒント
2進法のたし算の表+ 0 1 0 0 1 1 1 In base 2, the number that follows 1 is 10 (since we’ve run out of symbols!). So, 12 + 12 = 102. The complete table for base two then is below.英語のヒント
2進法では、1の次の数は10である(記号を使い切ったので!)。よって、12 + 12 = 102。すると、2進法の完全な表は下のとおりである。+ 0 1 0 0 1 1 1 10 This demonstrates that the rules necessary for base 2 addition are as small as possible: four rules.英語のヒント
これは、2進法の足し算に必要な規則はできるかぎり少なく、4つの規則だけであることを示している。
To summarize the creation of the addition tables for a given base, do the following.
英語のヒント
ある進法のたし算の表の作り方をまとめると、次のようにする。
Step 1: Set up the table.
英語のヒント
手順1:表を用意する。
Step 2: Fill in all the additions that use the “legal” symbols for the base. The diagonal that goes from upper left to lower right that is immediately next to the filled boxes all get the value 10, regardless of base.
英語のヒント
手順2:その進法の「使える」記号を使う足し算をすべて書き入れる。埋めたマスのすぐ隣にある、左上から右下に向かう対角線には、進法にかかわらず、すべて値10が入る。
Step 3: Enter the values that are in the “teens.” This can all be done on one table without creating multiple copies of previously done work.
英語のヒント
手順3:「10台」の値を書き入れる。これは、前にした作業を何枚も写したりせずに、1つの表ですべてできる。
Example 4.30例題 4.30
Adding in Base 77進法で足す
Calculate 5367 + 4337.
英語のヒント
5367 + 4337を計算せよ。
Solution解答
Step 1: Let’s set up the addition using columns.
英語のヒント
手順1:縦にそろえて足し算を書く。
| 5 | 3 | 6 | |
| + | 4 | 3 | 3 |
Step 2: Let’s do the one’s place first. According to the base 7 addition table in the solution for Example 4.29, 6 + 3 = 12. We will carry the 1.
英語のヒント
手順2:まず一の位をする。例題4.29の解答にある7進法のたし算の表によれば、6 + 3 = 12である。1を繰り上げる。
| 1 | |||
| 5 | 3 | 6 | |
| + | 4 | 3 | 3 |
| 2 |
Step 3: Now, we do the “tens” place (it’s really the sevens place). According to the base 7 addition table in the solution for Example 4.29, we have 1 + 3 + 3 = 10. So, like in base 10, we use the 0 and carry the 1.
英語のヒント
手順3:次に、「十の位」(本当は七の位)をする。例題4.29の解答にある7進法のたし算の表によれば、1 + 3 + 3 = 10である。よって、10進法と同じように、0を書いて1を繰り上げる。
| 1 | |||
| 5 | 3 | 6 | |
| + | 4 | 3 | 3 |
| 0 | 2 |
Step 4: Now the “hundreds” place (really, forty-ninths place). There, we have 1 + 5 + 4 = 6 + 4 = 13.
英語のヒント
手順4:次に「百の位」(本当は四十九の位)。そこでは、1 + 5 + 4 = 6 + 4 = 13である。
| 1 | |||
| 5 | 3 | 6 | |
| + | 4 | 3 | 3 |
| 1 | 3 | 0 | 2 |
So, 5367 + 3337 = 13027.
英語のヒント
よって、5367 + 3337 = 13027。
As seen previously, when performing addition in another base, set up the problem exactly as you would for addition in base 10. At each step, check the addition table for the base. As in base 10 addition, move right to left, adding down the columns using the rules in the addition table. When necessary and just as in base 10, be sure to carry the 1.
英語のヒント
前に見たように、ほかの進法で足し算をするときは、10進法の足し算とまったく同じように問題を書く。各段階で、その進法のたし算の表を確かめる。10進法の足し算と同じように、右から左へ進み、たし算の表の規則を使って列を下へ足していく。必要なときは、10進法とまったく同じように、必ず1を繰り上げる。
Example 4.31例題 4.31
Creating an Addition Table for a Base Higher Than 1010より大きい進法のたし算の表を作る
Create the addition table for base 12.
英語のヒント
12進法のたし算の表を作れ。
Solution解答
Step 1: Recall, in base 12, the symbol set is 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, A, and B. So, the addition table begins as shown below.
英語のヒント
手順1:12進法の記号の集まりは0、1、2、3、4、5、6、7、8、9、A、Bであったことを思い出そう。よって、たし算の表は下のように始まる。
| + | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | A | B |
| 0 | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | A | B |
| 1 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | A | B | |
| 2 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | A | B | ||
| 3 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | A | B | |||
| 4 | 4 | 5 | 6 | 7 | 8 | 9 | A | B | ||||
| 5 | 5 | 6 | 7 | 8 | 9 | A | B | |||||
| 6 | 6 | 7 | 8 | 9 | A | B | ||||||
| 7 | 7 | 8 | 9 | A | B | |||||||
| 8 | 8 | 9 | A | B | ||||||||
| 9 | 9 | A | B | |||||||||
| A | A | B | ||||||||||
| B | B |
Step 2: The diagonal immediately to the right of the filled in boxes is where the 10 goes for this base.
英語のヒント
手順2:埋めたマスのすぐ右の対角線が、この進法で10が入るところである。
| + | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | A | B |
| 0 | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | A | B |
| 1 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | A | B | 10 |
| 2 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | A | B | 10 | |
| 3 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | A | B | 10 | ||
| 4 | 4 | 5 | 6 | 7 | 8 | 9 | A | B | 10 | |||
| 5 | 5 | 6 | 7 | 8 | 9 | A | B | 10 | ||||
| 6 | 6 | 7 | 8 | 9 | A | B | 10 | |||||
| 7 | 7 | 8 | 9 | A | B | 10 | ||||||
| 8 | 8 | 9 | A | B | 10 | |||||||
| 9 | 9 | A | B | 10 | ||||||||
| A | A | B | 10 | |||||||||
| B | B | 10 |
Step 3: Using the pattern we’re familiar with, and counting in base 12, we can fill in the other cells.
英語のヒント
手順3:なじみのあるパターンを使い、12進法で数えれば、ほかのマスを埋められる。
| + | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | A | B |
| 0 | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | A | B |
| 1 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | A | B | 10 |
| 2 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | A | B | 10 | 11 |
| 3 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | A | B | 10 | 11 | 12 |
| 4 | 4 | 5 | 6 | 7 | 8 | 9 | A | B | 10 | 11 | 12 | 13 |
| 5 | 5 | 6 | 7 | 8 | 9 | A | B | 10 | 11 | 12 | 13 | 14 |
| 6 | 6 | 7 | 8 | 9 | A | B | 10 | 11 | 12 | 13 | 14 | 15 |
| 7 | 7 | 8 | 9 | A | B | 10 | 11 | 12 | 13 | 14 | 15 | 16 |
| 8 | 8 | 9 | A | B | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 |
| 9 | 9 | A | B | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 |
| A | A | B | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 |
| B | B | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 1A |
Notice that the lower-right entry is 1A12, as this is the number one past 1912.
英語のヒント
右下の項目は1A12であることに注意しよう。これは1912の1つ先の数だからである。
Example 4.32例題 4.32
Adding in Base 1212進法で足す
Calculate 3A712 + 9BA12.
英語のヒント
3A712 + 9BA12を計算せよ。
Solution解答
Step 1: Using the process established in the earlier addition problem, set up the columns.
英語のヒント
手順1:前の足し算の問題で確かめた手順を使って、列をそろえる。
| 3 | A | 7 | |
| + | 9 | B | A |
Step 2: Using the rules from the base 12 addition table in the solution for Example 4.31, and being careful to carry the 1 when necessary, we get the following:
英語のヒント
手順2:例題4.31の解答にある12進法のたし算の表の規則を使い、必要なときに1を繰り上げることに気をつけると、次のようになる:
| 1 | 1 | ||
| 3 | A | 7 | |
| + | 9 | B | A |
| 1 | 1 | A | 5 |
The ones that were carried are located over the columns.
英語のヒント
繰り上げた1は、列の上に書いてある。
So, 3A712 + 9BA12= 11A512.
英語のヒント
よって、3A712 + 9BA12= 11A512。
Example 4.33例題 4.33
Adding in Base 22進法で足す
We again return to base 2, the base used by computers. Calculate 10012 + 110112.
英語のヒント
もう一度、コンピュータが使う進法である2進法に戻る。10012 + 110112を計算せよ。
Solution解答
Step 1: Using the process established in the earlier addition problem, set up the columns.
英語のヒント
手順1:前の足し算の問題で確かめた手順を使って、列をそろえる。
| 1 | 0 | 0 | 1 | ||
| + | 1 | 1 | 0 | 1 | 1 |
Step 2: Using the rules from the base 2 addition table in the solution for Example 4.29, and being careful to carry the 1 when necessary (and shown at the top of the grid), we get the following:
英語のヒント
手順2:例題4.29の解答にある2進法のたし算の表の規則を使い、必要なときに1を繰り上げることに気をつけると(繰り上がりはます目のいちばん上に示してある)、次のようになる:
| 1 | 1 | 1 | |||
| 1 | 0 | 0 | 1 | ||
| + | 1 | 1 | 0 | 1 | 1 |
| 1 | 0 | 0 | 1 | 0 | 0 |
Step 3: Calculate 10012 + 110112 = 1001002.
英語のヒント
手順3:計算すると、10012 + 110112 = 1001002。
So, 10012 + 110112 = 1001002.
英語のヒント
よって、10012 + 110112 = 1001002。