
Alisa T.
asked 07/28/22How many rectangles are there with vertices within the following grids? In an m by n grid
1 Expert Answer

Ryan C. answered 07/29/22
Ivy League Professor | 10+ Years Experience | Patient & Kind
Assuming a m x n grid is a m x n tessellation of squares, we can think of this grid as a collection of m+1 parallel horizontal lines and n+1 parallel vertical lines. To construct any rectangle in this grid, we need to choose two horizontal lines and two vertical lines. The number of possible ways to choose two horizontal lines from m + 1 horizontal lines is m+1C2 = m(m+1)/2. Similarly, the number of possible ways to choose two vertical lines from n + 1 vertical lines is n+1C2 = n(n+1)/2. Thus, the total number of possible rectangles is m+1C2*n+1C2 = mn(m+1)(n+1)/4 by the Fundamental Counting Principle.
Still looking for help? Get the right answer, fast.
Get a free answer to a quick problem.
Most questions answered within 4 hours.
OR
Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.
Mark M.
No grids are following! What is a m x n grid?07/28/22