We use cookies to remember your preferences and, with your consent, to serve personalized ads via Google AdSense and collect anonymous analytics. Learn more
Find Greatest Common Divisor and Least Common Multiple
Formula
GCD (Euclidean Algorithm): gcd(a, b) = gcd(b, a mod b) until b = 0, then a is the GCD.
LCM: lcm(a, b) = |a × b| / gcd(a, b)
For multiple numbers: GCD and LCM are applied iteratively.