Mathematics (JEE)HardGATE CS

How many functions f from {0, 1, 2, 3} to itself satisfy f(x) != x and f(x) != x + 1 (addition mod 4) for every x?

  1. A. 81
  2. B. 256
  3. C. 32
  4. D. 16

Correct answer: D. 16

The conditions on different x are independent: each x has 4 - 2 = 2 allowed values, so the count is 2^4 = 16.

More Permutations, Combinations and Probability questions

Exams that ask this topic