The Lumenary · Grades 6–8
Counting principles
Name: ______________________
Date: ______________________
You will learn to
- Apply the addition and multiplication principles to count outcomes, and explain why each works
- Count arrangements of objects () and ordered selections of objects from ()
- Use complementary counting, for example to count passwords containing at least one digit
- Correct for overlapping cases with
- 1.
Kofi has shirts, pairs of trousers and pairs of shoes. An outfit is one shirt, one pair of trousers and one pair of shoes. How many different outfits can he make?
- 2.
A school library in Quito has novels and comics on a display shelf. Ana may borrow one book from the shelf. In how many ways can she choose?
- A.
- B.
- C.
- D.
- 3.
In how many different orders can different books be arranged on a shelf?
- 4.
Ten swimmers race in a final. In how many ways can the gold, silver and bronze medals be awarded? (No ties.)
- 5.
How many 4-digit PINs (from to ) contain at least one repeated digit?
- 6.
How many of the whole numbers from to are divisible by or by (or both)?
- 7.
Which of these are good reasons for defining ? (Choose all that apply.)
- A.There is exactly one way to arrange no objects: the empty arrangement
- B.It makes true
- C.It keeps the rule true for
- D.Because zero times anything is zero
- 8.
A code has symbols, each a capital letter ( choices) or a digit ( choices). How many codes contain at least one letter and at least one digit?
- 9.
In the Lean file,
perm n kis andfact nis . Which statement correctly formalises ?- A.
∀ n k : Nat, k ≤ n → perm n k * fact (n - k) = fact n - B.
∀ n k : Nat, perm n k * fact (n - k) = fact n - C.
∀ n k : Nat, k ≤ n → perm n k = fact n / fact k - D.
∀ n k : Nat, k ≤ n → perm n k = fact n * fact (n - k)
- A.
- 10.
Write a recursive function
arrangements(items)that returns a list of all orderings of the listitems(each ordering a list), without usingitertools. Idea: for each item, put it first and follow it by every arrangement of the remaining items. Then check that items give different arrangements.Computational — Practice