No red allowed

In the above image, how many rectangles are there which do not include any red squares?


The answer is 257.

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.

3 solutions

Pawan Kumar
Mar 20, 2015

Let the Horizontal lines from bottom to top be h 0 , h 1 , . . . , h 6 h_{0}, h_{1}, ..., h_{6} and Vertical lines from left to right be v 0 , v 1 , . . . , v 6 v_{0}, v_{1}, ..., v_{6}

Total Rectangles = 7 C 2 × 7 C 2 = 441 = 7C_{2} \times 7C_{2} = 441

Rectangles that contain bottom left red square is all rectangles that can be formed by choosing one horizontal line from { h 0 , h 1 } \{h_{0}, h_{1}\} , another horizontal line from { h 2 , . . . , h 6 } \{h_{2}, ..., h_{6}\} and one vertical line from { v 0 , v 1 } \{v_{0}, v_{1}\} , another vertical line from { v 2 , . . . , v 6 } \{v_{2}, ..., v_{6}\} .

Total number of rectangles that contain bottom left red square = = ( 2 C 1 × 5 C 1 ) × ( 2 C 1 × 5 C 1 ) = 100 (2C_{1} \times 5C_{1}) \times (2C_{1} \times 5C_{1}) = 100

Similarly, total number of rectangles that contain top right red square = = ( 2 C 1 × 5 C 1 ) × ( 2 C 1 × 5 C 1 ) = 100 (2C_{1} \times 5C_{1}) \times (2C_{1} \times 5C_{1}) = 100

Total number of rectangles that contain both the red squares are all the rectangles that can be formed by choosing one horizontal line from { h 0 , h 1 } \{h_{0}, h_{1}\} , another horizontal line from { h 5 , h 6 } \{h_{5}, h_{6}\} and one vertical line from { v 0 , v 1 } \{v_{0}, v_{1}\} , another vertical line from { v 5 , v 6 } \{v_{5}, v_{6}\} .

Total number of rectangles that contain both the red squares = = ( 2 C 1 × 2 C 1 ) × ( 2 C 1 × 2 C 1 ) = 16 (2C_{1} \times 2C_{1}) \times (2C_{1} \times 2C_{1}) = 16

From principle of inclusion-exclusion:

Rectangles without any red squares = = 441 ( 100 + 100 16 ) = 257 441 - (100+100-16) = 257

Yes. Isn't it nice how there's such a simple way to count? Anyone that tried to list out all the possible rectangles would have had a hard time to get to 257.

Chung Kevin - 6 years, 2 months ago

Log in to reply

That's the beauty of mathematics... First it teaches us to count, then it teaches us to logically count... :-)

Pawan Kumar - 6 years, 2 months ago

Log in to reply

Lol, that's an interesting quote!

Chung Kevin - 6 years, 2 months ago

Yes, it was very hard for me to count all 257...

Andrew Carratu - 9 months, 3 weeks ago

Interesting, I counted the number of rectangles that could be created in the 4 × 4 4\times4 squares in the bottom right and top left then the squares formed in each corner. This is a much nicer method.

Trevor B. - 6 years, 2 months ago

Log in to reply

This requires a tedious method of partitions of the set by which I couldn't get the answer

Ariijit Dey - 3 years, 8 months ago

Log in to reply

See Andrea's solution below. Once you commit to doing it tediously, the case work isn't that bad. Trying to be "smart" about it makes the count trickier.

Chung Kevin - 3 years, 8 months ago
Otto Bretscher
Mar 19, 2015

We will use the inclusion-exclusion principle: The answer is (all rectangles) - 2(rectangles containing the red square in the top right) + (rectangles containing both squares) = ( 7 6 2 ) 2 (\frac{7*6}{2})^2 - 2 * 25 * 4 + 4 * 4 = 257. ) To understand this way of counting, draw a Venn diagram! To count all rectangles, we observe that there are ( 7 2 ) = 7 6 2 = 21 \binom{7}{2} = \frac{7*6}{2} = 21 choices for the left and the right edges and as many for the lower and the upper edges. To count the rectangles that contain the red square in the top right, note that there are 25 choices for the lower left corner and 4 choices for the upper right corner. (The lower left corner has to be to the left and below the red square, while the upper right corner has to be to the right and above.) By symmetry, there are just as many rectangles (namely, 100) containing the red square in the lower left. Likewise, for the rectangles containing both squares there are 4 choices for the lower left corner as well as for the upper right corner.

Thanks! I made a mistake with the counting, and so was off by 8.

Chung Kevin - 6 years, 2 months ago

Log in to reply

Same here(at first)

Daksh Shami - 6 years, 2 months ago

I found 265

Lucas Malacrida - 5 years, 7 months ago

This method of looking at corners is quite interesting.

rohit mishra - 1 year, 8 months ago
Andrea Virgillito
Feb 14, 2017

I've simply counted all the possible rectangles with area 1(1×1),2(1×2),3(1×3),4(1×4 or 2×2)..and so on..that do not include the two red squares. It's very simple and due to the symmetry of the two red squares for example rectangles 1×3 are as many as rectangles 3×1. 34+52+40+28+17+16+8+24+14+8+4+2+8+2=257

Simple works too :)

Chung Kevin - 4 years, 3 months ago

I tried this but forgot to count the squares, (1x1, 2x2 ...)

Fred Shaw - 2 years, 5 months ago

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...