Answer:
[tex]\frac{m(m+1)}{2}\frac{n(n+1)}{2}[/tex]
Step-by-step explanation:
We have the grid has m horizontal lines and n vertical lines
We have to find the number of rectangles
If the grid is 1×1, there is 1 rectangle.
If the grid is 2×1, there will be 2 + 1 = 3 rectangles
If it grid is 3×1, there will be 3 + 2 + 1 = 6 rectangles.
So is there is [tex]n\times 1[/tex] there will be [tex]n+(n-1)+(n-2)+(n-3)...............+1=\frac{n(n+1)}{2}[/tex]
If we add one column to [tex]n\times 1[/tex] firstly we will have as many rectangles in the 2nd column as the first,
And then we have that same number of [tex]2\times m[/tex] rectangles.
So for [tex]n\times 2=\frac{3n(n+1)}{2}[/tex] rectanglesAfter solving this we can say
For [tex]n\times m[/tex] we have [tex]\frac{m(m+1)}{2}\frac{n(n+1)}{2}[/tex] rectangles.