There are $m$ numbers and each can take values between $1$ to $n$. Also, the mean of these numbers is given to be $x$. If someone selects one number at random out of $m$ numbers, find
the probability that its value is $1$ ?
the probability that its value is $2$ ?
$ \quad.\quad . \quad. $
- the probability that its value is $n$ ?
Eg. If $x=1$ then all the numbers have to be $1$. Hence probability that number will be $1$ is one and all other probabilities are zero.
Similarly if $x=n$ then all the numbers have to be $n$. Hence probability that number will be $n$ is one and all other probabilities are zero.
I would start with $m=2$ and $m=3$ because you can picture data points in a square or a cube.
For $m=2$, there is one formula when the sum is less than or equal to $n+1$ and another when the sum is greater than or equal to $n+1$. The turning point is the corners of the square $(n,1)$ and $(1,n)$.
The numerator of the probability is piecewise constant, and the denominator is piecewise linear.
For $m=3$, the formula changes at $n+2$ and $2n+1$ because of the cube's corners at $(n,1,1)$ and so on.
I think the numerator is piecewise linear, and the denominator is piecewise quadratic.
I think the following recursive formula is right.
I will define a sequence of functions $P_m(s)$ for the number of ways the sum of $m$ numbers can equal $s$. It is piecewise polynomial, degree $m-1$.
$$P_0(0)=1, P_0(s)=0 \text{ otherwise}\\ P_m(s)=\sum_{k=1}^n P_{m-1}(s-k)$$ Then the probability a number is $j$ is
$$\frac{P_{m-1}(s-j)}{P_m(s)}$$ The following image is for m=6, n=10