Intersecting Squares and Circles

Two players play a game using the interval [ 0 , 33 ] [0,33] on the x x -axis. The first player randomly chooses a square of side length s Z + s \in \mathbb{Z}^+ , which has a side that lies entirely on the interval. The second player randomly chooses a circle with radius r Z + r \in \mathbb{Z}^+ , which has a diameter that lies entirely on the interval. After repeating choosing random squares and circles in this fashion, the players realize that the probability that the circle and square intersect is 1 2 \frac{1}{2} . Let S = { ( s , r ) : probability of intersection is 1 2 } S = \{(s,r) : \mbox{probability of intersection is } \frac{1}{2}\} . Determine ( s , r ) S ( s + r ) . \sum\limits_{(s,r) \in S} (s + r).

Details and assumptions

Clarification of notation: The set S S is the set of all ordered pairs of integers, ( s , r ) (s, r) , such that the probability that a square of side length s s and a circle of radius r r will intersect is 1 2 \frac {1}{2} .

The notation Z + \mathbb{Z}^+ denotes positive integers.

Clarification: A shape consists of the perimeter and the interior. 2 figures can intersect in their interior without intersecting on their perimeter.


The answer is 12.

This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try refreshing the page, (b) enabling javascript if it is disabled on your browser and, finally, (c) loading the non-javascript version of this page . We're sorry about the hassle.

2 solutions

James Aaronson
May 20, 2014

Right, so let 2r = R, and s = S. Simon chooses an interval of length S, and Rachel chooses an interval of length R. We want to determine the probability that the intervals intersect. Let's assume that R + S < 33, since otherwise that probability is 1.

So if Simon chooses first, he picks a real number, x in [0,33 - S] to be the left endpoint of his interval. Then, Rachel selects a real number in [0,33 - R]. The intervals intersect iff Rachel's is in [x-R, x + S - R], and so the probability of this happening is:

1/(33-R) * (min(33 - R, x + S - R) - max(0, x - R))

We want to integrate this over all possibilities for x. Note that x has uniform distribution, so the integral we're calculating is:

1/(33-R)(33-S) * integral from 0 to (33-S) of (min(33 - R, x + S - R) - max(0, x - R)).

I'll leave out the details, but what we do from here is separate the min and max integrals, translate the min integral so it's (33 - R) + min(0, x + S - 33), substitute to get min(0,y) and max(0,z), reflect the min integral and notice that the limits are the same to get:

1 - 2/(33-R)(33-S) * integral from -R to (33 - S - R) of max(0,z) dz.

We ignore the part of the integral to 0, and recall that S + R < 33 to obtain an equation in R and S that we want to solve:

2(33 - S - R)^2 = (33 - S)(33 - R).

Now, R is even, so S must be odd as LHS is even. Hence, 33 - S - R is even and so 33 - S is divisible by 8. One way to finish from here is to solve the four quadratic equations you get for S = 1,9,17,25 and notice that (R,S) = (6,9) is the only one that works, giving an answer of 12.

No justification that circle and square intersect if and only if the segments on the line do. Also, skipped details in the rest of the proof.

Calvin Lin Staff - 7 years ago
Calvin Lin Staff
May 13, 2014

For the circle and the square to intersect, they must intersect at a point along the interval, since if they have a point of intersection at ( m , n ) (m,n) then they also have an intersection at ( m , 0 ) (m,0) .

Let x x be the leftmost point of the interval of length 2 r 2r and y y the leftmost point of the interval with length s s . We have the inequalities 0 x 33 2 r 0 \leq x \leq 33 - 2r and 0 y 33 s 0 \leq y \leq 33 - s , and x , y x,y are randomly distributed along these intervals. In order for the intervals to intersect, we need to have y x 2 r y - x \leq 2r and x y s x - y \leq s . We graph these in the figure below

The interior region is the set of points where both inequalities are satisfied, and so these are the points where the segments will intersect. The two outer triangles each have both their side lengths 33 s 2 r 33 - s - 2r , so the sum of their areas is ( 33 s 2 r ) 2 (33-s-2r)^2 , and the area of the whole region is ( 33 s ) ( 33 2 r ) (33 -s)(33-2r) . In order for the probability that the segments intersect to be 1 2 \frac{1}{2} , we must have ( 33 s 2 r ) 2 ( 33 s ) ( 33 2 r ) = 1 2 \frac{(33-s-2r)^2}{(33-s)(33-2r)} = \frac{1}{2} .

We examine the numerator and denominator of the LHS of this equation. Since r r and s s are both integers, the numerator and denominator must be integers, such the the denominator is twice the numerator. Since 2 divides the denominator, we must have 33 s 33-s is even, and so s s is odd. Having s s odd means that ( 33 s 2 r ) (33-s-2r) is also even, and so we must have 8 ( 33 s ) 8 \mid (33-s) . This gives s = 1 , 9 , 17 , 25 , 33 s = 1, 9, 17, 25, 33 as possible solutions.

Note that 33 s 2 r 33-s-2r must be positive. [In fact, we have further restrictions. We cannot have s 17 s \geq 17 , since then for any positive r r value the probability that they intersect will be greater than a half, because the segment of length s s would cover over half the interval [ 0 , 33 ] [0,33] . Likewise, we cannot have r 9 r \geq 9 , since for any positive s s value, the probability that they will intersect is greater than a half because the segment of length 2 r 2r would cover over half the interval [ 0 , 33 ] [0, 33] .

If s = 1 s = 1 , we have ( 32 2 r ) 2 32 ( 33 r ) = 1 2 \frac{(32 - 2r)^2}{32(33-r)} = \frac{1}{2} or equivalently ( 32 2 r ) 2 = 16 ( 33 2 r ) (32-2r)^2 = 16(33-2r) . This has solutions 12 ± 2 5 12 \pm 2\sqrt{5} which are not integers.
If s = 9 s = 9 , we have ( 24 2 r ) 2 24 ( 33 2 r ) = 1 2 \frac{(24 - 2r)^2}{24(33-2r)} = \frac{1}{2} . This quadratic equation is 0 = 4 r 2 72 r + 180 = 4 ( r 3 ) ( r 15 ) 0=4r^2 - 72r + 180= 4(r-3)(r-15) . If r = 15 r=15 , this contradicts 33 s 2 r > 0 33-s-2r > 0 and r 9 r \leq 9 . If r = 3 r=3 , we see that 33 s 2 r = 18 33 - s - 2r = 18 is positive, and our answer is valid.

Thus, the only solution is s = 9 , r = 3 s = 9, r = 3 so ( s , r ) S ( s + r ) = 9 + 3 = 12. \sum\limits_{(s,r) \in S} (s + r) = 9 + 3 = 12.

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...