# What Squares Are in the Square Grid?

What Squares Are in the Square Grid?

Given a square grid of size, this Demonstration shows each of its grid subsquares or grid subrectangles. The formula enumerating subsquares is . The formula enumerating subrectangles is .

n×n

n(n+1)(2n+1)/6

(n(n+1)/2)

2