Metamath Proof Explorer


Theorem gcdadd

Description: The GCD of two numbers is the same as the GCD of the left and their sum. (Contributed by Scott Fenton, 20-Apr-2014)

Ref Expression
Assertion gcdadd MNMgcdN=MgcdN+M

Proof

Step Hyp Ref Expression
1 1z 1
2 gcdaddm 1MNMgcdN=MgcdN+1 M
3 1 2 mp3an1 MNMgcdN=MgcdN+1 M
4 zcn MM
5 mullid M1 M=M
6 5 oveq2d MN+1 M=N+M
7 6 oveq2d MMgcdN+1 M=MgcdN+M
8 4 7 syl MMgcdN+1 M=MgcdN+M
9 8 adantr MNMgcdN+1 M=MgcdN+M
10 3 9 eqtrd MNMgcdN=MgcdN+M