Question
Question: Consider all functions that can be defined from the set A = {1,2,3} to set B = {1,2,3,4,5,6,7} and a...
Consider all functions that can be defined from the set A = {1,2,3} to set B = {1,2,3,4,5,6,7} and a function f(x) is selected at random from these functions. If the probability that selected function satisfies f(i) ≤ f(j) for i<j is equal to p, then greatest integral value of p1 is equal to:

Answer
4
Explanation
Solution
Here's how to solve this problem:
-
Total number of functions: Since a function f:A→B with ∣A∣=3 and ∣B∣=7 can be any assignment, the total number of functions is
73=343. -
Counting non-decreasing functions: We require f(1)≤f(2)≤f(3). This is equivalent to choosing a multiset of 3 elements from 7 available elements. The number of ways is given by the “combination with repetition” formula:
(37+3−1)=(39)=84. -
Probability p:
p=34384. -
Compute p1:
p1=84343=7×1273=1249≈4.0833.The greatest integral value (i.e. the floor) is 4.