Skip to main content

2015 AIME II Problem 5

Problem 5 of 15EasierAlgebraCombinatoricsProbability & Statistics

Two unit squares are selected at random without replacement from an n×nn \times n grid of unit squares. Find the least positive integer nn such that the probability that the two selected squares are horizontally or vertically adjacent is less than 12015.\frac{1}{2015}.

Your answer

Integer from 0 to 999
Show solution

Solution

Each of the nn rows contains n−1n - 1 horizontally adjacent pairs, so there are n(n−1)n(n-1) horizontal pairs and likewise n(n−1)n(n-1) vertical pairs. Out of (n22)=n2(n2−1)2\binom{n^2}{2} = \frac{n^2(n^2-1)}{2} equally likely pairs, the probability of adjacency is 2n(n−1)⋅2n2(n2−1)=4n(n+1).\frac{2n(n-1) \cdot 2}{n^2(n^2 - 1)} = \frac{4}{n(n+1)}. We need n(n+1)>4⋅2015=8060.n(n+1) \gt 4 \cdot 2015 = 8060. Since 89⋅90=801089 \cdot 90 = 8010 and 90⋅91=8190,90 \cdot 91 = 8190, the least such nn is 90.90.
AoPS wiki

Tagged: basic probability · counting pairs · inequality

More practice