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.

114 NUMBER THEORY<br />

The binary representation also shows us how to derive another <strong>for</strong>mula,<br />

E~(TI!) = n-Y2(n) , (4.24)<br />

where ~z(n) is the number of l’s in the binary representation of n. This<br />

simplification works because each 1 that contributes 2”’ to the value of n<br />

contributes 2”-’ + 2mP2 + . . .+2’=2”-1 tothevalueofcz(n!).<br />

Generalizing our findings to an arbitrary prime p, we have<br />

(4.25)<br />

by the same reasoning as be<strong>for</strong>e.<br />

About how large is c,(n!)? We get an easy (but good) upper bound by<br />

simply removing the floor from the summand and then summing an infinite<br />

geometric progression:<br />

e,(n!) < i+l+n+...<br />

P2 P3<br />

= 11 ,+i+$+...<br />

P (<br />

-n P<br />

- -P P-1 0<br />

n<br />

=p_l.<br />

1<br />

For p = 2 and n = 100 this inequality says that 97 < 100. Thus the upper<br />

bound 100 is not only correct, it’s also close to the true value 97. In<br />

fact, the true value n - VI(~) is N n in general, because ~z(n) 6 [lgnl is<br />

asymptotically much smaller than n.<br />

When p = 2 and 3 our <strong>for</strong>mulas give ez(n!) N n and e3(n!) N n/2, so<br />

it seems reasonable that every once in awhile e3 (n!) should be exactly half<br />

as big as ez(n!). For example, this happens when n = 6 and n = 7, because<br />

6! = 24. 32 .5 = 7!/7. But nobody has yet proved that such coincidences<br />

happen infinitely often.<br />

The bound on e,(n!) in turn gives us a bound on p”~(~!), which is p’s<br />

contribution to n! :<br />

Gin!) < pw(P-‘) .<br />

P<br />

And we can simplify this <strong>for</strong>mula (at the risk of greatly loosening the upper<br />

bound) by noting that p < 2pP’; hence pn/(Pme’) 6 (2p-‘)n/(pp’) = 2”. In<br />

other words, the contribution that any prime makes to n! is less than 2”.

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

Saved successfully!

Ooh no, something went wrong!