Permutations and combinations - Discrete Math

Start this quiz

  1. A bookshelf has space for exactly 10 books. There are 4 identical mathematics books, 3 identical physics books, and 3 identical chemistry books available. In how many ways can the bookshelf be completely filled?
    Answer: 4,200 We need to select books to fill 10 spots. Let mm, pp, cc be the number of math, physics, and chemistry books used, where m+p+c=10m + p + c = 10, 0≤m≤40 \leq m \leq 4, 0≤p≤30 \leq p \leq 3, 0≤c≤30 \leq c \leq 3. Valid combinations: (4,3,3). Only this works since 4+3+3=104+3+3=10. For this combination, arrangements = 10!4!×3!×3!=3,628,80024×6×6=3,628,800864=4,200\frac{10!}{4! \times 3! \times 3!} = \frac{3,628,800}{24 \times 6 \times 6} = \frac{3,628,800}{864} = 4,200. Choice B uses wrong denominator calculation, C assumes fewer total books, and D miscounts the factorial division.
  2. A committee of 6 people is to be selected from 8 men and 7 women. In how many ways can this be done if the committee must have more men than women, and among the selected people, the oldest man and oldest woman must both be included?
    Answer: (73)⋅(62)+(74)⋅(61)\binom{7}{3} \cdot \binom{6}{2} + \binom{7}{4} \cdot \binom{6}{1} Since the oldest man and oldest woman must be included, we need to select 4 more people from the remaining 7 men and 6 women. For the total committee to have more men than women, we need either (4 men, 2 women) or (5 men, 1 woman) total. Case 1: Total (4M, 2W) means selecting 3 more men and 1 more woman: (73)⋅(61)\binom{7}{3} \cdot \binom{6}{1}. Case 2: Total (5M, 1W) means selecting 4 more men and 0 more women: (74)⋅(60)=(74)\binom{7}{4} \cdot \binom{6}{0} = \binom{7}{4}. However, this gives us only 5 people total, not 6. Let me reconsider: we actually need (4M, 2W) gives us (72)⋅(61)\binom{7}{2} \cdot \binom{6}{1}, and (5M, 1W) is impossible with 6 total people. The answer is (72)⋅(61)+(73)⋅(60)\binom{7}{2} \cdot \binom{6}{1} + \binom{7}{3} \cdot \binom{6}{0} which simplifies to choice A.
  3. A school has 20 students: 8 seniors, 7 juniors, and 5 sophomores. A committee of 6 students is formed such that it includes students from exactly 2 of the 3 grade levels. How many such committees are possible?
    Answer: ∑i=16(8i)(76−i)+∑j=15(8j)(56−j)+∑k=15(7k)(56−k)\sum_{i=1}^{6}\binom{8}{i}\binom{7}{6-i} + \sum_{j=1}^{5}\binom{8}{j}\binom{5}{6-j} + \sum_{k=1}^{5}\binom{7}{k}\binom{5}{6-k} where terms with invalid binomial coefficients are omitted We need exactly 2 grade levels represented. Case 1: Seniors and Juniors only. We need at least 1 senior and at least 1 junior, totaling 6 students. This is ∑i=16(8i)(76−i)\sum_{i=1}^{6}\binom{8}{i}\binom{7}{6-i} where 6−i≤76-i \leq 7 and 6−i≥16-i \geq 1, so ii ranges appropriately. Case 2: Seniors and Sophomores only. Similarly ∑j=15(8j)(56−j)\sum_{j=1}^{5}\binom{8}{j}\binom{5}{6-j} where 6−j≤56-j \leq 5, so j≥1j \geq 1. Case 3: Juniors and Sophomores only. ∑k=15(7k)(56−k)\sum_{k=1}^{5}\binom{7}{k}\binom{5}{6-k} where 6−k≤56-k \leq 5. Choice B correctly represents this with the caveat about invalid coefficients. Choice A explicitly lists many terms but may have errors. Choice C attempts inclusion-exclusion but incorrectly applies it. Choice D counts committees from pairs of grade levels but doesn't ensure both levels are represented.
  4. A committee of 5 people must be formed from a group of 8 men and 6 women. If the committee must have at least 2 men and at least 2 women, how many different committees are possible?
    Answer: 1,400 "At least 2 men and at least 2 women" in a 5-person committee allows only two splits: 2 men + 3 women, or 3 men + 2 women. 2 men, 3 women: (82)×(63)=28×20=560\binom{8}{2} \times \binom{6}{3} = 28 \times 20 = 560 3 men, 2 women: (83)×(62)=56×15=840\binom{8}{3} \times \binom{6}{2} = 56 \times 15 = 840 Total: 560+840=1,400560 + 840 = 1,400. A common slip is to count only one valid split and then add an invalid one: 840+(84)(61)=840+420=1,260840 + \binom{8}{4}\binom{6}{1} = 840 + 420 = 1,260 includes the 4-men/1-woman committees and drops the 2-men/3-women ones. Larger totals come from letting in committees with only one man or one woman, which the condition excludes. As a check, the complement method agrees: (145)=2,002\binom{14}{5} = 2,002 minus the 602 committees with fewer than 2 men or fewer than 2 women leaves 1,400.
  5. A student must select 5 courses from 4 mathematics courses, 3 science courses, and 5 humanities courses. If the selection must include at least 2 mathematics courses and at most 2 science courses, how many different selections are possible?
    Answer: ∑i=24∑j=02(4i)(3j)(55−i−j)\sum_{i=2}^{4}\sum_{j=0}^{2}\binom{4}{i}\binom{3}{j}\binom{5}{5-i-j} where 5−i−j≥05-i-j \geq 0 We need at least 2 math courses (so 2, 3, or 4) and at most 2 science courses (so 0, 1, or 2). For each valid combination (i math, j science), we need 5-i-j humanities courses. The constraint 5−i−j≥05-i-j \geq 0 ensures we don't need negative humanities courses. Also, 5−i−j≤55-i-j \leq 5 is automatically satisfied. Valid combinations: (2,0,3), (2,1,2), (2,2,1), (3,0,2), (3,1,1), (3,2,0), (4,0,1), (4,1,0). The summation in choice C captures all these cases. Choice A incorrectly groups science and humanities together. Choice B explicitly lists all cases (which equals choice C) but is unnecessarily verbose. Choice D also incorrectly groups science and humanities courses.
  6. A password must contain exactly 8 characters chosen from 26 lowercase letters and 10 digits. If the password must start with a letter, end with a digit, and contain at least one of each type of character, how many valid passwords are possible?
    Answer: 26×10×36626 \times 10 \times 36^6 Fill the 8 positions one at a time. - Position 1 must be a letter: 26 choices. - Position 8 must be a digit: 10 choices. - Positions 2 to 7 can be any of the 36 characters: 36636^6 choices. Total: 26×10×366=565,963,407,36026 \times 10 \times 36^6 = 565{,}963{,}407{,}360. The "at least one letter and at least one digit" condition is already met by the first and last positions, so there is nothing to subtract. The subtracted terms in the other expressions try to remove "all letters" or "all digits" passwords, but no password that starts with a letter and ends with a digit can be all letters or all digits. Those expressions apply inclusion-exclusion where it isn't needed, so each of them undercounts.
  7. In how many ways can the letters of the word STATISTICS be arranged?
    Answer: 50,400 STATISTICS has 10 letters: S appears 3 times, T 3 times, I 2 times, and A and C once each. The number of distinct arrangements divides 10!10! by the factorial of each repeat count: 10!3!×3!×2!=3,628,80072=50,400\frac{10!}{3! \times 3! \times 2!} = \frac{3,628,800}{72} = 50,400. The most common slip is miscounting the letters. Treating T as appearing only twice gives 10!3!×2!×2!=151,200\frac{10!}{3! \times 2! \times 2!} = 151,200, and forgetting the repeated I gives 10!3!×3!=100,800\frac{10!}{3! \times 3!} = 100,800; both overcount because identical letters swapped with each other are counted as new arrangements. The other listed values, 43,200, 36,000 and 64,800, do not equal 10!10! divided by any product of the factorials of these letter counts, so they cannot come from a correct counting argument.
  8. A license plate consists of 3 letters followed by 3 digits. How many license plates can be formed if no letter or digit can be repeated within the plate, and the plate cannot start with the letter O or end with the digit 0?
    Answer: 25×25×24×9×9×8=9,720,00025 \times 25 \times 24 \times 9 \times 9 \times 8 = 9,720,000 Count the letters first. The first letter cannot be O, so it has 25 choices. The second letter may be O but cannot repeat the first, so it has 25 choices, and the third has 24. Count the digits starting with the restricted position: the last digit cannot be 0, so it has 9 choices (1–9). The first digit can be anything except the last digit, so it has 9 choices, and the middle digit has 8. The total is 25 × 25 × 24 × 9 × 9 × 8 = 15,000 × 648 = 9,720,000. Using 9 × 8 × 7 for the digits wrongly bars 0 from every digit position. Using 25 × 24 × 23 for the letters wrongly bars O from every letter position, and 25 × 25 × 23 miscounts the third letter.
  9. A committee of 8 people must be formed from 12 men and 10 women. If the committee must have at least 3 men and at least 2 women, and exactly one of the men must be designated as chair, how many different committees can be formed?
    Answer: 12⋅[(112)⋅(105)+(113)⋅(104)+(114)⋅(103)+(115)⋅(102)]12 \cdot \left[\binom{11}{2} \cdot \binom{10}{5} + \binom{11}{3} \cdot \binom{10}{4} + \binom{11}{4} \cdot \binom{10}{3} + \binom{11}{5} \cdot \binom{10}{2}\right] First, choose 1 man from 12 to be chair (12 ways). Then form the remaining committee of 7 people from the remaining 11 men and 10 women, with constraints. Since the chair is already chosen, we need at least 2 more men and at least 2 women. The valid distributions are: (3M,4W), (4M,3W), (5M,2W), (2M,5W). This gives us 12⋅[(112)(105)+(113)(104)+(114)(103)+(115)(102)]12 \cdot [\binom{11}{2}\binom{10}{5} + \binom{11}{3}\binom{10}{4} + \binom{11}{4}\binom{10}{3} + \binom{11}{5}\binom{10}{2}]. Choice A incorrectly uses 8 instead of 12 for chair selection. Choice C uses invalid combinatorial reasoning. Choice D uses inclusion-exclusion incorrectly.
  10. A box contains 15 balls: 6 red, 5 blue, and 4 green. In how many ways can 8 balls be selected such that there are at least 2 balls of each color?
    Answer: ∑r=24∑b=24(6r)(5b)(48−r−b)\sum_{r=2}^{4}\sum_{b=2}^{4}\binom{6}{r}\binom{5}{b}\binom{4}{8-r-b} where 2≤8−r−b≤42 \leq 8-r-b \leq 4 We need at least 2 of each color and exactly 8 balls total. Let r, b, g be the number of red, blue, green balls selected. Constraints: r≥2,b≥2,g≥2r \geq 2, b \geq 2, g \geq 2, r+b+g=8r + b + g = 8, r≤6,b≤5,g≤4r \leq 6, b \leq 5, g \leq 4. Since g=8−r−bg = 8 - r - b, we need 2≤8−r−b≤42 \leq 8 - r - b \leq 4, which gives 4≤r+b≤64 \leq r + b \leq 6. Valid combinations: (2,2,4), (2,3,3), (2,4,2), (3,2,3), (3,3,2), (4,2,2). Choice D captures this with the summation notation and constraint 2≤8−r−b≤42 \leq 8-r-b \leq 4. Choice A lists some valid cases but misses (2,4,2). Choice B has invalid cases like (2,2,4) written as (44)\binom{4}{4} which suggests 4 green balls. Choice C also has errors in the combinations listed.
  11. How many ways are there to arrange the letters in BOOKKEEPER such that all K's appear before all E's, and all E's appear before all P's?
    Answer: 10!2!⋅3!⋅2!⋅2!⋅12!⋅3!⋅2!\frac{10!}{2! \cdot 3! \cdot 2! \cdot 2!} \cdot \frac{1}{2! \cdot 3! \cdot 2!} BOOKKEEPER has 10 letters: B(1), O(2), K(2), E(3), P(2), R(1). Without restrictions, arrangements = 10!2!⋅3!⋅2!⋅2!\frac{10!}{2! \cdot 3! \cdot 2! \cdot 2!}. For the ordering constraint K's before E's before P's: among all arrangements, only 12!⋅3!⋅2!\frac{1}{2! \cdot 3! \cdot 2!} satisfy the relative ordering of the 2K's, 3E's, and 2P's. This is because there are 2!⋅3!⋅2!2! \cdot 3! \cdot 2! ways to arrange these 7 letters among themselves, and only 1 of these arrangements satisfies our constraint. Choice B ignores the ordering constraint. Choice C incorrectly handles the constraint calculation. Choice D uses an irrelevant 7!7! factor.
  12. A password consists of 4 distinct letters followed by 3 distinct digits. If the letters must include at least one vowel (A, E, I, O, U) and the digits must include at least one prime digit (2, 3, 5, 7), how many such passwords are possible?
    Answer: P(26,4)⋅P(10,3)−P(21,4)⋅P(10,3)−P(26,4)⋅P(6,3)+P(21,4)⋅P(6,3)P(26,4) \cdot P(10,3) - P(21,4) \cdot P(10,3) - P(26,4) \cdot P(6,3) + P(21,4) \cdot P(6,3) Use inclusion-exclusion principle. Total passwords: P(26,4)⋅P(10,3)P(26,4) \cdot P(10,3). Subtract passwords with no vowels: P(21,4)⋅P(10,3)P(21,4) \cdot P(10,3). Subtract passwords with no prime digits: P(26,4)⋅P(6,3)P(26,4) \cdot P(6,3) (non-prime digits: 0,1,4,6,8,9). Add back passwords with neither vowels nor prime digits: P(21,4)⋅P(6,3)P(21,4) \cdot P(6,3). This gives the inclusion-exclusion formula in choice A. Choice B incorrectly uses P(7,3) instead of P(6,3) for non-prime digits. Choice C incorrectly assumes independence of constraints. Choice D uses wrong count of non-prime digits.

Start this quiz