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.

100 INTEGER FUNCTIONS<br />

43 Find an interesting interpretation of the Knuth numbers, by unfolding<br />

the recurrence (3.16).<br />

44 Show that there are integers aiq’ and diq) such that<br />

ac4)<br />

n<br />

=<br />

D;!, + diq) D(q)<br />

n<br />

+ d(q)<br />

n<br />

q-l = 4 ’<br />

<strong>for</strong> n > 0,<br />

when DIP’ is the solution to (3.20). Use this fact to obtain another <strong>for</strong>m<br />

of the solution to the generalized Josephus problem:<br />

Jq (n) = 1 + d(‘) + q(n - aCq))<br />

k k ’ <strong>for</strong> ap’ 6 n < ctp>“,‘, .<br />

45 Extend the trick of exercise 30 to find a closed-<strong>for</strong>m solution to<br />

YO = m,<br />

Y, = 2Yip, - 1 ) <strong>for</strong> n > 0,<br />

if m is a positive integer.<br />

46 Prove that if n = I( fi’ + fi’-‘)mi , where m and 1 are nonnegative<br />

integers, then Ld-1 = l(&!“’ + fi’)rnl . Use this remarkable<br />

property to find a closed <strong>for</strong>m solution to the recurrence<br />

LO = a, integer a > 0;<br />

Ln = [-\/2LndL-l +l)], <strong>for</strong> n > 0.<br />

Hint: [&Gi$ZXJ] = [Jz(n + t)J.<br />

47 The function f(x) is said to be replicative if it satisfies<br />

f(mx) = f(x) +f(x+ i) +...+f(x+ v)<br />

<strong>for</strong> every positive integer m. Find necessary and sufficient conditions on<br />

the real number c <strong>for</strong> the following functions to be replicative:<br />

a f(x) = x + c.<br />

b f(x) = [x + c is an integer].<br />

c f(x) =max([xJ,c).<br />

d f(x) = x + c 1x1 - i [x is not an integer].<br />

48 Find a necessary and sufficient condition on the real numbers 0 6 a < 1<br />

and B 3 0 such that we can determine cx and J3 from the infinite multiset<br />

of values<br />

{ Inal + 14 ( n > 0 > .

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

Saved successfully!

Ooh no, something went wrong!