How to do this using permutation and combination

I’ve never heard of the “gap method” before, is that what you linked?

edit: oh, guess it’s just another thing I don’t know about

you mean k-1 ?

I dont know what this method is called in other countries :sweat_smile: but in india, we called it Gap method-
If there are m men and n women (m > n) and they have to sit in a row in such a way that no two women sit together then total no. of such arrangements = (m+1Cn)*m!

Yes

1 Like

I never really bothered to learn combinatorics or identities for it, so that’s just your advantage :stuck_out_tongue:

3 Likes

Okay :sweat_smile:

1 Like

I tried deriving a formula for it again (and failed). But this is better than the first attempt :stuck_out_tongue:.
Here is the result:
\forall \ n \ge 3: (k-1)k^{n-1} - \displaystyle\sum_{i \ = \ 2}^{n \ - \ 1}\Bigg({{i}\choose{2}}-i+1\Bigg)(k-1)^{n-i+1}
I can’t explain how, it was a mess.
Can you please suggest some nice websites for combinatorics/NT? I want to improve in math.

1 Like

I see you are just in high school, We would love to know how you got so good.
Tell us about your journey : )

1 Like

It’s quite simple - I grinded USACO, then grinded CF, and am now grinding AtCoder.

3 Likes