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.

. . . without MS<br />

of generality. .<br />

“If x be an incommensurable<br />

number less than<br />

unity, one of the<br />

series of quantities<br />

m/x, m/(1 -x),<br />

where m is a whole<br />

number, can be<br />

found which shall<br />

he between any<br />

given consecutive<br />

integers, and but<br />

one such quantity<br />

can be found.”<br />

- Rayleigh [245]<br />

Right, because<br />

exact/y one of<br />

the counts must<br />

increase when n<br />

increases by 1 .<br />

3.2 FLOOR/CEILING APPLICATIONS 77<br />

Our last application in this section looks at so-called spectra. We define<br />

the spectrum of a real number a to be an infinite multiset of integers,<br />

Sped4 = 114, 12a1, 13a1, . . .I.<br />

(A multiset is like a set but it can have repeated elements.) For example, the<br />

spectrum of l/2 starts out (0, 1, 1,2,2,3,3,. . .}.<br />

It’s easy to prove that no two spectra are equal-that a # (3 implies<br />

Spec(a) # Spec((3). For, assuming without loss of generality that a < (3,<br />

there’s a positive integer m such that m( l3 - a) 3 1. (In fact, any m 3<br />

[l/( (3 - a)] will do; but we needn’t show off our knowledge of floors and<br />

ceilings all the time.) Hence ml3 - ma 3 1, and LrnSl > [ma]. Thus<br />

Spec((3) has fewer than m elements < lrnaj, while Spec(a) has at least m.<br />

Spectra have many beautiful properties. For example, consider the two<br />

multisets<br />

Spec(&) = {1,2,4,5,7,8,9,11,12,14,15,16,18,19,21,22,24 ,... },<br />

Spec(2+fi) = {3,6,10,13,17,20,23,27,30,34,37,40,44,47,51,... }.<br />

It’s easy to calculate Spec( fi ) with a pocket calculator, and the nth element<br />

of Spec(2+ fi) is just 2n more than the nth element of Spec(fi), by (3.6).<br />

A closer look shows that these two spectra are also related in a much more<br />

surprising way: It seems that any number missing from one is in the other,<br />

but that no number is in both! And it’s true: The positive integers are the<br />

disjoint union of Spec( fi ) and Spec(2+ fi ). We say that these spectra <strong>for</strong>m<br />

a partition of the positive integers.<br />

To prove this assertion, we will count how many of the elements of<br />

Spec(&!) are 6 n, and how many of the elements of Spec(2+fi) are 6 n. If<br />

the total is n, <strong>for</strong> each n, these two spectra do indeed partition the integers.<br />

Let a be positive. The number of elements in Spec(a) that are < n is<br />

N(a,n) = x[lkaJ O<br />

= x[[kaj O<br />

= tr kaO<br />

= x[O

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

Saved successfully!

Ooh no, something went wrong!