-3

In a $2 × 4$ rectangle grid shown below, each cell is a rectangle. How many rectangles can be observed in the grid?

rectangular_grid


My attempt:

I found a formula somewhere,

Number of rectangles are $= m(m+1)n(n+1)/4 = 2\times4\times3\times5/4 = 30$.

Can you please explain this?


Upadte -

The post How many rectangles or triangles. looks similar, but that has $3 \times 4$ grid and I need more variant explanation.

hululu
  • 4,913

1 Answers1

4

To form a rectangle, we must choose two horizontal sides and two vertical sides. Since there are three horizontal lines, we can choose the horizontal sides in $\binom{3}{2}$ ways. Since there are five vertical lines, we can choose the vertical sides in $\binom{5}{2}$ ways. The number of rectangles we can form is $$\binom{3}{2}\binom{5}{2}$$

In general, the number of rectangles can be formed in a $m \times n$ rectangular grid with $m + 1$ horizontal lines and $n + 1$ vertical lines is the number of ways we can select two of the $m + 1$ horizontal lines and two of the $n + 1$ vertical lines to be the sides of the rectangle, which is $$\binom{m + 1}{2}\binom{n + 1}{2} = \frac{(m + 1)!}{(m - 1)!2!} \cdot \frac{(n + 1)!}{(n - 1)!2!} = \frac{(m + 1)m}{2} \cdot \frac{(n + 1)n}{2}$$

N. F. Taussig
  • 79,074