プリンキピア

第3章実数の体系と数論

Finding the Greatest Common Divisor最大公約数を求める

Two numbers often have more than one divisor in common (all pairs of natural numbers have the common divisor 1). When listing the common divisors, it’s often the case that the largest is of interest. This divisor is called the greatest common divisor and is denoted GCD. It is also sometimes referred to as the greatest common factor (GCF).
英語のヒント
2つの数は、共通の約数を2つ以上持つことが多い(自然数のどの組も共通の約数1を持つ)。共通の約数を書き並べると、その中で最も大きいものに関心が向くことが多い。この約数を最大公約数と呼び、GCDで表す。最大公因数(GCF)と呼ばれることもある。
For instance, 6 is the greatest common divisor of 12 and 18. We can see this by listing all the divisors of each number and, by inspection, select the largest value that shows up in each list.
英語のヒント
たとえば、6は12と18の最大公約数である。これは、それぞれの数のすべての約数を書き並べ、見比べて、どちらの一覧にも出てくる最も大きい値を選ぶとわかる。
The divisors of 1212の約数1, 2, 3, 4, 6, 12
The divisors of 1818の約数1, 2, 3, 6, 9
It is easy to see that 6 is the largest value that appears in both lists.
英語のヒント
6がどちらの一覧にも出てくる最も大きい値であることは、すぐにわかる。
Example 3.15例題 3.15

Finding the Greatest Common Divisor Using Lists一覧を使って最大公約数を求める

Find the greatest common divisor of 1,400 and 250 by listing all divisors of each number.
英語のヒント
それぞれの数のすべての約数を書き並べて、1,400と250の最大公約数を求めよ。
Solution解答
We create a list of all the divisors of 1,400 and of 250, and choose the largest one.
英語のヒント
1,400と250のすべての約数の一覧を作り、最も大きいものを選ぶ。
The divisors of 1,400 are
英語のヒント
1,400の約数は
1, 2, 4, 5, 7, 8, 10, 14, 20, 25, 28, 35, 40, 50, 56, 70, 100, 140, 175, 200, 280, 350, 700, 1,400.
The divisors of 250 are
英語のヒント
250の約数は
1, 2, 5, 10, 25, 50, 125, 250.
The largest value that appears on both lists is 50, so the greatest common divisor of 1,400 and 250 is 50.
英語のヒント
両方の一覧に出てくる最も大きい値は50なので、1,400と250の最大公約数は50である。
Listing all the divisors of the numbers in the set will always work, but for some relatively small numbers, the set of all divisors can become pretty big, and finding them all can be a chore. Another approach to finding the greatest common divisor is to use the prime factorization of the numbers. To do so, use the following steps:
英語のヒント
集合の数の約数をすべて書き並べればいつでも求められるが、比較的小さな数でも約数全体の集合はかなり大きくなりえ、それを全部見つけるのは骨の折れる仕事になりうる。最大公約数を求める別の方法は、数の素因数分解を使うことである。そのためには、次の手順を使う。
Step 1: Find the prime factorization of the numbers.
英語のヒント
手順1:数の素因数分解を求める。
Step 2: Identify the prime factors that appear in every number’s prime factorization. These are called the common prime factors.
英語のヒント
手順2:どの数の素因数分解にも出てくる素因数を見つける。これらを共通の素因数と呼ぶ。
Step 3: Identify the smallest exponent of each prime factor identified in Step 2 in the prime factorizations.
英語のヒント
手順3:手順2で見つけた各素因数について、素因数分解の中での最も小さい指数を見つける。
Step 4: Multiply the prime factors identified in Step 2 raised to the powers identified in Step 3. The result is the greatest common divisor.
英語のヒント
手順4:手順2で見つけた素因数を、手順3で見つけた指数で累乗して掛け合わせる。その結果が最大公約数である。
Example 3.16例題 3.16

Finding the Greatest Common Divisor Using Prime Factorization素因数分解を使って最大公約数を求める

Find the greatest common divisor of 1,400 and 250 by using their prime factorizations.
英語のヒント
1,400と250の素因数分解を使って、その最大公約数を求めよ。
Solution解答
Step 1: Find the prime factorizations of the numbers.
英語のヒント
手順1:数の素因数分解を求める。
The prime factorization of 1,400 is 23×52×7.
英語のヒント
1,400の素因数分解は23×52×7である。
The prime factorization of 250 is 250=2×53.
英語のヒント
250の素因数分解は250=2×53である。
Step 2: Identify the prime factors that appear in every number’s prime factorization.
英語のヒント
手順2:どの数の素因数分解にも出てくる素因数を見つける。
The common prime factors are 2 and 5.
英語のヒント
共通の素因数は2と5である。
Step 3: Identify the smallest exponent of each prime identified in Step 2 in the prime factorizations.
英語のヒント
手順3:手順2で見つけた各素数について、素因数分解の中での最も小さい指数を見つける。
The exponent of common prime factor 2 in the prime factorization of 1,400 is 3, and in the prime factorization of 250 is 1. The smallest of those exponents is 1.
英語のヒント
共通の素因数2の指数は、1,400の素因数分解では3、250の素因数分解では1である。これらの指数のうち最も小さいのは1である。
The exponent of the common prime factor 5 in the prime factorization of 1,400 is 2 and is in the prime factorization of 250 is 3. The smallest of these exponents is 2.
英語のヒント
共通の素因数5の指数は、1,400の素因数分解では2、250の素因数分解では3である。これらの指数のうち最も小さいのは2である。
Step 4: Multiply the prime factors identified in Step 2 raised to the powers identified in Step 3.
英語のヒント
手順4:手順2で見つけた素因数を、手順3で見つけた指数で累乗して掛け合わせる。
This gives 21×52=50. The greatest common divisor of 1,400 and 250 is 2×52=50.
英語のヒント
これで21×52=50が得られる。1,400と250の最大公約数は2×52=50である。
Notice that the answer matches the one we found in Example 3.15.
英語のヒント
この答えが、例題3.15で求めたものと一致することに注意しよう。
Example 3.17例題 3.17

Finding the Greatest Common Divisor Using Prime Factorization素因数分解を使って最大公約数を求める

Find the greatest common divisor of 600 and 784 by using their prime factorizations.
英語のヒント
600と784の素因数分解を使って、その最大公約数を求めよ。
Solution解答
Step 1: Find the prime factorizations of the numbers.
英語のヒント
手順1:数の素因数分解を求める。
The prime factorization of 600 is 23×3×52.
英語のヒント
600の素因数分解は23×3×52である。
The prime factorization of 784 is 24×72.
英語のヒント
784の素因数分解は24×72である。
Step 2: Identify the prime factors that appear in every number’s prime factorization.
英語のヒント
手順2:どの数の素因数分解にも出てくる素因数を見つける。
There is only one common prime factor, 2.
英語のヒント
共通の素因数は2の一つだけである。
Step 3: Identify the smallest exponent of each prime from identified in Step 2 in the prime factorizations.
英語のヒント
手順3:手順2で見つけた各素数について、素因数分解の中での最も小さい指数を見つける。
The exponent of 2 in the prime factorization of 600 is 3. The exponent of 2 in the prime factorization of 784 is 4. So, the smallest exponent of 2 is 3.
英語のヒント
2の指数は、600の素因数分解では3、784の素因数分解では4である。よって、2の最も小さい指数は3である。
Step 4: Multiply the prime factors identified in Step 2 raised to the powers identified in Step 3.
英語のヒント
手順4:手順2で見つけた素因数を、手順3で見つけた指数で累乗して掛け合わせる。
This gives 23=8. The greatest common divisor of 600 and 784 is 8.
英語のヒント
これで23=8が得られる。600と784の最大公約数は8である。