I have following problem from combinatorics:
Let's have set of 8 distinct items: {a,b,c,d,e,f,g,h}
How many ways we can combine 10 of them if we know:
- We start with A and end with H
- Every item of the set must be in the result at least once.
I started as such ... we know that A and H are already at positions: (A)()()()()()()()()(H) So we need to find combinations for the rest of the "fields" and there we have:
- 6 unique items
- 2 repeating items
Hence I arrived to this: 8! + 6*P*(3,1,1,1,1,1) + 2*7*P*(2,1,1,1,1,1,1) + 15*P*(2,2,1,1,1,1) Is it correct or am I doing it wrong ?
Sight items must appear once and two rest must be repeat(they might be same or different) $$\binom81 \frac{8!}{3!}+\binom 82\frac{8!}{2!2!}$$ If they are same choose one number out of 8 i.e. to be repeated and then arrange all numbers similiarly when they are different choose 2 numers.