09.12.2012 Views

Concrete mathematics : a foundation for computer science

Concrete mathematics : a foundation for computer science

Concrete mathematics : a foundation for computer science

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

4<br />

Number Theory<br />

INTEGERS ARE CENTRAL to the discrete <strong>mathematics</strong> we are emphasizing<br />

in this book. There<strong>for</strong>e we want to explore the theory of numbers, an<br />

important branch of <strong>mathematics</strong> concerned with the properties of integers.<br />

We tested the number theory waters in the previous chapter, by introducing<br />

binary operations called ‘mod’ and ‘gcd’. Now let’s plunge in and<br />

really immerse ourselves in the subject.<br />

4.1 DIVISIBILITY<br />

We say that m divides n (or n is divisible by m) if m > 0 and the<br />

ratio n/m is an integer. This property underlies all of number theory, so it’s<br />

convenient to have a special notation <strong>for</strong> it. We there<strong>for</strong>e write<br />

m\n ++ m > 0 and n = mk <strong>for</strong> some integer k. (4.1)<br />

(The notation ‘mln’ is actually much more common than ‘m\n’ in current<br />

<strong>mathematics</strong> literature. But vertical lines are overused-<strong>for</strong> absolute values,<br />

set delimiters, conditional probabilities, etc. -and backward slashes are<br />

underused. Moreover, ‘m\n’ gives an impression that m is the denominator of<br />

an implied ratio. So we shall boldly let our divisibility symbol lean leftward.)<br />

If m does not divide n we write ‘m!qn’.<br />

There’s a similar relation, “n is a multiple of m,” which means almost<br />

the same thing except that m doesn’t have to be positive. In this case we<br />

simply mean that n = mk <strong>for</strong> some integer k. Thus, <strong>for</strong> example, there’s only<br />

one multiple of 0 (namely 0), but nothing is divisible by 0. Every integer is<br />

a multiple of -1, but no integer is divisible by -1 (strictly speaking). These<br />

definitions apply when m and n are any real numbers; <strong>for</strong> example, 271 is<br />

divisible by 7~. But we’ll almost always be using them when m and n are<br />

integers. After all, this is number theory.<br />

102<br />

In other words, be<br />

prepared to drown.<br />

‘I no integer is<br />

dksible by -1<br />

(strictly speaking).”<br />

-Graham, Knuth,<br />

and Patashnik [131]

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

Saved successfully!

Ooh no, something went wrong!