How many ternary strings of length 5 are there? A ternary string is a string made up of 0's, 1's, and 2's.
Number of 5-digit ternary strings = ?
How many ternary strings of length 5 start with a 1?
Number of 5-digit ternary strings starting with 1 = ?
How many ternary strings of length 5 start with a 1 and end with a 1?
Number of 5-digit ternary strings starting and ending with 1 = ?
How many ternary strings of length 5 start with a 1 or end with a 1?
Number of 5-digit ternary strings starting or ending with 1 = ?