Metamath Proof Explorer


Theorem divgcdnnr

Description: A positive integer divided by the gcd of it and another integer is a positive integer. (Contributed by AV, 10-Jul-2021)

Ref Expression
Assertion divgcdnnr A B A B gcd A

Proof

Step Hyp Ref Expression
1 nnz A A
2 gcdcom A B A gcd B = B gcd A
3 1 2 sylan A B A gcd B = B gcd A
4 3 eqcomd A B B gcd A = A gcd B
5 4 oveq2d A B A B gcd A = A A gcd B
6 divgcdnn A B A A gcd B
7 5 6 eqeltrd A B A B gcd A