Sep 16-20
Proposition: (2.29, page 34) Suppose \(b\not=0\). An integer \(d\) is the greatest common divisor of \(a\) and \(b\) if and only if
Proof: First suppose that these three conditions are true. Then \(d\) is a common divisor, and by Proposition 2.1 (iv), if \(r\) is any other common divisor of \(a\) and \(b\), then \(r|d\) so \(|r|\le d\). So \(d\) is the greatest common divisor.
Now suppose \(d\) is the greatest common divisor of \(a\) and \(b\). Then \(d\ge 0\) and \(d\) is a common divisor, so we just need to check the third condition. By the extended euclidean algorithm there are \(x\) and \(y\) so that \(ax+by=d\). By Proposition 2.1 (ii), any common divisor of \(a\) and \(b\) divides \(ax+by=d\), as we wanted to show.
Definition: A common multiple of two integers \(a\) and \(b\), with \(b\not=0\), is any integer \(m\) such that \(a|m\) and \(b|m\). The least common multiple of \(a\) and \(b\) is the smallest positive integer which is a common multiple of \(a\) and \(b\).
Theorem: The lcm of \(a\) and \(b\) is |ab/g| where \(g\) is the gcd of \(a\) and \(b\).
Proof: We can assume \(a\) and \(b\) are non-negative as this does not affect the lcm. Because \(g\) divides both \(a\) and \(b\), we have \(ab/g=a(b/g)=b(a/g)\) so \(ab/g\) is an integer and it is a common multiple of \(a\) and \(b\). Now let \(t\) be any common multiple of \(a\) and \(b\). Find \(x\) and \(y\) so that \(ax+by=g\). Then \(tax+tby=tg\). Since \(t\) is a common multiple of \(a\) and \(b\), we have \(tax\) and \(tby\) are both multiples of \(ab\). So \(tax+tby=abs\) for some integer \(s\). We conclude that \(t=(ab/g)s\), so that \(t\) is a multiple of \(ab/g\). This means \(t\ge (ab/g)\) so \(ab/g\) must be the least common multiple.
A diophantine equation is an equation where the variables are restricted to integer values.
A linear diophantine equation in one variable is of the form \[ ax=b \] where \(a\) and \(b\) are integers and we want \(x\) to be an integer. Clearly this has a solution exactly when \(a|b\).
A linear diophantine equation in two variables is an equation of the form \[
ax+by=c
\] where \(a\), \(b\), and \(c\) are integers.
Solving such an equation means finding integers \(x\) and \(y\) that satisfy the condition.
Theorem:
The linear diophantine equation \(ax+by=c\) has a solution if and only if \(\mathrm{gcd}(a,b)|c\).
If \(x_0\), \(y_0\) is one solution to the equation, and \(x\) and \(y\) is any other solution, then there exists an integer \(n\) so that \[ x=x_0+n\frac{b}{d}\mathrm{\ \ and\ \ }y=y_0-n\frac{a}{d} \]