Counting without listing
1.[2p] A variable name is a single letter, or a letter followed by one character that is either a letter or a digit. With letters and digits, how many names are possible?
A variable name is a single letter, or a letter followed by one character that is either a letter or a digit. With letters and digits, how many names are possible?
2.[2p] How many integers from to contain at least one digit ?
How many integers from to contain at least one digit ?
3.[2p] How many strings of length over the alphabet have no two adjacent letters equal?
How many strings of length over the alphabet have no two adjacent letters equal?
4.[2p] How many positive divisors does have?
How many positive divisors does have?
5.[1p] How many subsets of contain but not ?
How many subsets of contain but not ?
6.[2p] A knockout tournament starts with players, some of whom receive byes in early rounds. How many matches are played in total?
A knockout tournament starts with players, some of whom receive byes in early rounds. How many matches are played in total?
7.[2p] What is the smallest number of people that guarantees at least four of them share a birth month?
What is the smallest number of people that guarantees at least four of them share a birth month?
8.[2p] Why can no lossless compressor shorten every file of bits?
Why can no lossless compressor shorten every file of bits?
The answer is: There are files of bits but only shorter files, so two would share an output
The answer is: There are files of bits but only shorter files, so two would share an output
The answer is: There are files of bits but only shorter files, so two would share an output
9.[3p] Which of these statements are correct?
Which of these statements are correct?
Select all that apply
The answer is: The sum rule requires the pieces being added to be pairwise disjoint, The product rule requires each stage to offer the same number of options whatever was chosen before, though not necessarily the same options, Toggling one fixed element is a bijection between the even sized and odd sized subsets of a nonempty set