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?
- A. 81
- B. 256
- C. 32
- 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.
Practise more Permutations, Combinations and Probability questionsPermutations, Combinations and Probability: notes and key points
More Permutations, Combinations and Probability questions
- How many permutations of {1, 2, ..., 7} have exactly 2 cycles in cycle notation (fixed points count as cycles)?
- How many nonempty subsets of {1, 2, ..., 8} have an element sum divisible by 6?
- How many 4-element subsets of {1, 2, ..., 12} contain no two elements whose difference is exactly 4?
- How many functions f from {1, 2, 3, 4, 5} onto {1, 2} (both values attained) satisfy f(1) != f(2)?
- How many 3-element subsets of {1, 2, ..., 7} can be listed in increasing order as a, b, c with b - a = c - b (an arithmetic progression)?
- How many permutations of {1, 2, 3, 4, 5} have at most one fixed point (values i with p(i) = i)?