MathCastle
Counting & ProbabilitySuperchallengeExpected Value, Linearity & Advanced Probability

Expected Value, Linearity & Advanced Probability · Superchallenge problem

A point is chosen uniformly at random inside a unit square. Find the expected distance from the point to the nearest side.

The answer is a fraction mn\tfrac{m}{n} in lowest terms; find m+nm + n.