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

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

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

4.1 DIVISIBILITY 105<br />

(4.8) works also when n is negative. (In such cases, the nonzero terms on the<br />

right occur when k is the negative of a divisor of n.)<br />

Moreover, a double sum over divisors can be “interchanged” by the law<br />

t x ak,m = x x ak,kl .<br />

m\n k\m k\n L\in/kl<br />

For example, this law takes the following <strong>for</strong>m when n = 12:<br />

al,1 + (al.2 + a2,2) + (al,3 + a3,3)<br />

+ fall4 + a2,4 + a4,4) + (al.6 + a2,6 + a3,6 + a6,6)<br />

+ tal,12 + a2,l2 + a&12 + a4,12 + a6,12 + a12,12)<br />

= tal.l + al.2 + al.3 + al.4 + al,6 + al.12)<br />

+ ta2,2 + a2.4 + a2,6 + a&12) + (a3,3 + as,6 + CQ12)<br />

+ tad,4 $- q12) + (a6,6 + a6,12) + a12,12.<br />

(4.9)<br />

We can prove (4.9) with Iversonian manipulation. The left-hand side is<br />

x x ak.,[n=iml[m=kll = 7 y ak,kt[n=Ml;<br />

i,l k,m>O j k,1>0<br />

the right-hand side is<br />

x t ok.k~[n=jkl[n/k=mll = t t ak,kt[n=mlkl,<br />

j,m k,l>O m k.1>0<br />

which is the same except <strong>for</strong> renaming the indices. This example indicates<br />

that the techniques we’ve learned in Chapter 2 will come in handy as we study<br />

number theory.<br />

4.2 PRIMES<br />

A positive integer p is called prime if it has just two divisors, namely<br />

1 and p. Throughout the rest of this chapter, the letter p will always stand<br />

How about the p in <strong>for</strong> a prime number, even when we don’t say so explicitly. By convention,<br />

‘explicitly’? 1 isn’t prime, so the sequence of primes starts out like this:<br />

2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, .,<br />

Some numbers look prime but aren’t, like 91 (= 7.13) and 161 (= 7.23). These<br />

numbers and others that have three or more divisors are called composite.<br />

Every integer greater than 1 is either prime or composite, but not both.<br />

Primes are of great importance, because they’re the fundamental building<br />

blocks of all the positive integers. Any positive integer n can be written as a

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

Saved successfully!

Ooh no, something went wrong!