Email or username:

Password:

Forgot your password?
Devil Lu Linvega

For two (positive) integers N and M, the properties of their greatest common divisor gcd() and the least common multiple lcm() come in pairs; the phenomenon is partly explained by the formula gcd(M, N) × lcm(M, N) = M × N. 🤯

6 comments
curved-ruler

@neauoire of course just think about the prime factorization of M and N

Kartik Agaram

@neauoire I can't believe I didn't learn this in school..

Leon

@neauoire Are you familiar with how positive integers can be written in the form M = p1^e1 * p2^e2 * ... and N = p1^f1 * p2^f2 * ... where p1, p2, ... are the primes?

A related equation is min(M, N) + max(M, N) = M + N.

If we look at a single prime pi, its exponent is
min(ei, fi) in gcd(M, N),
max(ei, fi) in lcm(M, N)
ei +fi in M*N.

For example with M = 4 = 2^2 * 3^0 and N = 6 = 2^1 * 3^1:

gcd(M, N) = 2 = 2^1 * 3^0
lcm(M, N) = 12 = 2^2 * 3^1
M * N = 24 = 2^(2 + 1) * 3^(0 + 1)

@neauoire Are you familiar with how positive integers can be written in the form M = p1^e1 * p2^e2 * ... and N = p1^f1 * p2^f2 * ... where p1, p2, ... are the primes?

A related equation is min(M, N) + max(M, N) = M + N.

If we look at a single prime pi, its exponent is
min(ei, fi) in gcd(M, N),
max(ei, fi) in lcm(M, N)
ei +fi in M*N.

Go Up