Question:medium

Let \(U = \{1,2,\ldots,n\}\) with \(n > 1000\). Let \(k < n\) be a positive integer. Let \(A,B \subseteq U\) with \(|A| = |B| = k\) and \(A \cap B = \varnothing\). A permutation of \(U\) separates \(A\) from \(B\) if either all members of \(A\) appear before any member of \(B\), or all members of \(B\) appear before any member of \(A\).

How many permutations of \(U\) separate \(A\) from \(B\)?

Updated On: Feb 3, 2026
  • $n!$
  • $\binom{n}{2k}(n-2k)!$
  • $\binom{n}{2k}(n-2k)!\,(k!)^2$
  • $2\binom{n}{2k}(n-2k)!\,(k!)^2$
Show Solution

The Correct Option is A

Solution and Explanation

To solve the problem, we need to determine how many permutations of the set \( U = \{1,2,\ldots,n\} \) separate subset \( A \) from subset \( B \). Given that \( |A| = |B| = k \) and \( A \cap B = \varnothing \), a permutation is considered to separate \( A \) from \( B \) if either all elements of \( A \) appear before any element of \( B \), or all elements of \( B \) appear before any element of \( A \).

Let's break it down step-by-step:

  1. The total number of elements in \( U \) is \( n \).
  2. We have two disjoint subsets \( A \) and \( B \) each of size \( k \).
  3. For a permutation to separate \( A \) from \( B \), the \( k \) members of \( A \) must appear sequentially before the \( k \) members of \( B \), or vice versa.
  4. Notice that once the order between \( A \) and \( B \) is fixed (either \( A \) first then \( B \) or \( B \) first then \( A \)), the rest of the \( n - 2k \) elements in \( U \) can be arranged freely among themselves.

Now, let's compute the number of such permutations:

  • The total number of permutations of \( n \) elements is \( n! \).
  • Consider that fixing the order between \( A \) and \( B \) itself has 2 configurations: either \( A \) precedes \( B \) or \( B \) precedes \( A \). Each configuration corresponds to a division of \( n! \) into two equal parts.
  • Thus, the number of permutations where \( A \) is completely before \( B \) or vice-versa remains \( n! \).

Therefore, the total number of permutations of \( U \) such that \( A \) is separated from \( B \) is indeed \( n! \).

The correct answer is: \(\boxed{n!}\)

Was this answer helpful?
0

Top Questions on Engineering Mathematics