Consider a set of n antennas of which m are defective and n-m are functional and assume that all of the defectives and all of the functionals are considered indistinguishable. How many linear orderings are there in which no two defectives are consecutive?
@ganeshie8 @PaxPolaris @sangya21 @Compassionate @uri
freaky
lol the phrasing is freaky but the problem is simple
its equivalent to below problem : you have `n` students of which `m` are girls, find the number of possible arrangements such that no two girls are together
if it didn't matter where the defectives go ... the answer would simply be (n choose m)
if m > n/2 ... the answer would be 0
@ganeshie8
i could recursively calculate that for any number of n and m ... but no idea what the general formula would be :(
*correction if m>(n+1)/2 the answer would be 0. if m=(n+1)/2 the answer would be 1.
\[\text{if }m=2, \to {n\choose 2}-(n-1)={n-1 \choose 2}\]\[\text{if }m=3, \to {n-2 \choose 3}\text{ for }\]\[\text{if }m=4, \to {n-3 \choose 4}\] general formula: ((n-m+1) choose m)
what's the simple way to get this ? @ganeshie8
@perl
so basically you have m F's and n-m S's
set { F F F F F , S S S S S } and you want no two F's together
FSFSFSFSSS , for example
lets use smaller numbers, { F F S S SS } F S F S SSS so you have this F S F , that is moving 1 step to the right, how many steps is it moving?
do you see how 'FSF' is moving F S F S S S S F S F S S S S S F S F
this should work \[\rm \binom{n-m+2}{m} (n-m)!\] Notice, the problem makes sense only when \(\rm m >= \frac{n}{2}+1\)
the answer is:\[\large{n-m+1 \choose m}\] it has to always be smaller than (n choose m)
yes that looks good as the objects are indistinguishable
Join our real-time social learning platform and learn together with your friends!