Roger.Robert
New member
- Joined
- Jan 27, 2018
- Messages
- 30
Consider all strings of length l ∈ {1, 2, 3} consisting of letters from the set {a, b, c, d, e}.
How many of these strings have an even amount of vowels? (a and e are vowels).
Here's how i tried to solve it :
5 strings of length 1 . - 3 strings with an even amount of vowels
5!/(5-2)!=20 strings of length 2 - 8 strings with an even amount of vowels.
5!/(5-3)!=60 strings of length 3 -24 strings with an even amount of vowels.
In total 85 strings. And 35 strings with an even amount of vowels.But it's wrong, and idk why.(79 is the answer in the book)
How many of these strings have an even amount of vowels? (a and e are vowels).
Here's how i tried to solve it :
5 strings of length 1 . - 3 strings with an even amount of vowels
5!/(5-2)!=20 strings of length 2 - 8 strings with an even amount of vowels.
5!/(5-3)!=60 strings of length 3 -24 strings with an even amount of vowels.
In total 85 strings. And 35 strings with an even amount of vowels.But it's wrong, and idk why.(79 is the answer in the book)
Last edited: