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.

274 SPECIAL NUMBERS<br />

Recurrence (6.95) gives us a simple way to calculate Bernoulli numbers,<br />

via tangent numbers, using only simple operations on integers; by contrast,<br />

the defining recurrence (6.79) involves difficult arithmetic with fractions.<br />

If we want to compute the sum of nth powers from a to b - 1 instead of<br />

from 0 to n - 1, the theory of Chapter 2 tells us that<br />

b-l<br />

x k”’ = x;xm6x = S,(b) -S,,,(a). (6.96)<br />

k=a<br />

This identity has interesting consequences when we consider negative values<br />

of k: We have<br />

hence<br />

i km = (-1)-F km, when m > 0,<br />

k=--n+l<br />

k=:O<br />

S,(O) - S,(-n+ 1) =: (-l)m(Sm(n) -S,(O)).<br />

But S,(O) = 0, so we have the identity<br />

S,(l -n) = (-l)“+‘S,(n), m > 0. (6.97)<br />

There<strong>for</strong>e S,( 1) = 0. If we write the polynomial S,(n) in factored <strong>for</strong>m, it<br />

will always have the factors n and (n- 1 ), because it has the roots 0 and 1. In<br />

general, S,(n) is a polynomial of degree m + 1 with leading term &n”‘+’ .<br />

Moreover, we can set n = i in (6.97) to get S,(i) = (-l)“+‘S,(~); if m is<br />

even, this makes S,(i) = 0, so (n - 5) will be an additional factor. These<br />

observations explain why we found the simple factorization<br />

Sl(n) = in(n - t)(n - 1)<br />

in Chapter 2; we could have used such reasoning to deduce the value of Sl(n)<br />

without calculating it! Furthermore, (6.97) implies that the polynomial with<br />

the remaining factors, S,(n) = S,(n)/(n - i), always satisfies<br />

S,(l -n) = S,(n), m even, m > 0.<br />

It follows that S,(n) can always be written in the factored <strong>for</strong>m<br />

S,(n) = I A ‘E’ (n - ; - ak)(n _ ; + Kk) ,<br />

k=l<br />

m odd;<br />

(6.98)

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

Saved successfully!

Ooh no, something went wrong!