Metamath Proof Explorer


Theorem lcmgcdnn

Description: The product of two positive integers' least common multiple and greatest common divisor is the product of the two integers. (Contributed by AV, 27-Aug-2020)

Ref Expression
Assertion lcmgcdnn M N M lcm N M gcd N = M N

Proof

Step Hyp Ref Expression
1 nnz M M
2 nnz N N
3 lcmgcd M N M lcm N M gcd N = M N
4 1 2 3 syl2an M N M lcm N M gcd N = M N
5 nnmulcl M N M N
6 5 nnnn0d M N M N 0
7 nn0re M N 0 M N
8 nn0ge0 M N 0 0 M N
9 7 8 jca M N 0 M N 0 M N
10 absid M N 0 M N M N = M N
11 6 9 10 3syl M N M N = M N
12 4 11 eqtrd M N M lcm N M gcd N = M N