06.03.2017 Views

Mathematics for Computer Science

e9ck2Ar

e9ck2Ar

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

“mcs” — 2017/3/3 — 11:21 — page 336 — #344<br />

336<br />

Chapter 9<br />

Number Theory<br />

To see how to update the coefficients when at least one of a and b is odd and<br />

ua C vb is even, show that either u and v are both even, or else u b and v C a<br />

are both even.<br />

Problem 9.18.<br />

For any set A of integers,<br />

gcd.A/ WWD the greatest common divisor of the elements of A.<br />

The following useful property of gcd’s of sets is easy to take <strong>for</strong> granted:<br />

Theorem.<br />

<strong>for</strong> all finite sets A; B Z.<br />

gcd.A [ B/ D gcd.gcd.A/; gcd.B//;<br />

(AuB)<br />

The theorem has an easy proof as a Corollary of the Unique Factorization Theorem.<br />

In this problem we develop a proof by induction of Theorem (AuB) just<br />

making repeated use of Lemma 9.2.6.b :<br />

.d j a AND d j b/ IFF d j gcd.a; b/: (gcddiv)<br />

The key to proving (AuB) will be generalizing (gcddiv) to finite sets.<br />

Definition. For any subset A Z,<br />

d j A WWD 8a 2 A: d j a:<br />

Lemma.<br />

d j A IFF d j gcd.A/:<br />

<strong>for</strong> all d 2 Z and finite sets A Z.<br />

(divdef)<br />

(dAdgA)<br />

(a) Prove that<br />

gcd.a; gcd.b; c// D gcd.gcd.a; b/; c/<br />

(gcd-associativity)<br />

<strong>for</strong> all integers a; b; c.<br />

From here on we write “a [ A” as an abbreviation <strong>for</strong> “fag [ A.”<br />

(b) Prove that<br />

d j .a [ b [ C / IFF d j .gcd.a; b/ [ C /<br />

<strong>for</strong> all a; b; d 2 Z, and C Z.<br />

(abCgcd)

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!