15.12.2012 Views

Why Read This Book? - Index of

Why Read This Book? - Index of

Why Read This Book? - Index of

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

148 Chapter 4 Functions<br />

EXERCISE 4.8.10 Let A and B be non-empty sets with |A| = m ≤ n = |B|. How<br />

many distinct functions from A to B are not one-to-one?<br />

Suppose A is a set with n elements and (a1,...,an) is an element <strong>of</strong> A n , where<br />

all coordinates <strong>of</strong> the n-tuple are distinct. We may think <strong>of</strong> such an n-tuple as a<br />

way <strong>of</strong> ordering the elements <strong>of</strong> A.<br />

EXERCISE 4.8.11 If A is a set with n elements, in how many distinct ways can<br />

its elements be ordered?<br />

4.8.3 Applications<br />

How many ways are there to put together a meal from all the cafeteria <strong>of</strong>ferings?<br />

To arrange your CD collection on your dresser? To name a baby boy from a list <strong>of</strong><br />

family preferences? Results from this section can help us answer some questions<br />

<strong>of</strong> the sort “How many ways are there to ...?”<br />

Example 4.8.12 Your university cafeteria has the following menu for today’s<br />

lunch.<br />

Meats : Meatloaf, Chicken, Fish sticks<br />

Starchy vegetables : Potatoes, Rice, Corn, Pasta<br />

Green vegetables : Beans, Broccoli, Salad, Spinach<br />

Breads : Rolls, Corn bread<br />

Desserts : Chocolate cake, Pudding<br />

If you choose one item from each category <strong>of</strong> the menu, how many different meals<br />

could you put together?<br />

Solution If we let A1 be the set <strong>of</strong> meat <strong>of</strong>ferings, A2 the set <strong>of</strong> starchy vegetables,<br />

and so on, then each potential complete meal is an element <strong>of</strong> � 5 k=1 Ak. By<br />

Exercise 4.8.7, there are 3 × 4 × 4 × 2 × 2 = 192 possible meals. �<br />

In Example 4.8.12, counting the number <strong>of</strong> possible meals can be visualized in<br />

the following way. We have five empty slots to fill on our plate, the first to be filled<br />

with a choice <strong>of</strong> meat, the second with a choice <strong>of</strong> starchy vegetable, and so on.<br />

Furthermore, the number <strong>of</strong> choices available to fill a particular slot is unaffected<br />

by the way any <strong>of</strong> the previous slots have been filled or the way the remaining<br />

slots will be filled. Multiplying the number <strong>of</strong> ways to fill each slot illustrates the<br />

multiplication rule.Ifann-step process is such that the kth step can be done in ak<br />

ways, and the number <strong>of</strong> ways each step can be done is unaffected by the choice<br />

made for any other step, then the total number <strong>of</strong> ways to perform all n steps is<br />

� nk=1 ak.

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

Saved successfully!

Ooh no, something went wrong!