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?
9.[3p] Which of these statements are correct?
Which of these statements are correct?
Select all that apply