$k$ dice are thrown.
I'm trying to compute the probabilities of the following two events:
$A$ - the largest number that occurred is $i$.
$B$ - the smallest number that occurred is $i$.
So far I know that the $|W|= 6^k$.
For $A$, I think that this is the answer:
$$\sum_{j=1}^k \frac{(i-1)^{k-j}\binom{k}{j}}{6^k}.$$
The reason is:
First, I'm choosing what die will get $i$, then for the rest of the dice, each one of them has $i-1$ options and dividing all with the $|W|$. In addition, I add all of the options of the amount of the dice that will get $i$ (from $1$ to $k$).
For $B$:
$$\sum_{j=1}^k \frac{(6-i)^{k-j}\binom{k}{j}}{6^k}.$$
Thank you for the help.
The probability that the largest is equal to $i$ is the difference between the probability for all being at most $i$, and that for all being less than $i$.
$$\mathsf P(\max{[X_j]}_{j=1}^k=i)~=~ \mathsf P(\bigcap_{j=1}^k \{X_j\leq i\})-\mathsf P(\bigcap_{j=1}^k \{X_j < i\})$$
Which may be evaluated using independence and identicality of distributions for the dice.
The probability that the least is equal to $i$ is likewise the difference between the probability for all being at least $i$, and that for all being greater than $i$.
$$\mathsf P(\min{[X_j]}_{j=1}^k=i)~=~ \mathsf P(\bigcap_{j=1}^k \{X_j\geq i\})-\mathsf P(\bigcap_{j=1}^k \{X_j > i\})$$
Which may again be evaluated using independence and identicality of distributions for the dice.
This is the probability that from $1$ to $k$ dice show equal to $i$ and the rest show less than $i$. Which is okay but inelegant. It would be tricky to find a closed form from this; but it is not wrong.
PS: To evaluate for $i=1$ you have to use the convention that $0^0=1$.