Ripetizioni di Analisi
EN

Worked examples · Sheet 2

Ordered selections with and without repetition

Theory used:Ordered selections without repetitionCounting ordered selections without repetitionOrdered selections with repetitionCounting ordered selections with repetitionThe addition principle

Go to: Exercise 1Exercise 2Exercise 3

Exercise 1

A class of students elects a representative and a deputy, who must be different people. Find how many ways the two offices can be assigned and in how many of these Luca holds one of the offices.

An assignment of the offices is an ordered pair of students: the first is the representative and the second is the deputy. Order matters because (Anna, Luca) and (Luca, Anna) assign different offices to the same people. The students must be different, so the assignments are ordered selections without repetition from objects taken at a time. By the formula for ordered selections without repetition, multiply consecutive decreasing numbers starting with to obtain .

For the second question, split the assignments in which Luca holds an office into two groups. If Luca is the representative, the deputy is chosen from the other students, giving assignments. If Luca is the deputy, the representative is chosen from the other , again giving assignments. Luca cannot hold both offices, so the groups are disjoint and by the addition principle there are assignments.

The offices can be assigned in ways, and in of them Luca holds an office.

Exercise 2

A phone unlock code consists of digits, and is allowed even in the first position. Find how many codes there are, how many have all digits distinct, and how many have at least one repeated digit.

A code is an ordered sequence of digits chosen from the digits from to , and a digit may appear more than once. The codes are therefore ordered selections with repetition from objects taken at a time. By the formula , there are codes.

Codes with all digits distinct are ordered selections without repetition from objects taken at a time. The product contains consecutive decreasing factors starting with and ending with . The calculation gives , then , , and .

A code either has all digits distinct or contains at least one repeated digit, and the two cases are mutually exclusive. By the addition principle, the number of codes with at least one repeated digit is therefore the total number of codes minus the number with all digits distinct, namely . A direct count would require many cases, depending on how many and which digits repeat. Using the complementary case requires only one subtraction.

Exercise 3

Find how many four-digit even natural numbers have all digits distinct.

The number satisfies two restrictions: the thousands digit differs from and the units digit is even. Since is relevant to both restrictions, split the count into two cases according to whether the units digit is .

In the first case the units digit is . The other three digits are distinct and are chosen from the digits from to . Since has already been used, the restriction on the thousands digit is satisfied. The thousands, hundreds, and tens digits therefore form an ordered selection without repetition, counted by .

In the second case the units digit is chosen from , , , in ways. The thousands digit differs from and from the units digit, so it is chosen from digits. The hundreds digit differs from the two already used and may be , so it is chosen from digits, and the tens digit from the remaining. The number of outcomes at each stage is independent of previous choices, so by the fundamental counting principle the total is .

The two cases are disjoint, so by the addition principle there are four-digit even numbers with distinct digits.

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