Roll an m-sided die n times. Return the expected value of the largest roll.
m
n
Easiest through the tail sum. The maximum is at least v unless every roll came in below it:
v
Input
n = 2 m = 6
Output
4.472222222222222
This one's part of Premium. Unlock the full Probability track plus every other premium problem on the site.
solve(...)