📐

GCD and LCM

★☆☆☆☆Elementary

📖Definition

GCD (Greatest Common Divisor) is the largest number that divides both numbers. LCM (Least Common Multiple) is the smallest number divisible by both.

📐Formulas

gcd(a, b) × lcm(a, b) = a × b

Relationship between GCD and LCM

gcd(a, b) = gcd(b, a mod b)

Euclidean algorithm

✏️Examples

예제 1☆☆☆☆

Find GCD(24, 36) and LCM(24, 36).

예제 2★★☆☆☆

Find GCD(48, 18) using Euclidean algorithm.

Applications

Fractions

Simplifying, finding common denominators

Scheduling

Synchronizing periodic events

Cryptography

RSA key generation

🔗Related Documents

Prerequisites

Next Topics

#number#fundamental#gcd#lcm#elementary