Mathematics (JEE)ModerateCodeforces Div2 C
How many permutations p of {1, 2, 3, 4, 5, 6} satisfy p(i) <= i + 1 for every i?
- A. 720
- B. 64
- C. 32
- D. 31
Correct answer: C. 32
Fill positions in order: position i may take values 1..i+1, of which i-1 are already used, leaving 2 choices for each of positions 1 to 5 and 1 choice for position 6, so the count is 2^5 = 32.
Practise more Permutations, Combinations and Probability questionsPermutations, Combinations and Probability: notes and key points
More Permutations, Combinations and Probability questions
- How many permutations p of {1, 2, 3, 4, 5, 6} satisfy p(i) >= i - 2 for every i?
- How many 3-element subsets of {1, 2, ..., 10} have an element sum divisible by 10?
- How many 3-element subsets of {1, 2, ..., 12} have every two elements differing by at least 3?
- How many integers n with 1 <= n <= 2000 are divisible by none of 4, 6 and 9?
- How many integers n with 1 <= n <= 999 have a decimal digit sum divisible by 7?
- How many necklaces of 8 beads can be made using black and white beads so that exactly 4 beads are black? Rotations identify necklaces…