Ripetizioni di Analisi
EN

Worked examples · Sheet 1

Problems using the fundamental counting principle

Theory used:The fundamental counting principleTree diagramThe addition principle

Go to: Exercise 1Exercise 2Exercise 3

Exercise 1

A code consists of a letter chosen from and followed by a digit chosen from , , and . Draw a tree diagram of the codes, find their number, and find how many end in an odd digit.

ABA1A2A3B1B2B3
Tree diagram of the codes: branches for the letter and branches for the digit, giving leaves

The code is formed in two stages: first choose the letter, then the digit. In the tree diagram, branches leave the root, one per letter. From the end of each of these, branches extend, one per digit. Every path from the root to a leaf corresponds to one code, so there are as many codes as leaves.

The second stage has outcomes regardless of the letter, so the fundamental counting principle applies and there are codes. Listing the codes at the leaves confirms the count.

For codes ending in an odd digit, the second stage uses only the digits and , so there are choices regardless of the letter. By the fundamental counting principle the number of such codes is , namely , , , . There are therefore codes, of which end in an odd digit.

Exercise 2

Find how many three-digit natural numbers have only odd digits and how many three-digit natural numbers are even.

A three-digit number is formed in three stages: choosing its hundreds digit, its tens digit, and its units digit. Digits may repeat, since the problem does not require them to be distinct.

In the first question each digit is chosen from the odd digits. The hundreds digit cannot be , but this restriction is already satisfied since is even. Each stage has outcomes regardless of the preceding digits, so by the fundamental counting principle the total is .

In the second question the hundreds digit differs from , since otherwise the number would have fewer than three digits, so there are choices. The tens digit is unrestricted, with choices. A number is even when its units digit is even, so the last digit is chosen from , , , , in ways. By the fundamental counting principle there are three-digit even numbers.

The second result can also be checked as follows. The three-digit numbers run from to , with numbers in total. Even and odd numbers alternate starting at , which is even, so half are even, namely .

Exercise 3

Roll a die. If the result is even, toss a coin. If it is odd, roll the die again. Find the number of possible outcomes of the experiment, expressed as ordered pairs (first result, second result).

The number of outcomes at the second stage depends on the first: after an even number the coin has outcomes, heads or tails, while after an odd number the die has outcomes. The fundamental counting principle applies only when the second stage has the same number of outcomes for every first-stage outcome, so the product does not give the number of outcomes for the entire experiment.

Split the outcomes into two groups according to whether the first roll is even or odd. Within each group, the second stage always has the same number of outcomes. In the first group the first roll has possibilities and the coin has , so by the fundamental counting principle there are outcomes. In the second group the first roll has possibilities and the second roll has , giving outcomes.

The groups have no common outcomes, since the first roll is even in one group and odd in the other. By the addition principle the experiment has outcomes. In the corresponding tree diagram each of the three even branches splits into branches and each of the three odd branches into .

Report a mistake

Where:

Ripetizioni di Analisi

Keep studying

With a free account, you can pick up where you left off and see your progress next time you visit.

Sign up for free

Already have an account? Sign in

Contents