Inside a rectangle there is an infinite series of green squares and an infinite series of orange squares. Every square touches their neighbour squares, have one side on one of the rectangle’s sides and a vertex lying on the diagonal that connects the upper-left and the bottom-right vertices of the rectangle. One square shares its bottom-left vertex with the rectangle and another one shares its upper-right vertex with the rectangle.
The dimensions of the rectangle are two integers that differ by 2 length units.
The fraction of the rectangle that has not been covered by the squares (the yellow region) is .
Find the perimeter of the rectangle.
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 width of the rectangle be w , and the length be w + 2 , and place the rectangle on a coordinate system so that the bottom left corner is on the origin.
Then the line on the diagonal of the rectangle is y = − w + 2 w + w , and the line on the diagonal of the dark green square is y = x , and these lines intersect at ( 2 ( w + 1 ) w ( w + 2 ) , 2 ( w + 1 ) w ( w + 2 ) ) , so the side of the dark green square is s = 2 ( w + 1 ) w ( w + 2 ) .
Now look at just three green squares in a row, and let their widths be a , b , and c .
Then the two triangles are similar, which means a a − b = b b − c , which can be rearranged to a b = b c , which means a , b , and c follow a geometric progression.
This means that for some ratio r l , the length of the rectangle is w + 2 = s + r l ( s + r l ( s . . . , or w + 2 = s + r l ( w + 2 ) , which solves to r l = 1 − w + 2 s , and the sum of the areas of the light green squares along the length is A l = r l 2 s 2 + r l 2 ( r l 2 s 2 + r l 2 ( r l 2 s 2 . . . or A l = r l 2 s 2 + r l 2 A l , which solves to A l = 1 − r l 2 r l 2 s 2 . For s = 2 ( w + 1 ) w ( w + 2 ) , r l solves to r l = 2 ( w + 1 ) w + 2 and A l solves to A l = 4 ( w + 1 ) 2 ( 3 w + 4 ) w ( w + 2 ) 4 .
Likewise, for some ratio r w , the width of the rectangle is w = s + r w ( s + r w ( s . . . , or w = s + r w w , which solves to r w = 1 − w s , and the sum of the areas of the light green squares along the width is A w = r w 2 s 2 + r w 2 ( r w 2 s 2 + r w 2 ( r w 2 s 2 . . . or A w = r w 2 s 2 + r w 2 A w , which solves to A w = 1 − r w 2 r w 2 s 2 . For s = 2 ( w + 1 ) w ( w + 2 ) , r w solves to r w = 2 ( w + 1 ) w and A w solves to A w = 4 ( w + 1 ) 2 ( 3 w + 2 ) w 4 ( w + 2 ) .
The area of all the green squares is A G = s 2 + A l + A 2 = 4 ( w + 1 ) 2 w 2 ( w + 2 ) 2 + 4 ( w + 1 ) 2 ( 3 w + 4 ) w ( w + 2 ) 4 + 4 ( w + 1 ) 2 ( 3 w + 2 ) w 4 ( w + 2 ) = 4 ( w + 1 ) 2 ( 3 w + 2 ) ( 3 w + 4 ) w ( w + 2 ) ( 3 w 2 + 6 w + 4 ) ( 5 w 2 + 1 0 w + 4 ) .
If the area of the rectangle is A R = w ( w + 2 ) , then by symmetry the area of the yellow crack is A R − 2 A G , and the fraction of the yellow crack to the rectangle is A R A R − 2 A G = 1 − A R 2 A G = 1 − 2 ( w + 1 ) 2 ( 3 w + 2 ) ( 3 w + 4 ) ( 3 w 2 + 6 w + 4 ) ( 5 w 2 + 1 0 w + 4 ) = 2 ( w + 1 ) 2 ( 3 w + 2 ) ( 3 w + 4 ) w ( w + 2 ) ( 3 w 2 + 6 w + 2 ) .
Setting 2 ( w + 1 ) 2 ( 3 w + 2 ) ( 3 w + 4 ) w ( w + 2 ) ( 3 w 2 + 6 w + 2 ) = 4 5 7 6 7 0 5 and simplifying gives ( w − 3 ) ( w + 5 ) ( 5 1 9 w 2 + 1 0 3 8 w + 3 7 6 ) = 0 , which solves to w = 3 for w > 0 .
Therefore, the width is w = 3 , the length is w + 2 = 5 , and the perimeter is 3 + 5 + 3 + 5 = 1 6 .