Mathematics (JEE)HardGATE CS
How many permutations of {1, 2, ..., 7} have exactly one descent, that is, exactly one position i with p(i) > p(i+1)?
- A. 720
- B. 240
- C. 127
- D. 120
Correct answer: D. 120
This is the Eulerian number A(7,1) = 2^7 - 7 - 1 = 120, since A(n,1) = 2^n - n - 1 for n = 7 gives 128 - 8 = 120.
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, ..., 6} satisfy |p(i) - i| != 1 and p(i) != i for every i from 1 to 6?
- How many strings of length 5 over the alphabet {0, 1, 2, 3} have no two equal adjacent symbols and do not begin with 0?
- How many distinct arrangements of the letters of CODEFORCES have no two identical letters in adjacent positions? (The letters C, O and E…
- How many subsets of {1, 2, ..., 12} (including the empty set) contain no two elements whose difference is 1 or 2?
- How many 4-element subsets of {1, 2, ..., 20} contain no two consecutive integers?
- How many integers from 1 to 1000 are divisible by none of 2, 3, 5 and 7?