All about flooble | fun stuff | Get a free chatterbox | Free JavaScript | Avatars    
perplexus dot info

Home > Just Math
Squares and Rectangles (Posted on 2004-01-21) Difficulty: 2 of 5
There is a grid of 20 squares by 10 squares. How many different rectangles are possible?
(Note that square is a rectangle).

See The Solution Submitted by Ravi Raja    
Rating: 2.0000 (5 votes)

Comments: ( Back to comment list | You must be logged in to post comments.)
Some Thoughts 11,550? Mine was a little bigger than that... | Comment 10 of 22 |
Okay, here's a solution for *ALL* the numbers of squares and rectangles in a 20x10 grid (just in case you ever wondered...)

If you apply brute force to the grid (here assumed to be a width of 20 squares and a height of 10 squares) to derive a general formula for the sum of all the rectangles, the final solution is 55 * 20! or 133,809,610,449,715,200,000.

If we start by taking the # of 1x1 squares we get:
1x1 = 20 * 10

Then add this to the # of 1x2 squares:
1x2 = 20 * 9

And 1x3...
1x3 = 20 * 8

.
.
.

And so on and so forth to...
1x10 = 20 * 1

And then start over with 2x1:
2x1 = 19 * 10

.
.
.

2x10 = 19 * 1

Continuing to apply this method and adding up all of these values, we arrive at the staggering formula:

10 * 20 + 9 * 20 + 8 * 20 + 7 * 20 + 6 * 20 + 5 * 20 + 4 * 20 + 3 * 20 + 2 * 20 + 1 * 20 + 10 * 19 + 9 * 19 + 8 * 19 + 7 * 19 + 6 * 19 + 5 * 19 + 4 * 19 + 3 * 19 + 2 * 19 + 1 * 19 + 10 * 18 + 9 * 18 + 8 * 18 + 7 * 18 + 6 * 18 + 5 * 18 + 4 * 18 + 3 * 18 + 2 * 18 + 1 * 18 + 10 * 17 + 9 * 17 + 8 * 17 + 7 * 17 + 6 * 17 + 5 * 17 + 4 * 17 + 3 * 17 + 2 * 17 + 1 * 17 + 10 * 16 + 9 * 16 + 8 * 16 + 7 * 16 + 6 * 16 + 5 * 16 + 4 * 16 + 3 * 16 + 2 * 16 + 1 * 16 + 10 * 15 + 9 * 15 + 8 * 15 + 7 * 15 + 6 * 15 + 5 * 15 + 4 * 15 + 3 * 15 + 2 * 15 + 1 * 15 + 10 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* 2 + 1 * 2 + 10 * 1 + 9 * 1 + 8 * 1 + 7 * 1 + 6 * 1 + 5 * 1 + 4 * 1 + 3 * 1 + 2 * 1 + 1 * 1

Which looks bad, but can really be grouped together quite easily to make up the following formula:

20!(10 + 9 + 8 + 7 + 6 + 5 + 4 + 3 + 2 + 1) or 55 * 20!

55 * 20! = 133,809,610,449,715,200,000 rectangles

(Note: It's official, "I'm an idiot and didn't read the question properly...")
Edited on January 21, 2004, 5:41 pm
  Posted by Benjamin J. Ladd on 2004-01-21 17:30:46
Please log in:
Login:
Password:
Remember me:
Sign up! | Forgot password


Search:
Search body:
Forums (0)
Newest Problems
Random Problem
FAQ | About This Site
Site Statistics
New Comments (14)
Unsolved Problems
Top Rated Problems
This month's top
Most Commented On

Chatterbox:
Copyright © 2002 - 2024 by Animus Pactum Consulting. All rights reserved. Privacy Information