第4章数の表し方と計算
4.3 Converting with Base Systems4.3 いろいろな進法の間の変換

Figure 4.4図4.4
Computers use Base 2, which only uses 0's and 1's, to represent quantity. (credit: modification of work “IMAG0933” by yvanhou/Flickr, CC BY 2.0)
英語のヒント
コンピュータは、0と1だけを使う2進法で量を表す。(出典:yvanhou/Flickr の “IMAG0933” を改変、CC BY 2.0)
Learning Objectives学習目標
After completing this section, you should be able to:
英語のヒント
この節を終えると、次のことができるようになる。
- Convert another base to base 10.
英語のヒント
ほかの進法を10進法に変換する。 - Write numbers in different base systems.
英語のヒント
数をいろいろな進法で書く。 - Convert base 10 to other bases.
英語のヒント
10進法をほかの進法に変換する。 - Determine errors in converting between bases.
英語のヒント
進法の間の変換での誤りを見つける。
In our system of numbers, we use base 10, but using base 10 was not a given within other systems. There were other systems that used bases other than 10, as we saw with the Mayans and the Babylonians. The base 10 system comes down to grouping objects in sets of 10, but grouping in sets of 10 only happens if the culture values grouping by that many. We feel 10 is natural because we have 10 fingers. There are other systems using other grouping values, such as 4 or 20.
英語のヒント
私たちの記数法では10進法を使うが、ほかの体系では10進法を使うのが当たり前ではなかった。マヤ人やバビロニア人で見たように、10以外の底を使う体系もあった。10進法は、結局、ものを10ずつの組にまとめることに行き着くが、10ずつの組にまとめるのは、その文化がそれだけの数でまとめることを重んじる場合だけである。私たちは指が10本あるので、10が自然だと感じる。4や20のように、ほかのまとめる数を使う体系もある。
One good reason for examining other bases is to remind ourselves how we had to learn arithmetic when we were young, memorizing rules for our base 10 system. We had to learn why those arithmetic rules made sense, such as why and . Another good reason for learning other base systems is due to computers; their circuitry instead uses base 2.
英語のヒント
ほかの進法を調べるよい理由の一つは、幼いころ、10進法の規則を覚えながら、算術をどう学ばなければならなかったかを思い出すことである。やになるのはなぜかといった、算術の規則が筋が通る理由を学ばなければならなかった。ほかの進法を学ぶもう一つのよい理由は、コンピュータのためである。コンピュータの回路は、10進法ではなく2進法を使う。
In this section, we explore other base systems and how to convert between them.
英語のヒント
この節では、ほかの進法と、それらの間で変換する方法を調べる。
Conversion of Another Base into Base 10 and Other Basesほかの進法から10進法やそのほかの進法への変換
We saw in Hindu-Arabic Positional System that our Hindu-Arabic system uses base 10, which is a system using place values of digits that depend on powers of 10 (or, are based on powers of 10). We’ve already worked with bases other than base 10: The Babylonian system was base 60, while the Mayan system was base 20.
英語のヒント
インド・アラビアの位取り記数法で、私たちのインド・アラビアの体系は10進法を使うことを見た。10進法とは、数字の位の値が10の累乗による(つまり、10の累乗にもとづく)体系である。10進法以外の進法はすでに扱ってきた。バビロニアの体系は60進法で、マヤの体系は20進法だった。
To explore how our base 10 system is used, answer the following question: What’s the following quantity: 4,572? You probably said four thousand five hundred seventy-two (no, there is no “and” between hundred and seventy). But why do you think that 4 means four thousand? A very young person when learning their numbers might say that’s a four five seven and two. But you added the context of thousands to the four. Why?
英語のヒント
私たちの10進法がどう使われているかを調べるために、次の問いに答えよう:次の量は何か:4,572。たぶん、四千五百七十二と言っただろう(いや、hundredとseventyの間に“and”は入らない)。しかし、なぜその4が四千を意味すると思うのか。数を覚えている最中のとても幼い子どもなら、それは四、五、七、と二だと言うかもしれない。しかしあなたは、その4に千という文脈を加えた。なぜか。
Place value, that’s why. You learned early on that where the numeral was gave it different meanings. Ten thousands, thousands, hundreds, tens, and ones. So, you translate that symbol string (4,572) into “four thousand five hundred seventy-two.” As we saw in Hindu-Arabic Positional System, expanding a Hindu-Arabic number involved writing the number using each digit times its appropriate power of 10. So, we could write 4,572 as .
英語のヒント
位取り、それが理由である。数字がどこにあるかでその意味が変わることを、早いうちに学んだ。一万の位、千の位、百の位、十の位、一の位。だから、その記号の列(4,572)を「四千五百七十二」に読みかえる。インド・アラビアの位取り記数法で見たように、インド・アラビアの数を展開するには、それぞれの数字にその位に合った10の累乗をかけて数を書いた。だから、4,572はと書ける。
One possible reason we use base 10 is that we have 10 fingers, and in the cultures where the Hindu-Arabic system developed, that became the standard. Other cultures may have used other ways of organizing numbers, perhaps using 20 by including toes, or using 60 because 60 has many divisors. Mathematically though, base 10 is an awkward base to work in since 10 has limited divisors. But we think it is easy and simple because that’s what we’ve been taught to use.
英語のヒント
私たちが10進法を使う一つのありうる理由は、指が10本あることで、インド・アラビアの体系が発達した文化では、それが標準になった。ほかの文化は、ことによると足の指も含めて20を使ったり、60には約数が多いので60を使ったりと、数を整理するほかのやり方を使ったかもしれない。しかし数学的には、10は約数が限られているので、10進法は扱いにくい底である。それでも私たちが簡単で単純だと思うのは、それを使うように教わってきたからである。
Using a base 10 system means we need 10 symbols to make our numbering system work: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9.
英語のヒント
10進法を使うということは、記数法がはたらくのに10個の記号が必要だということである:0、1、2、3、4、5、6、7、8、9。
Now imagine that we all only had 6 fingers instead of 10 and our counting system was based on those 6 fingers. We would be counting in groups of 6, not groups of 10. How would this change how we work with quantity?
英語のヒント
では、私たちみんなの指が10本ではなく6本しかなく、数え方の体系がその6本の指にもとづいていたと想像してみよう。私たちは10ずつではなく、6ずつのまとまりで数えていることになる。そうなると、量の扱い方はどう変わるだろうか。
First, we’d need only six symbols. Let’s use 0, 1, 2, 3, 4, 5. Second, our place values would be based on powers of 6, not powers of 10. For instance, the number 3,024 in base 6 would be . That is how you can translate a base 6 number into a base 10 number. When we calculate that expression we get .
英語のヒント
まず、記号は6つしか必要ない。0、1、2、3、4、5を使おう。次に、位の値は10の累乗ではなく、6の累乗にもとづくことになる。たとえば、6進法の数3,024はとなる。このようにして、6進法の数を10進法の数に読みかえられる。その式を計算すると、となる。
This means the base 6 number 3,024 is equal to the base 10 number 664.
英語のヒント
つまり、6進法の数3,024は10進法の数664に等しい。
From now on, if we are using a base 6 number, we will follow it with the subscript 6, like the following: 3,0246 means the number is in base 6.
英語のヒント
これからは、6進法の数を使うときは、次のように数のあとに添え字6をつける:3,0246は、その数が6進法であることを意味する。
A base 10 number gets no subscript (it’s the standard). So, 3,024 is a base 10 number. A base 13 number would be 4,67213.
英語のヒント
10進法の数には添え字をつけない(それが標準である)。だから、3,024は10進法の数である。13進法の数なら4,67213となる。
So, a base 6 system uses only the symbols 0, 1, 2, 3, 4, and 5. Also, the place values use powers of 6. However, we still don’t know how to count in base 6. In order to do so, we’d have to know how to represent the quantities larger than five in base 6. Let’s review how our base 10 system works by counting from 0 to 100, which shows how larger values are represented.
英語のヒント
よって、6進法では記号0、1、2、3、4、5だけを使う。また、位の値には6の累乗を使う。しかし、6進法でどう数えるかはまだわからない。そのためには、5より大きい量を6進法でどう表すかを知らなければならない。0から100まで数えることで、私たちの10進法のしくみを復習しよう。それで、大きい値がどう表されるかがわかる。
In writing the base 10 numbers, you start with these first 10 values:
英語のヒント
10進法の数を書くとき、まず次の最初の10個の値から始める:
| 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 |
But you’ve run out of symbols. So, we use two digits:
英語のヒント
しかし、記号を使い切ってしまった。そこで、数字を2つ使う:
| 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 |
The 1 out front means you’ve run out of digits one time.
英語のヒント
前についた1は、数字を1回使い切ったことを意味する。
But now you’ve run out twice. Continuing with those numbers gives:
英語のヒント
しかし、今度は2回使い切った。そのまま数を続けると、次のようになる:
| 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 |
And so on,
英語のヒント
そして以下同様に、
| 30 | 31 | 32 | 33 | 34 | etc.…以下同様… |
Eventually, you hit the 90s,
英語のヒント
やがて90台になり、
| 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 |
And you’ve run out of the digits again! So, we say we’ve run out of digits in the tens place one time, hence:
英語のヒント
そしてまた数字を使い切ってしまった!そこで、十の位の数字を1回使い切ったと考える。よって:
| 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 |
That’s the pattern we use in base 10. We write out the symbols until we’ve used all the symbols, then add a digit in front that counts how many times we’ve used the digits. Knowing the numbers, or being able to count higher and higher, is necessary to understand how all the arithmetic works, as it all goes back to counting.
英語のヒント
それが10進法で使うパターンである。記号を全部使うまで書き出し、それから、数字を何回使ったかを数える数字を前に加える。数を知っていること、つまりどんどん大きな数まで数えられることは、算術全体のしくみを理解するのに必要である。算術はすべて数えることにさかのぼるからである。
The counting pattern is the same for any other base, including base 6. So, let’s start:
英語のヒント
数え方のパターンは、6進法を含め、ほかのどの進法でも同じである。では、始めよう:
| 0 | 1 | 2 | 3 | 4 | 5 |
But we’ve run out of symbols! Just like in base 10, we use a second digit, where the first digit will tell us we’ve run out of symbols one time.
英語のヒント
しかし、記号を使い切ってしまった!10進法とまったく同じように、2つ目の数字を使い、前の数字が記号を1回使い切ったことを教えてくれる。
| 10 | 11 | 12 | 13 | 14 | 15 |
And we use the same pattern:
英語のヒント
そして同じパターンを使う:
| 20 | 21 | 22 | 23 | 24 | 25 |
| 30 | 31 | 32 | 33 | 34 | 35 |
| 40 | 41 | 42 | 43 | 44 | 45 |
| 50 | 51 | 52 | 53 | 54 | 55 |
But we’ve run out of symbols for that front digit. So, we indicate it the same way as in base 10…by adding a third digit in front, indicating we’ve run out of symbols once in the second place:
英語のヒント
しかし、その前の数字の記号を使い切ってしまった。そこで、10進法と同じやり方でそれを示す…3つ目の数字を前に加えて、2番目の位で記号を1回使い切ったことを示す:
| 100 | 101 | 102 | 103 | 104 | 105 |
| 110 | 111 | etc.以下同様 |
The symbol pattern is the same, but truncated. We only use the six symbols. So that is how we represent base 6. Being able to write out these numbers is important when working with addition in the base.
英語のヒント
記号のパターンは同じだが、途中で切られている。6つの記号しか使わない。このようにして6進法を表す。これらの数を書き出せることは、その進法で足し算をするときに重要である。
When using a base larger than 10, though, we need more symbols. Instead of creating new symbols, we use capital letters, with A representing the digit for "10," B representing the digit for "11," and so on.
英語のヒント
しかし、10より大きい底を使うときは、もっと記号が必要である。新しい記号を作る代わりに大文字を使い、Aで「10」の数字を、Bで「11」の数字を表し、以下同様である。
Example 4.12例題 4.12
Determining Digits of a Base with Less Than 10 Digits数字が10個より少ない進法の数字を求める
What are the digits used for base 7?
英語のヒント
7進法で使う数字は何か。
Solution解答
Since this is base 7, we need only 7 symbols: 0, 1, 2, 3, 4, 5, 6.
英語のヒント
これは7進法なので、記号は7つだけ必要である:0、1、2、3、4、5、6。
Example 4.13例題 4.13
Determining Digits of a Base with More Than 10 Digits数字が10個より多い進法の数字を求める
What are the digits used for base 14?
英語のヒント
14進法で使う数字は何か。
Solution解答
Since this is base 14, we need 14 symbols. We don’t have single character numbers for 10, 11, 12, and 13, so, in a fit of inspired creativity, we use capital letters A, B, C, D to represent those quantities. So, the digits in base 14 are 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, A, B, C, D.
英語のヒント
これは14進法なので、14個の記号が必要である。10、11、12、13を表す1文字の数字はないので、ひらめきの創造力を発揮して、大文字A、B、C、Dを使ってそれらの量を表す。よって、14進法の数字は0、1、2、3、4、5、6、7、8、9、A、B、C、Dである。
Example 4.14例題 4.14
Converting from One Base into Anotherある進法から別の進法に変換する
Convert 3,6017 into base 10.
英語のヒント
3,6017を10進法に変換せよ。
Solution解答
In base 7, the place values are powers of 7. Since there are four digits, the highest power of 7 that is used is 3. This yields .
英語のヒント
7進法では、位の値は7の累乗である。数字が4つあるので、使う7の累乗の最大の指数は3である。これでとなる。
Example 4.15例題 4.15
Converting from Base 14 to Base 1014進法から10進法に変換する
Convert 4B714 into base 10.
英語のヒント
4B714を10進法に変換せよ。
Solution解答
In base 14, the place values are powers of 14. Since there are three digits, the highest power of 14 is 2. Also recall that in base 14, 10 is represented by A, 11 is represented by B, 12 is represented by C, and 13 is represented by D. Using that, we convert to base 10:
英語のヒント
14進法では、位の値は14の累乗である。数字が3つあるので、14の累乗の最大の指数は2である。また、14進法では、10はA、11はB、12はC、13はDで表されることを思い出そう。それを使って、10進法に変換する:
.
Example 4.16例題 4.16
Converting from Base 12 to Base 1012進法から10進法に変換する
Convert A1612 into base 10.
英語のヒント
A1612を10進法に変換せよ。
Solution解答
In base 12, the place values are powers of 12. Since there are three digits, the highest power of 12 is 2. Also recall that in base 12, 10 is represented by A and 11 is represented by B. Using that, we convert to base 10:
英語のヒント
12進法では、位の値は12の累乗である。数字が3つあるので、12の累乗の最大の指数は2である。また、12進法では、10はA、11はBで表されることを思い出そう。それを使って、10進法に変換する:
.
Example 4.17例題 4.17
Converting from Base 2 to Base 102進法から10進法に変換する
Convert 10112 into base 10.
英語のヒント
10112を10進法に変換せよ。
Solution解答
In base 2, the place values are powers of 2. Since there are four digits, the highest power of 2 is 3. Using that, we convert to base 10:
英語のヒント
2進法では、位の値は2の累乗である。数字が4つあるので、2の累乗の最大の指数は3である。それを使って、10進法に変換する:
.
Example 4.18例題 4.18
Writing Numbers in Base Systems Other Than Base 1010進法以外の進法で数を書く
Write the numbers in base 7 up to 1007.
英語のヒント
7進法で1007までの数を書け。
Solution解答
Step 1: Using the patterns we indicated earlier, we begin with the first seven digits.
英語のヒント
手順1:前に示したパターンを使って、最初の7つの数字から始める。
Step 2: Since we’ve run out of digits, we start with 10, indicating we’ve run out of symbols once.
英語のヒント
手順2:数字を使い切ったので、記号を1回使い切ったことを示す10から始める。
Step 3: Continuing in the same way, we get:
英語のヒント
手順3:同じように続けると、次のようになる:
Now, all the digits have been used in the leading digits. Since the digits have all been used in that leading digit, we use 100, as in base 10.
英語のヒント
これで、先頭の数字ですべての数字を使った。その先頭の数字ですべての数字を使ったので、10進法と同じように100を使う。
Example 4.19例題 4.19
Writing Numbers in Bases with More Than 10 Symbols記号が10個より多い進法で数を書く
Write the numbers in base 14 up to 10014.
英語のヒント
14進法で10014までの数を書け。
Solution解答
Step 1: Using the patterns we indicated earlier, we begin with the first 14 digits.
英語のヒント
手順1:前に示したパターンを使って、最初の14個の数字から始める。
Step 2: Since we’ve run out of digits, we start with 10, indicating we’ve run out of symbols once.
英語のヒント
手順2:数字を使い切ったので、記号を1回使い切ったことを示す10から始める。
Step 3: Continuing in the same way, we get:
英語のヒント
手順3:同じように続けると、次のようになる:
A0, A1, A2, A3, A4, A5, A6, A7, A8, A9, AA, AB, AC, AD
英語のヒント
A0、A1、A2、A3、A4、A5、A6、A7、A8、A9、AA、AB、AC、AD
B0, B1, B2, B3, B4, B5, B6, B7, B8, B9, BA, BB, BC, BD
英語のヒント
B0、B1、B2、B3、B4、B5、B6、B7、B8、B9、BA、BB、BC、BD
C0, C1, C2, C3, C4, C5, C6, C7, C8, C9, CA, CB, CC, CD
英語のヒント
C0、C1、C2、C3、C4、C5、C6、C7、C8、C9、CA、CB、CC、CD
D0, D1, D2, D3, D4, D5, D6, D7, D8, D9, DA, DB, DC, DD
英語のヒント
D0、D1、D2、D3、D4、D5、D6、D7、D8、D9、DA、DB、DC、DD
Base 2 is important in the digital age, as it is the system used by computers. It is the simplest base to work with, but has the drawback that the numbers in base 2 may use many, many digits. In Addition and Subtraction in Base Systems and Multiplication and Division in Base Systems, we will look at base 2 in each situation.
英語のヒント
2進法は、コンピュータが使う体系なので、デジタル時代に重要である。いちばん扱いやすい底だが、2進法の数はとてもたくさんの数字を使うことがあるという欠点がある。いろいろな進法での足し算と引き算といろいろな進法でのかけ算と割り算では、それぞれの場面で2進法を見ていく。
Example 4.20例題 4.20
Writing Numbers in Base 22進法で数を書く
Write the numbers in base 2 up to 1002.
英語のヒント
2進法で1002までの数を書け。
Solution解答
Base 2 uses only two symbols: 0 and 1. Following the pattern established previously, the numbers in base 2 up to 1002 are 0, 1, 10, 11, and 100.
英語のヒント
2進法では2つの記号だけを使う:0と1。前に確かめたパターンに従うと、2進法で1002までの数は0、1、10、11、100である。