suppose $m$ men and $n$ women from a single line in such a way that no two men are next to each other and no women are next to each other how many lineup are possible ?
Never solved these problems before with $m$ and $n$
suppose $m$ men and $n$ women from a single line in such a way that no two men are next to each other and no women are next to each other how many lineup are possible ?
Never solved these problems before with $m$ and $n$
If my understanding of your question is okay then no lineups are possible if $|m-n|>1$.
If $|m-n|=1$ then there are $m!n!$ possibilities.
If $m=n$ then there are $2m!n!=2n!n!=2m!m!$ possibilities. Factor $2$ because the person most left can be a man or a woman.