What is the permutation of $n$ objects taken $r$ at a time having $p$ similar objects?
Consider the example
What is the number of ways that $5$ red balls and $2$ black ball can be arranged taken $2$ at a time?
If you consider the probable combination it will be nothing but $\{RB,BR,RR,BB\}$ and nothing other else. So how can we get $4$ ways by formula. As we know $P$ of $n$ DISTINCT object taken $r$ at a time is given by $$^n P_r = \frac{n!}{(n-r)!}$$ And permutations of $n$ objects having $p$ similar objects and taken $r$ object at a time is given by $$^n P_r = \frac{n!}{(n-r)! \cdot p!}$$
Here if we put that, it comes out as $$\frac{7\times6}{5! \times 2!}$$ But it's a fraction: $$\frac{42}{120 \times 2} = \frac{21}{120}$$ and not 4
How where am I wrong.
nobjects whereP1objects are of one kind,P2of second kind, ...Pkofkth kind and the rest if any are of different kind isn! / (P1! × P2! ... × Pk!). In your case it will becomen! / p!. Source : see topic 7.3.4 in this pdf for explanation – frakod Nov 05 '21 at 09:22