Assignment:
Consider the following grid:
Q1) How many squares (of all sizes) are there in this grid?
Q2) How many rectangles (of all sizes) are there in this grid?
Q3) Can you generalize your results to an n by n grid? Can you generalize further?
Provide complete and step by step solution for the question and show calculations and use formulas.