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.9 PHI AND MU 139<br />

= x f(x/m) x p(d) = x f(x/m)[m=l] = f(x).<br />

m>l d\m lll>l<br />

The proof in the other direction is essentially the same.<br />

So now we can solve the recurrence (4.60) <strong>for</strong> a(x):<br />

D,(x) = ; x Ad) lx/d.lll + x/d1<br />

d>l<br />

This is always a finite sum. For example,<br />

Q(12) = ;(12.13-6.7-4.5+0-2.3+2.3<br />

-1~2+0+0+1~2-1~2+0)<br />

ZI 78-21-10-3+3-1+1-l = 46.<br />

(4.62)<br />

In Chapter 9 we’ll see how to use (4.62) to get a good approximation to m(x);<br />

in fact, we’ll prove that<br />

Q(x) = -$x2 + O(xlogx).<br />

There<strong>for</strong>e the function O(x) grows “smoothly”; it averages out the erratic<br />

behavior of cp(k).<br />

In keeping with the tradition established last chapter, let’s conclude this<br />

chapter with a problem that illustrates much of what we’ve just seen and that<br />

also points ahead to the next chapter. Suppose we have beads of n different<br />

colors; our goal is to count how many different ways there are to string them<br />

into circular necklaces of length m. We can try to “name and conquer” this<br />

problem by calling the number of possible necklaces N (m, n).<br />

For example, with two colors of beads R and B, we can make necklaces<br />

of length 4 in N (4,2) = 6 different ways:<br />

f-R\ /R\ fR\ c-R\ /R-\ c-B><br />

RR RR RB BB BB BB<br />

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

Saved successfully!

Ooh no, something went wrong!