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.

You know you’re<br />

in college when the<br />

book doesn’t tell<br />

you how to pronounce<br />

‘Dirichlet’.<br />

Exercises<br />

Warmups<br />

3 EXERCISES 95<br />

1 When we analyzed the Josephus problem in Chapter 1, we represented<br />

an arbitrary positive integer n in the <strong>for</strong>m n = 2m + 1, where 0 < 1 < 2”.<br />

Give explicit <strong>for</strong>mulas <strong>for</strong> 1 and m as functions of n, using floor and/or<br />

ceiling brackets.<br />

2 What is a <strong>for</strong>mula <strong>for</strong> the nearest integer to a given real number x? In case<br />

of ties, when x is exactly halfway between two integers, give an expression<br />

that rounds (a) up-that is, to [xl; (b) down-that is, to Lx].<br />

3 Evaluate 1 \m&]n/a] , w hen<br />

m and n are positive integers and a is an<br />

irrational number greater than n.<br />

4 The text describes problems at levels 1 through 5. What is a level 0<br />

problem? (This, by the way, is not a level 0 problem.)<br />

5 Find a necessary and sufficient condition that LnxJ = n[xJ , when n is a<br />

positive integer. (Your condition should involve {x}.)<br />

6 Can something interesting be said about Lf(x)J when f(x) is a continuous,<br />

monotonically decreasing function that takes integer values only when<br />

x is an integer?<br />

‘7 Solve the recurrence<br />

X, = n, <strong>for</strong> 0 6 n < m;<br />

x, = x,-,+1, <strong>for</strong> n 3 m.<br />

8 Prove the Dirichlet box principle: If n objects are put into m boxes,<br />

some box must contain 3 [n/ml objects, and some box must contain<br />

6 lnhl.<br />

9 Egyptian mathematicians in 1800 B.C. represented rational numbers between<br />

0 and 1 as sums of unit fractions 1 /xl + . . . + 1 /xk, where the x’s<br />

were distinct positive integers. For example, they wrote $ + &, instead<br />

of 5. Prove that it is always possible to do this in a systematic way: If<br />

O

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

Saved successfully!

Ooh no, something went wrong!