The diagram shows an orange semicircle with radius
. Two cyan semicircles are growing and shrinking symmetrically so they are internally tangent to the orange semicircle. Each pink circle is internally tangent to the orange semicircle and tangent to a cyan semicircle. One cyan semicircle and its tangent pink circle share the same
coordinate. Using the \four centers, we draw a black rectangle. When the area of the black rectangle is
maximum
, its perimeter can be expressed as
, where
,
and
are positive integers and
is square-free. Find
.
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.
Let the center of the large semicircle be O , radii of the cyan semicircle and pink circle at any instant be r 1 and r 2 respectively. By Pythagorean theorem ,
( r 1 + r 2 ) 2 + ( 1 − r 1 ) 2 ⟹ r 2 = ( 1 − r 2 ) 2 = 1 + r 1 r 1 − r 1 2
The area of the rectangle is given by:
A d r 1 d A 1 − 2 r 1 − r 1 2 ⟹ r 1 ⟹ r 2 = 2 ( 1 − r 1 ) ( r 1 + r 2 ) = 1 + r 1 4 r 1 ( 1 − r 1 ) = ( 1 + r 1 ) 2 4 ( 1 − 2 r 1 ) ( 1 + r 1 ) − 4 r 1 ( 1 − r 1 ) = ( 1 + r 1 ) 2 1 − 2 r 1 + r 1 2 = 0 = 2 − 1 = 1 + r 1 r 1 − r 1 2 = 3 − 2 2 Putting d r 1 d A = 0 when A is maximum.
Then the perimeter of the rectangle is 4 ( 1 − r 1 ) + 2 ( r 1 + r 2 ) = 1 2 − 6 2 . And p + q − m = 1 2 + 6 − 2 = 4 .