方程式を入力してください
カメラ入力が識別されません!

解答 - 整数論計算機

手順を追って説明

1. Identify the problem

Find gcd(314159265,1000000) using the Extended Euclidean Algorithm.

gcd(314159265,1000000)

2. Apply the Euclidean algorithm

314159265 = 1000000*314 + 159265

1000000 = 159265*6 + 44410

159265 = 44410*3 + 26035

44410 = 26035*1 + 18375

26035 = 18375*1 + 7660

18375 = 7660*2 + 3055

7660 = 3055*2 + 1550

3055 = 1550*1 + 1505

1550 = 1505*1 + 45

1505 = 45*33 + 20

45 = 20*2 + 5

20 = 5*4 + 0

gcd(314159265,1000000)=5

3. Back-substitute to find coefficients

gcd(314159265,1000000) = 5.

Bezout coefficients: 314159265*(44517) + 1000000*(-13985428) = 5.

314159265⋅(44517)+1000000⋅(−13985428)=5

4. Verify the result

314159265*(44517) + 1000000*(-13985428) = 5 = 5. Verified.

なぜこれを学ぶのか

Tigerでさらに学ぶ
Number theory underlies cryptography, coding theory, and many competitive programming problems.

用語とトピック

最新の関連ドリル解答