Looking for a way to calculate the number of combinations of letters in the alphabet with the following restrictions:
- any number of letters in a combination
- no repeat letters (as in a single entry can contain one A, but not two As)
- If a set of letters contains letters that are not adjacent, it must also contain all letters between those letters.
It's that third rule that I don't have a clue how to get around.