因数分解で大変過ぎたら試したい…じつに「簡単で、しかも確実」に最大公約数を求められる「驚きの方法」

最後の余りが最大公約数になる理由

この理由は次のように説明できます。

385と105の最大公約数をnとしましょう。

385=n×a 105=n×b とすると

1. 式より、n×a=n×b×3+70 ⇔ n× (a−3b) =70

このことより、nは70の約数にもなります。

2. 式より、n×b=n×(a−3b)×1+35 ⇔ n (4b−a)= 35

このことより、nは35の約数にもなります。1.と2.の式より、nは70と35の公約数になります。

3. 式より、70は35で割り切れてしまいますので、70と35の最大公約数は35ですので、n=35となります。

こうして、求める最大公約数はn=35というわけです。

以上で行ったプロセスをユークリッド互除法と呼んでいます。これは、分数を生みだす原理でもありました。

ユークリッド互除法は、分数を生みだす原理でもあるユークリッド互除法は、分数を生みだす原理でもある photo by gettyimages

分数では、基準1と与えられた数との共通尺度を求める方法でしたが、ここでは与えられた二つの数(自然数)の共通因数を求める方法にもなるわけです。つまり、2数の最大公約数を求める方法の一つでもあるのです。

.navContents .navContents_genre ul li:nth-child(1){ background-image: url(https://gendai-m.ismcdn.jp/mwimgs/b/5/-/img_b5e617833eedeaae7025842662ab132b647.png); } .navContents .navContents_genre ul li:nth-child(2){ background-image: url(https://gendai-m.ismcdn.jp/mwimgs/2/5/-/img_2540ff88c35e25062301549b5eb16b52324.png); } .navContents .navContents_genre ul li:nth-child(3){ background-image: url(https://gendai-m.ismcdn.jp/mwimgs/a/7/-/img_a7ba7310c85ff6d811201aa807669020476.png); } .navContents .navContents_genre ul li:nth-child(4){ background-image: url(https://gendai-m.ismcdn.jp/mwimgs/e/b/-/img_eb63fc75c067be2b4e346d1177dd646b453.png); } .navContents .navContents_genre ul li:nth-child(5){ background-image: url(https://gendai-m.ismcdn.jp/mwimgs/a/b/-/img_abe953ea8bbeca517ca1c1e8aea20264478.png); } .navContents .navContents_genre ul li:nth-child(6){ background-image: url(https://gendai-m.ismcdn.jp/mwimgs/4/4/-/img_44a09474c6909310bd77737b2cf0d164611.png); } .navContents .navContents_genre ul li:nth-child(7){ background-image: url(https://gendai-m.ismcdn.jp/mwimgs/0/a/-/img_0a2be7b2a33731b20cea2350fd4ae90a628.png); } .navContents .navContents_genre ul li:nth-child(8){ background-image: url(https://gendai-m.ismcdn.jp/mwimgs/7/e/-/img_7e673dc9fefd51d9536a14475d3d9aee610.png); } .navContents .navContents_genre ul li:nth-child(9){ background-image: url(https://gendai-m.ismcdn.jp/mwimgs/a/f/-/img_af821209af9c81edad6dc63aa854b0fb368.png); } .navContents .navContents_genre ul li:nth-child(10){ background-image: url(https://gendai-m.ismcdn.jp/mwimgs/f/0/-/img_f072464bf99bcf4d42f011c34e4f8de1479.png); } .navContents .navContents_genre ul li:nth-child(11){ background-image: url(https://gendai-m.ismcdn.jp/mwimgs/d/a/-/img_da7b1bac2e3db43a4d2760193fcfa9d8558.png); } .navContents .navContents_genre ul li:nth-child(12){ background-image: url(https://gendai-m.ismcdn.jp/mwimgs/4/3/-/img_435be9c5b352044abf14eecffa80b28d542.png); } .navContents .navContents_genre ul li:nth-child(13){ background-image: url(); } .navContents .navContents_genre ul li:nth-child(14){ background-image: url(); } .navContents .navContents_genre ul li:nth-child(15){ background-image: url(https://gendai-m.ismcdn.jp/mwimgs/a/b/-/img_ab53ea5ead6f29fedf249c9d00da02ca567.png); }
  • 【新刊案内】学びなおし! 数学
  • 【新刊案内】大陸の誕生