Back to Applied Combinatorics

Strings, Sets, and Binomial Coefficients

Counting strings over restricted alphabets, permutations and combinations, integer solutions to equations, lattice paths, and coefficients in multinomial expansions.

Applied Combinatorics, Strings, Sets, and Binomial Coefficients

Status
FlagsLoading your progress…

17 exercises

Exercise 3

Matt is designing a website authentication system. He knows passwords are most secure if they contain letters, numbers, and symbols. However, he doesn't quite understand that this additional security is defeated if he specifies in which positions each character type appears. He decides that valid passwords for his system will begin with three letters (uppercase and lowercase both allowed), followe…

2.5

Exercise 4

How many ternary strings of length 2n2n are there in which the zeroes appear only in odd-numbered positions?

2.5

Exercise 5

Suppose we are making license plates of the form l1l2l3−d1d2d3l_1l_2l_3-d_1d_2d_3 where l1,l2,l3l_1,l_2,l_3 are capital letters in the English alphabet and d1,d2,d3d_1,d_2,d_3 are decimal digits (i.e., elements of the set {0,1,2,3,4,5,6,7,8,9}\{0,1,2,3,4,5,6,7,8,9\}) subject to the restriction that at least one digit is nonzero and at least one letter is KK. How many license plates can we make?

2.5

Exercise 6

Mrs. Steffen's third grade class has 3030 students in it. The students are divided into three groups (numbered 11, 22, and 33), each having 1010 students.

  1. The students in group 11 earned 1010 extra minutes of recess by winning a class competition. Before going out for their extra recess time, they form a single file line. In how many ways can they line up?

  2. When all 3030 students come in from recess together, they a…

2.5

Exercise 8

In this exercise, we consider strings made from uppercase letters in the English alphabet and decimal digits. How many strings of length 1010 can be constructed in each of the following scenarios?

  1. The first and last characters of the string are letters.

  2. The first character is a vowel, the second character is a consonant, and the last character is a digit.

  3. Vowels (not necessarily distinct) appear in the…

2.5

Exercise 9

A database uses 2020-character strings as record identifiers. The valid characters in these strings are upper-case letters in the English alphabet and decimal digits. (Recall there are 2626 letters in the English alphabet and 1010 decimal digits.) How many valid record identifiers are possible if a valid record identifier must meet all of the following criteria:

  • Letter(s) from the set {A,E,I,O,U}\{A,E,I,O,U\} occur in exactly thr…

2.5

Exercise 10

Let XX be the set of the 2626 lowercase English letters and 1010 decimal digits. How many XX-strings of length 1515 satisfy all of the following properties (at the same time)?

  • The first and last symbols of the string are distinct digits (which may appear elsewhere in the string).

  • Precisely four of the symbols in the string are the letter 'tt'.

  • Precisely three characters in the string are elements of the set V={a,e,i,o,u}V=\{a,e,i,o,u\} an…

2.5

Exercise 12

The sport of korfball is played by teams of eight players. Each team has four men and four women on it. Halliday High School has seven men and 1111 women interested in playing korfball. In how many ways can they form a korfball team from their 18 interested students?

2.5

Exercise 14

An ice cream shop has a special on banana splits, and Xing is taking advantage of it. He's astounded at all the options he has in constructing his banana split:

  • He must choose three different flavors of ice cream to place in the asymmetric bowl the banana split is served in. The shop has 20 flavors of ice cream available.

  • Each scoop of ice cream must be topped by a sauce, chosen from six different o…

2.5

Exercise 15

Suppose that a teacher wishes to distribute 2525 identical pencils to Ahmed, Barbara, Casper, and Dieter such that Ahmed and Dieter receive at least one pencil each, Casper receives no more than five pencils, and Barbara receives at least four pencils. In how many ways can such a distribution be made?

2.5

Exercise 17

How many integer solutions are there to the equation provided that x1>0x_1>0, and x2,x3,x4≥0x_2,x_3,x_4\geq 0? What if we add the restriction that x4<17x_4\lt 17?

2.5

Exercise 18

How many integer solutions are there to the inequality provided that x1,x2>0x_1,x_2>0, x3≥0x_3\geq 0, and x4,x5≥10x_4,x_5\geq 10?

2.5

Exercise 19

A teacher has 450450 identical pieces of candy. He wants to distribute them to his class of 6565 students, although he is willing to take some leftover candy home. (He does not insist on taking any candy home, however.) The student who won a contest in the last class is to receive at least 1010 pieces of candy as a reward. Of the remaining students, 3434 of them insist on receiving at least one piece of candy,…

2.5

Exercise 21

Let mm and ww be positive integers. Give a combinatorial argument to prove that for integers k≥0k\geq 0,

2.5

Exercise 26

How many lattice paths from (0,0)(0,0) to (14,73)(14,73) are there that do not pass through (6,37)(6,37)?

2.5

Exercise 28

The setting for this problem is the fictional town of Mascotville, which is laid out as a grid. Mascots are allowed to travel only on the streets, and not “as the yellow jacket flies.” Buzz, the Georgia Tech mascot, wants to go visit his friend Thundar, the North Dakota State University mascot, who lives 66 blocks east and 77 blocks north of Buzz's hive. However, Uga VIII has recently moved into the…

2.5

Exercise 30

Determine the coefficient on x12y24x^{12}y^{24} in (x3+2xy2+y+3)18(x^3+2xy^2+y+3)^{18}. (Be careful, as xx and yy now appear in multiple terms!)

2.5

Adapted from Applied Combinatorics © 2006–2025 Mitchel T. Keller, William T. Trotter. Licensed under CC BY-SA 4.0. Source: Applied Combinatorics. Imported at revision 07286c4.