延伸式歐克里德算法計算器
找到兩個數字的 gcd, lcm 和 Bézout 分子.
在您的瀏覽器中執行。您的檔案不會離開裝置。 瞭解如何驗證
…
使用方法
- 1第1步:開啟延伸式歐克里德算法計算器並輸入內容
輸入數字或文字、新增檔案,或選擇所需選項。不會上傳任何內容:一切都保留在您的瀏覽器中。
- 2第2步:延伸式歐克里德算法計算器能做什麼
找到兩個數字的 gcd, lcm 和 Bézout 分子.
- 3第3步:查看結果並比較
結果會立即顯示。更改一個數值,看看答案如何變化,然後保留符合您情況的數字。
- 4第4步:複製或儲存
複製結果或下載。做重要決定前,請向官方來源或專業人士確認。
關於此工具
Enter two non-negative integers. The calculator shows every step of the Euclidean algorithm, the greatest common divisor, the least common multiple and the Bézout coefficients x and y with a·x + b·y = gcd(a, b).
歐克里德的算法
Repeatedly divide: a = q·b + r, then replace (a, b) by (b, r) until r = 0. The last non-zero remainder is the gcd. Working backwards (or tracking coefficients) gives x and y.
使用方式
The coefficients give the modular inverse: if gcd(a, m) = 1 then x is the inverse of a mod m. lcm = |a·b| ÷ gcd. Whole numbers of any size are accepted (exact big-integer arithmetic).
計算示例
gcd(240, 46) = 2 and −9 × 240 + 47 × 46 = 2. The lcm is 5,520. It takes 5 division steps.
獲得最佳結果的提示
在相信結果之前先檢查每一個輸入項,因為一個錯誤的數字就會改變整個答案。請使用工資單、賬單、證書或合同上的準確數字,並記下計算日期。稅率、門檻和規則會不時變化,因此對於稅費和法律事務,請將結果視為估算,並與本頁註明的官方來源核對。您可以嘗試任意多個方案;不會儲存或傳送任何內容,重新整理頁面會清空輸入。
要點
- 分類: 數學與科學
- 在瀏覽器中執行,無需註冊,無需上傳。
- 您輸入的資訊保留在裝置上。
- 提供多種語言。
- 內容最後稽核日期:
常見問題
什麼是貝蘇系數?
Integers x and y with a·x + b·y = gcd(a, b).
他們是獨特的嗎?
該工具顯示算法中的標準對.
請問我可以輸入負數嗎?
沒有,使用非負整數; gcd總是正的.
這在密碼學中是如何使用的?
來計算RSA的模組反向值.
