Mathematics (JEE)Very hardJEE Advanced pattern

The number of bijections f: {1, 2, 3, 4, 5} → {1, 2, 3, 4, 5} with |f(i) − i| ≤ 1 for every i is:

  1. A. 5
  2. B. 8
  3. C. 13
  4. D. 16

Correct answer: B. 8

Such a permutation can only fix points or swap neighbours (a longer cycle would move some element by more than 1). If aₙ counts them for {1, …, n}, then aₙ = aₙ₋₁ + aₙ₋₂ (n is fixed, or swapped with n − 1), with a₁ = 1, a₂ = 2. So a₃ = 3, a₄ = 5, a₅ = 8.

More Sets, Relations and Functions questions

Exams that ask this topic