Let me go grab a hamburger real quick...
Ok, I'm back.
How many squares are there in the grid below? That's a reaallly good question!
Let's start by counting the smallest squares, this is just the same as counting the number of unit squares in a grid, there are 1 by 1 squares in the grid.
Now let's move on to the squares, notice that counting the number of squares in a grid is just the same as counting the number of unit squares in a grid. So the number of 2 by 2 squares in the grid is .
Now the squares, similarly, counting the number of squares in a grid is just the same as counting the number of unit squares in a grid, which is .
And again the number of squares in a grid is equal to the number of unit squares in a grid, which is .
Add up all the number of squares together: . Tada! We now have our answer! There are 50 squares in a grid.
Mmm... the hamburger is really good...
Back on topic, in general, what is the total number of squares in an grid (where is the width of the grid and is the height of the grid), given ?
Again let's start from the squares, that's trivial, there's of them.
Now moving on to the squares, the number of squares in an grid is equal to the number of unit squares in an grid.
Notice the pattern? Counting the number of squares in an grid is the same as counting the number of unit squares in an grid.
The largest square that can contain in an grid given that is .
Hence, the total number of squares in an grid is Or
This is ugly, we don't like sigma symbols sitting around, so why not we simplify this a little bit...
BOOM! There we have it! *Round of applause* *Fireworks* *Pancakes*
The total number of squares in an grid (where is the width of the grid and is the height of the grid), given is
If , then we just swap and .
Special case: If , the above equation becomes which is the formula for the sum of squares from 1 to .
Done! Now let me finish my burger...
Easy Math Editor
This discussion board is a place to discuss our Daily Challenges and the math and science related to those challenges. Explanations are more than just a solution — they should explain the steps and thinking strategies that you used to obtain the solution. Comments should further the discussion of math and science.
When posting on Brilliant:
*italics*
or_italics_
**bold**
or__bold__
paragraph 1
paragraph 2
[example link](https://brilliant.org)
> This is a quote
\(
...\)
or\[
...\]
to ensure proper formatting.2 \times 3
2^{34}
a_{i-1}
\frac{2}{3}
\sqrt{2}
\sum_{i=1}^3
\sin \theta
\boxed{123}
Comments
You should add this to the Brilliant wiki. Great note!
Cool! Thanks for that note bro, you're awesome!
Log in to reply
Hope you finished your burger peacefully :P
Log in to reply
Thanks, I'm glad you liked the note. Well unfortunately, I think my hamburger has become stale. XD
جميلة
Log in to reply
Translation: beautiful!
HEY tankenneth, you hyped?
Log in to reply
Oh yes I am! 1+1=3
are you a robot, cos I need some real friends? Humanity is a lie, the computer generation is upon us. Support the cause m64^(1/2)
Log in to reply
No, i am 100.1% sure I'm not a robot.
Log in to reply
What a note @Tan Kenneth:)
Nice simple way of explaining complex situation. So many thanks.