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.

A ANSWERS TO EXERCISES 521<br />

times 2 divides k!. A prime p that does not divide n must divide the prod-<br />

uc;-tL;)-n)...(m-(k-l) n ) 1 at eas tas<br />

often as it divides k!, because<br />

. ..(m-(p’-1) n )’ 1s a multiple of p’ <strong>for</strong> all r 3 1 and all m.<br />

5.73 Plugging in X, = n! yields OL = fi = 1; plugging in X, = ni yields<br />

K = 1, 6 = 0. There<strong>for</strong>e the general solution is X, = olni + b(n! - ni).<br />

5.74 (“l’) - (;I:), <strong>for</strong> 1 6 k 6 n.<br />

5.75 Therecurrenc:e Sk(n+l) = Sk(n)+S ik ~~ I ) mod 3 (n) makes it possible to<br />

verify inductively th’at two of the S’s are equal and that .S-,I mod3(n) differs<br />

from them by (-1)“. These three values split their sum So(n) + S1 (n) +<br />

.Sz(n) = 2n as equally as possible, so there must be 2” mod 3 occurrences of<br />

[2”/31 and 3 - (2” mod 3) occurrences of 12”/3J.<br />

5.76 Qn,k = (n f 1 l(c) + (kn+,)’<br />

5.77 The terms are zero unless kl 6 .. < k,, when the product is the<br />

multinomial coefficient<br />

km<br />

( kl, kz - kl, . . . , k, - k,pl > ’<br />

There<strong>for</strong>e the sum over kl , . . . , k,-l is mkm , and the final sum over k, yields<br />

( mn+’ - l)/(m- 1).<br />

5.78 Extend the sum to k = 2m2 + m - 1; the new terms are (1) + (‘,) +<br />

...-t (1;‘) = 0. Since m I (2m+ l), the pairs (kmod m,kmod (2m-t 1))<br />

are distinct. Furthermore, the numbers (2j + 1) mod (2m+ 1) as j varies from<br />

0 to 2m are the numbers 0, 1, . . . , 2m in some order. Hence the sum is<br />

5.79 (a) The sum is 22np’, so the gcd must be a power of 2. If n = 2kq where<br />

q is odd, (:“) is divisible by 2k+’ and not by 2k+2. Each (:$) is divisible<br />

by 2k+’ (see exercise 36), so this must be the gtd. (b) If p’ 6 n + 1 < p’+‘,<br />

we get the most radix p carries by adding k to n - k when k = p’ - 1. The<br />

number of carries in this case is r - e,(n + l), and r = e,(L(n + 1)).<br />

5.80 First prove by induction that k! 3 (k/e)k.<br />

5.81 Let fL,m,n(x) be the left-hand side. It is sufficient to show that we have<br />

fl,,,,(l) > 0 and tlhat f;,,,,(x) < 0 <strong>for</strong> 0 < x 6 1. The value of fl,,,,(l)<br />

is (-l)"p"p'(':~~") by (5.23), and this is positive because the binomial<br />

coefficient has exactly n - m- 1 negative factors. The inequality is true when<br />

1 = 0, <strong>for</strong> the same reason. If 1 > 0, we have f&,+(x) = -Iftpl,m,n+l(~),<br />

which is negative by induction.

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

Saved successfully!

Ooh no, something went wrong!