How Many Squares?

Probability Level pending

In the 3 × 3 3\times3 grid, there are 9 9 squares with the side length of 1 1 , 4 4 squares with the side length of 2 2 and 1 1 square with the side length of 3 3 , making 9 + 4 + 1 = 14 9+4+1=\boxed{14} squares totally.

How many squares are there in the 100 × 100 100\times100 grid?


The answer is 338350.

This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try refreshing the page, (b) enabling javascript if it is disabled on your browser and, finally, (c) loading the non-javascript version of this page . We're sorry about the hassle.

1 solution

Tarmo Taipale
Nov 19, 2016

There are squares with side lengths k k where 1 k 100 1\leq{k}\leq100 . With each side length k k , there are ( 101 k ) 2 (101-k)^2 possible unit squares to be the bottom left corner of the k × k k\times{k} square, as the picture below shows.

This means there are ( 101 k ) 2 (101-k)^2 squares with any side length k k and the total number of squares is k = 1 100 ( 101 k ) 2 = 10 0 2 + 9 9 2 + . . . + 2 2 + 1 2 = 1 2 + 2 2 + . . . + 9 9 2 + 10 0 2 = k = 1 100 ( k 2 ) \sum_{k=1}^{100}(101-k)^2=100^2+99^2+...+2^2+1^2=1^2+2^2+...+99^2+100^2=\sum_{k=1}^{100}(k^2) .

k = 1 100 ( k 2 ) = k = 1 100 ( k × 2 k 2 ) = k = 1 100 ( k ( 2 k + 2 ) 2 k ) = 2 k = 1 100 ( k ( k + 1 ) 2 ) k = 1 100 ( k ) = k = 2 101 ( k 2 ) 100 ( 100 + 1 ) 2 \sum_{k=1}^{100}(k^2)=\sum_{k=1}^{100}(\frac{k\times{2k}}{2})=\sum_{k=1}^{100}(\frac{k(2k+2)}{2}-k)=2\sum_{k=1}^{100}(\frac{k(k+1)}{2})-\sum_{k=1}^{100}(k)=\sum_{k=2}^{101}\displaystyle{k \choose 2}-\frac{100(100+1)}{2} .

By Hockey Stick Identity, k = r n ( k r ) = ( n + 1 r + 1 ) \sum_{k=r}^{n}\displaystyle{k\choose{r}}=\displaystyle{n+1 \choose{r+1}} .

We get

k = 2 101 ( k 2 ) 100 ( 100 + 1 ) 2 = ( 102 3 ) 5050 = 343400 5050 = 338350 \sum_{k=2}^{101}\displaystyle{k \choose 2}-\frac{100(100+1)}{2}=\displaystyle{102 \choose3}-5050=343400-5050=\boxed{338350} .

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...