pgdc(a, b) = pgdc(b, a)
pgdc(a, b, c) = pgdc(pgdc(a, b), c)
c|ab pgdc(a, c) = 1 =⇒c|b
a|c b |cpgdc(a, b) = 1 =⇒ab |c
d= pgdc(a, b)x y
a=xd b =yd ppmc(a, b) = xyd
a, b ab m
a b m
a=pα1
1pα2
2· · · pαr
rb=pβ1
1pβ2
2· · · pβr
r
a b pkαk, βk≥0
pgdc(a, b) = pmin{α1,β1}
1pmin{α2,β2}
2· · · pmin{αr,βr}
r
ppmc(a, b) = pmax{α1,β1}
1pmax{α2,β2}
2· · · pmax{αr,βr}
r
min{x, y}+max{x, y}=x+y
pgdc(a, b)·ppmc(a, b) = ab.
95 m n
pgdc(m, n) + ppmc(m, n) = m+n.
d m n m =ad, n =
bd ppmc(m, n) = abd
d+abd =ad +bd d(ab −a−b+ 1) = 0
d(a−1)(b−1) = 0 a= 1 b= 1
m=d m |n n |m
a, b n
(a, b)=(a, b +na).
n=±1
c a b c b ±a(a, b)|(a, b ±a)
c a b +a b −a
c(b+a)−a=b(b−a) + a=b
(a, b ±a)|(a, b)