免费最大公约数计算器

求两个整数的最大公约数,显示辗转相除法步骤。

Gcd Val

12

最小公倍数144
A Div4
B Div3

公式

## Greatest Common Divisor (GCD) ### Definition The GCD of two numbers is the largest positive integer that divides both numbers evenly. ### Euclidean Algorithm 1. Divide the larger number by the smaller 2. Replace the larger number with the remainder 3. Repeat until the remainder is 0 4. The last nonzero remainder is the GCD ### Relationship with LCM **LCM(a, b) = |a × b| / GCD(a, b)**

计算示例

Find GCD(48, 36).

  1. 0148 = 1 × 36 + 12
  2. 0236 = 3 × 12 + 0
  3. 03GCD = 12
  4. 04LCM = (48 × 36) / 12 = 144

常见问题

What is the GCD?

The greatest common divisor (also called highest common factor or HCF) is the largest number that divides two numbers without leaving a remainder.

How is GCD used?

GCD is used to simplify fractions (divide numerator and denominator by their GCD), solve Diophantine equations, and in cryptography (RSA algorithm).

What if one number is zero?

GCD(a, 0) = a for any positive integer a. The GCD of zero and any number is that number itself.

学习

How to Calculate Percentages - Complete Guide

相关计算器