Wize Discrete Mathematics and Proof Textbook > Combinatorics
Basic Counting Principles
A laboratory labels samples with four-character codes using the symbols A, B, C, D, E and F. The third character must equal the first. The second character must differ from the first, and the fourth must differ from both the first and second. There are no other restrictions. How many valid codes exist? Give an exact whole-number count.
A software system uses five-character labels. Each character is either an ordinary symbol from A, B, C and D or a marker from X and Y. Ordinary symbols may repeat. A marker may appear only in the second, third or fourth position.
Find the number of labels containing exactly one marker and the number containing at most one marker. Give both answers as exact whole-number counts.