Question:medium

The numbers \(1, 2, 3, \ldots, m\) are arranged in random order. The number of ways this can be done, so that the numbers \(1, 2, \ldots, r \, (r < m)\) appear as neighbours is:

Show Hint

When numbers are restricted to be together, treat them as a single block and arrange accordingly. Multiply by the number of ways to arrange the numbers within the block.
Updated On: Nov 28, 2025
  • \((m - r)!\)
  • \((m - r + 1)!\)
  • \((m - r)!r!\)
  • \((m - r + 1)!r!\)
Hide Solution

The Correct Option is B

Solution and Explanation

Step 1: Given numbers \( 1, 2, 3, \ldots, m \), arrange them so \( 1, 2, \ldots, r \) are neighbors.

Step 2: Consider \( 1, 2, \ldots, r \) as one block. This simplifies to arranging \( m - r + 1 \) items: the block and the other \( m - r \) numbers.

Step 3: The arrangements for these \( m - r + 1 \) objects is:

\[ (m - r + 1)! \]

Step 4: The \( r \) numbers within the block can be arranged in \( r! \) ways.

Step 5: Thus, the total arrangements equal the product:

\[ (m - r + 1)! \times r! \]

Conclusion:

The total arrangements with \( 1, 2, \ldots, r \) as neighbors is:

\[ (m - r + 1)! r! \]

Was this answer helpful?
3