Breaking chocolate bar into small clean rectangles

How many clean rectangles can we form from an 8 × 8 8 \times 8 chocolate bar? Assume that square ( 4 , 4 ) (4,4) is corrupted?

Clarifications:

  • The rectangles can be of any size and shape including squares.
  • The rectangles can overlap.


The answer is 896.

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.

1 solution

David Vreken
Sep 10, 2018

Since a rectangle is formed by 2 2 horizontal segments and 2 2 vertical segments, the total number of rectangles (clean and corrupted) can be found by picking 2 2 of the 9 9 possible horizontal lines and picking 2 2 of the 9 9 vertical lines, which is ( 9 2 ) ( 9 2 ) = 1296 {9 \choose 2} \cdot {9 \choose 2} = 1296 .

The number of corrupted rectangles can be found by picking 1 1 of the 4 4 possible horizontal lines above the corrupted piece, 1 1 of the 5 5 possible horizontal lines below the corrupted piece, 1 1 of the 4 4 possible vertical lines to the left of the corrupted piece, and 1 1 of the 5 5 possible horizontal lines to the right of the corrupted piece, which is ( 4 1 ) ( 5 1 ) ( 4 1 ) ( 5 1 ) = 400 {4 \choose 1} \cdot {5 \choose 1} \cdot {4 \choose 1} \cdot {5 \choose 1} = 400 .

The number of clean rectangles is the difference between the total and the corrupted, which is 1296 400 = 896 1296 - 400 = \boxed{896} .

Excellent analysis. Thanks David.

Ossama Ismail - 2 years, 9 months ago

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...