By the multiplication principle, the successive places have six, five, four, three, two and one available letters. Thus the number of permutations is
Fixing the last letter leaves five distinct letters to permute freely. Therefore the number is
The last letter has two permitted choices, and each leaves permutations. The two classes are disjoint, so the count is
Fixing both specified positions leaves four letters to permute. Hence
Let denote the set of arrangements with fifth, and those with sixth. Each contains arrangements, while their intersection contains . The inclusion-exclusion principle gives
Requiring exactly one condition means taking the symmetric difference of the two sets. Subtract their shared cases twice from the two individual counts:
Equivalently, remove the twenty-four arrangements satisfying both conditions from the inclusive count .

Articles by others on the same topic (0)

There are currently no matching articles.