Mathematics (JEE)ModerateCAT · MBA placement
How many functions f from {1, 2, 3, 4} to {1, 2, 3, 4, 5} are non-decreasing, meaning f(1) <= f(2) <= f(3) <= f(4)?
- A. 625
- B. 70
- C. 126
- D. 35
Correct answer: B. 70
A non-decreasing sequence of length 4 with values in {1,...,5} is a multiset of size 4 from 5 values, counted by C(5+4-1, 4) = C(8,4) = 70.
Practise more Permutations, Combinations and Probability questionsPermutations, Combinations and Probability: notes and key points
More Permutations, Combinations and Probability questions
- How many functions f from {0, 1, 2, 3, 4, 5} to itself satisfy f(f(x)) = x for every x?
- How many ways are there to partition the set {1, 2, 3, 4, 5, 6, 7} into exactly 3 blocks, where every block has at least 2 elements? The…
- In how many ways can the set {1, 2, 3, 4, 5, 6} be split into 3 non-empty blocks, where blocks are unlabelled (only the grouping matters)?
- Four married couples sit around a round table with 8 seats. Seatings that differ by a rotation are the same, but mirror images are…
- How many permutations p of {1, 2, ..., 7} satisfy p(1) < p(2) > p(3) < p(4) > p(5) < p(6) > p(7)?
- How many permutations of {1, 2, ..., 7} have exactly one descent, that is, exactly one position i with p(i) > p(i+1)?