22.02.2014 Views

Discrete Mathematics University of Kentucky CS 275 Spring ... - MGNet

Discrete Mathematics University of Kentucky CS 275 Spring ... - MGNet

Discrete Mathematics University of Kentucky CS 275 Spring ... - MGNet

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Definition: If a,b,Z and a-0, we say that a divides b if )c,Z(b=ac), denoted by<br />

a | b. When a divides b, we denote a as a factor <strong>of</strong> b and b as a multiple <strong>of</strong> a.<br />

When a does not divide b, we denote this as a/|b.<br />

Theorem: Let a,b,c,Z. Then<br />

1. If a | b and a | c, then a | (b+c).<br />

2. If a | b, then a | (bc).<br />

3. If a | b and b | c, then a | c.<br />

Pro<strong>of</strong>: Since a | b, )s,Z(b=as).<br />

1. Since a | c it follows that ) t,Z(c=at). Hence, b+c = as + at = a(s+t).<br />

Therefore, a | (b+c).<br />

2. bc = (as)c = a(sc). Therefore, a | (bc).<br />

3. Since b | c it follows that ) t,Z(c=bt). c = bt = (as)t = a(st), Therefore, a | c.<br />

Corollary: Let a,b,c,Z. If a | b and b | c, then a | (mb+nc) for all m,n,Z.<br />

49<br />

Theorem (Division Algorithm): Let a,d,Z(d > 0). Then )!q,r,Z(a = dq+r).<br />

Definition: In the division algorithm, a is the dividend, d is the divisor, q is the<br />

quotient, and r is the remainder. We write q = a div d and r = a mod d.<br />

Examples:<br />

• Consider 101 divided by 9: 101 = 11$9 + 2.<br />

• Consider -11 divided by 3: -11 = 3(-4) + 1.<br />

Definition: Let a,b,m,Z(m > 0). Then a is congruent to b modulo m if m | (a-b),<br />

denoted a ' b (mod m). The set <strong>of</strong> integers congruent to an integer a modulo m<br />

is called the congruence class <strong>of</strong> a modulo m.<br />

Theorem: Let a,b,m,Z(m > 0). Then a ' b (mod m) if and only if a mod m = b<br />

mod m.<br />

50

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

Saved successfully!

Ooh no, something went wrong!