Solveeit Logo

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 1p\frac{1}{p} is equal to:

Answer

4

Explanation

Solution

Here's how to solve this problem:

  1. Total number of functions: Since a function f:ABf : A \rightarrow B with A=3|A|=3 and B=7|B|=7 can be any assignment, the total number of functions is

    73=343.7^3 = 343.
  2. Counting non-decreasing functions: We require f(1)f(2)f(3)f(1) \le f(2) \le 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:

    (7+313)=(93)=84.\binom{7+3-1}{3} = \binom{9}{3} = 84.
  3. Probability pp:

    p=84343.p = \frac{84}{343}.
  4. Compute 1p\frac{1}{p}:

    1p=34384=737×12=49124.0833.\frac{1}{p} = \frac{343}{84} = \frac{7^3}{7 \times 12} = \frac{49}{12} \approx 4.0833.

    The greatest integral value (i.e. the floor) is 4.