Build a square from squares?

Geometry Level 1

Can you use all of the pieces to build a large square? And if possible, what is its side length?

  • one 6 × 6 6 \times 6 square
  • two 5 × 5 5 \times 5 squares
  • three 4 × 4 4 \times 4 squares
  • four 3 × 3 3 \times 3 squares
  • five 2 × 2 2 \times 2 squares
  • six 1 × 1 1 \times 1 squares
11 14 15 16 Not possible

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.

8 solutions

Ronald Chén
Feb 9, 2017

Answer is 14.

6 x 6 = 36 6x6= 36

5 x 5 = 25 5x5=25 >>>> 25 x 2 = 50 25x2=50

4 x 4 = 16 4x4=16 >>>> 16 x 3 = 48 16x3=48 ;

3 x 3 = 9 3x3=9 >>>> 9 x 4 = 36 9x4=36 ;

2 x 2 = 4 2x2=4 >>>> 4 x 5 = 20 4x5=20 ;

1 x 1 = 1 1x1=1 >>>> 1 x 6 = 6 1x6=6 ;

36 + 50 + 48 + 36 + 20 + 6 = 196 = 1 4 2 36+50+48+36+20+6=196=14^2

Then side of the square 14 14 .

Moderator note:

Nice job producing an actual example of the larger square being made! It's very tempting on this problem to just produce what the answer would be if the square configuration worked, but there is no guarantee here that the configuration even exists so a complete answer needs to produce one.

Making this kind of configuration in general is considered a hard problem and has no easy algorithm or method.

Thanks for showing that we could place these squares together to get a larger square!

Sometimes, it can't be done, even though the areas are equal. E.g Even though 8 2 + 8 2 + 8 2 + 2 2 = 196 8^2 + 8^2 + 8^2 + 2^2 = 196 , clearly we can't use 3 8 × 8 8 \times 8 squares and 1 2 × 2 2 \times 2 square to form a 14 × 14 14 \times 14 square.

Calvin Lin Staff - 4 years, 4 months ago

Log in to reply

Calvin, this is actually a real interesting problem, as 1) it is not trivial (i.e., there is no identity here), and 2) there's an infinity of of cases similar to this, where a sequence of squares done like this that adds up to one large one with integer sides. But is there any other instance where can they be packed like how Profe did it? Hmm...

Michael Mendrin - 4 years, 3 months ago

Yes, the easy part is determining what size square it will make if it's possible. The hard part is coming up with a good way of finding a solution, or proving that no solution exists.

In principle, you can run a backtracking algorithm. Think of the target square as divided into 196 cells, and at each step locate the first unfilled cell in line-by-line order, and place the largest square you have available that will fit with that cell as its upper-left corner. If you have to backtrack, then place a square of the next size down from the one you placed there before.

In this case, it just so happens that this algorithm produces a solution first time, without any backtracking! But in the general case it wouldn't, and there must be a better way of doing it.

Stewart Gordon - 4 years, 3 months ago

Log in to reply

There isn't. If the problem is NP-complete we can't do it efficiently. We can try with heuristics, but then there's no guarantee we'll find the solution in a short enough time.

Orlando Moreno - 3 years, 6 months ago

I wonder if there are other ways to build the square, or is it unique?

P/S: the solution will look better if you LaTeX it.

Christopher Boo - 4 years, 4 months ago

Log in to reply

See my comment to Calvin, but to answer your question about packing these squares, I don't know.

Michael Mendrin - 4 years, 3 months ago

Log in to reply

I've edited the options to allow for "not possible".

I think this makes the question really interesting!

Calvin Lin Staff - 4 years, 3 months ago

Log in to reply

@Calvin Lin Yes Sir, That made the question a lot more difficult. Is there any method of finding if the squares would actually make up a bigger square or not? Thanks

Bhuvanesh Sridharan - 4 years, 3 months ago

Well there are, at least, some slight alterations of the arrangement already given. For example, the two "9" squares on the top row (or just the left one of them) could be moved two units to the left, with an appropriate rearrangement of "4" and "1" squares.

Peter Byers - 4 years, 3 months ago

Assuming geometric configuration exists. Ans= +Sq. Rt. [Sum of (7-i)i^2for i=1 to i=6] +Sq Rt 196= 14

David Wilson - 4 years, 3 months ago

Log in to reply

Right. The important part is proving whether such a configuration exists...

Pi Han Goh - 4 years, 3 months ago

Log in to reply

Though this is a more interesting problem, this problem here reads. "If you use all of the pieces to build a large square ...", so it implicitely states that a fitting configuration does exist. Otherwise text should have read "Can you use ..., and if possible, what is its side length?"

Martin Ramsch - 3 years, 4 months ago

Log in to reply

@Martin Ramsch There is one option that reads "Not possible", so maybe this configuration is impossible?

Pi Han Goh - 3 years, 4 months ago

Log in to reply

@Pi Han Goh True, overlooked that. Then problem text is inconsistent, because "If you use ..." then is misleading. Thanks for your comment!

Martin Ramsch - 3 years, 4 months ago

Log in to reply

@Martin Ramsch Hmmm, in that case, how do you propose to improve the problem statement?

Pi Han Goh - 3 years, 4 months ago

Log in to reply

@Pi Han Goh As I already did above: "Can you use ..., and if possible, what is its side length?"

Martin Ramsch - 3 years, 4 months ago

Log in to reply

@Martin Ramsch Oh, I overlooked that too! Haha. I've edited it. Thanks for helping out :)

Pi Han Goh - 3 years, 4 months ago

Very good problem!

Andreas Wendler - 4 years, 3 months ago

I dont get it...so if we want to solve this problem then the only way to do it is to make it,like, practically???

Fgh Fggccfcv - 4 years, 3 months ago

Log in to reply

Yeah, there's no (general) shortcut to figure out if there's an actual geometric configuration that exist.

Pi Han Goh - 4 years, 3 months ago

@CalvinLi please tell me if this is the only way to solve this problem

Fgh Fggccfcv - 4 years, 3 months ago

All you had to do was add the areas to make a square. so length times length equals area of square. and area is 196 and square root it to get 14. Thanks for the problem!

Caleb Albuquerque - 3 years, 3 months ago

Log in to reply

How do you know that such a configuration is possible? Maybe the answer could still be "Not possible"?

Pi Han Goh - 3 years, 3 months ago

I disagree with the moderator note. Its not hard to conclude with Calvin's example that it's impossible because 8+8=16 so there's no way to make a 14 long face with 8x8 squares. However, constructing such a square from the given pieces is a simple matter of constructing the border from the given square lengths and filling in the gaps with remaining pieces. You can determine quickly if the side lengths of the given tiles can possibly construct the squares border. It's also readily apparent that the "filling" portion will be easier with smaller pieces. Notice that the large squares are on the exterior. I actually (by chance, because there are many more than one ways to do this), constructed a congruent tiling (flipped vertically though). Even if there's no rigorous method to solve 100% of the time, that doesn't mean in general this is hard.

I love being proven wrong about stuff though.

Throw me a "hard" one with square tiles and put it in the advanced section. I challenge you.

Max Montiel - 3 years, 2 months ago

Log in to reply

Please note that the note says "Making this kind of configuration in general ". IE we're not talking about the specific case as given, but about the general problems where you are given a i a_i copies of squares of side length b i b_i , whose area sums to S 2 S^2 , then can we indeed form a square of side length S S ?


Even if there's no rigorous method to solve 100% of the time, that doesn't mean in general this is hard.

I disagree. If there is no rigorous method to solve this 100% of the time, then it means that for infinitely many cases you are reduced to case-by-case checking, and thus the problem is indeed hard (with a loose definition of what it means).

Calvin Lin Staff - 3 years, 2 months ago

Just have a look at this and then you'll get to know just how hard this kind of problem is. It took years to get an algorithm to find the g e n e r a l general solution to this problem. And the way it was found is just beautiful. Things that seem easy sometimes turn out to be really hard you know.

Abha Vishwakarma - 2 years, 8 months ago

Log in to reply

Wow, that's a great presentation. I wonder if that 1²+2²+3²+...+24²=70² is at all possible, or has it ever been proven to be impossible. :-)

C . - 2 years, 8 months ago

Log in to reply

@C . Yeah I have wondered about that too. I really want a solution for that.

Abha Vishwakarma - 2 years, 8 months ago

Why can't I think like this?

Half-god Dragon - 3 years ago

Log in to reply

Check out the Outside the Box Geometry course that helps to guide you in understanding how to apply the concepts and relate them to each other.

Calvin Lin Staff - 3 years ago

Where's the example that "Moderator" congratulated you on? :-s

Edit: somehow i wasn't able to see the image on the right before... now i can. To prevent this from happening again, the image is https://ds055uzetaobb.cloudfront.net/image_optimizer/69385b7ceae544190a47f7ff7c5c8bdad011d9e0.png

C . - 2 years, 9 months ago

Simple answer calculate the total area of all the squares and root it to find √196 =14 . Since ALL the squares have to be used as specified in the question

No, this is not always true. Read up Calvin's comment under Profe Ronald's solution.

Pi Han Goh - 4 years, 3 months ago

Log in to reply

The correct answer could have been not possible

Steven Gottlieb - 3 years ago
Drekzi One
Feb 23, 2017

One simple way to solve this is sum all the side lengths of the small squares.

6+ 5 2 5*2 + 4 3 4*3 + 3 4 3*4 + 2 5 2*5 + 1 6 1*6 = 56

Now you have a perimeter of the large square. Dividing perimeter with 4 gives us the side lenght

56 4 \frac{56}{4} =14

answer is 14

It is a coincidence that the sum of the side lengths of the squares turned out to be the perimeter of the big square. This does not always hold true. In fact, it rarely holds true.

We can make a 3 × 3 3 \times 3 square from one 2 × 2 2 \times 2 square and five 1 × 1 1 \times 1 square. The sum of their side lengths is 7, while the perimeter of the 3 × 3 3 \times 3 square is 12.

Pranshu Gaba - 4 years, 3 months ago

Log in to reply

I'm not understanding what you mean by the sum of their side lengths is 7? I feel like the above solution still works for your example. The side lengths are 3..the perimeter is 12...12/4 is 3.

D C - 4 years, 2 months ago

Log in to reply

By sum of side lengths, I mean adding all the side lengths of the small squares. In this case, it is 2 + 1 + 1 + 1 + 1 + 1 = 7. The perimeter of the big square is 3 × 4 = 12 3 \times 4 = 12 .

Pranshu Gaba - 4 years, 2 months ago

This quiz from the beginning has provided an important clue is: "all SQUARES perfectly formed a large SQUARE".

So, we do not need to imagine the impact all areas of greatest to least because it would establish a large SQUARES perfectly.

We are fairly calculate the total area of all of these SQUARES and then look for the roots of its value, so we found the side of a large SQUARE that is formed from all the SQUARES provided in this quiz.

So,       S = [(6 x 6) + 2 x (5 x 5) + 3 x (4 x 4) + 4 x (3 x 3) + 5 x (2 x 2) + 6 x (1 x 1)] ^ (0.5)       S = 196 ^ 0.5       S = 14

This does not guarantee that we can form the 14 × 14 14 \times 14 square, even though the total area of the given squares is equal to the area of a 14 × 14 14 \times 14 square, See Calvin's comment in Profe Ronald's solution for a counterexample.

Pranshu Gaba - 4 years, 3 months ago

Log in to reply

It says "IF", so etiher the question is wrong or you can use the non-constructive method.

Orlando Moreno - 3 years, 6 months ago

Please..., pay attention for selection of sentences in my comment. "This quiz from the beginning has provided an important clue is: "all SQUARES perfectly formed a large SQUARE" for a part of proposed problem: "If you use all of the pieces to build a large square, what is its side length?"

Alimun Bidati Sudur - 3 years, 9 months ago
Alex Joly
Feb 26, 2017

Answer is 14 :

  • (6^2)×1 = 36
  • (5^2)×2 = 50
  • (4^2)×3 = 48
  • (3^2)×4 = 36
  • (2^2)×5 = 20
  • (1^2)×6 = 6

So 36+50+48+36+20+6 = 196

196 = 14 ^2

The answer is 14.

Is it true that the squares can actually be arranged to form a larger square? Does this always happen when the areas add up?

Agnishom Chattopadhyay - 4 years, 3 months ago

Log in to reply

This is an interesting problem (and NP-complete), but not the problem given.

Martin Ramsch - 3 years, 4 months ago
Lampard Nk
Feb 25, 2017
  • Sum up the area of all squares then see if it can be the product of a number and it self (x^x)because the area of a square = x^x(x is the side length of the square)

So:

one 6x6 square= 36cm2 two 5x5 squares=50cm2 three 4x4 squares=48cm2 four 3x3 squares=36cm2 five 2x2 squares=20cm2 six 1x1 squares=6cm2

Sum up: 36 + 50 + 48 + 36 + 20 + 6 = 196cm2 = 14cm x 14cm

=> The side length is 14 cm

This method does not show that we can build a large square out of these squares. See Calvin's comment on Profe's solution.

Christopher Boo - 4 years, 3 months ago

Log in to reply

I haven't seen your comment about the solution

Lampard NK - 4 years, 3 months ago

Log in to reply

I mean Calvin's solution, not mine.

Christopher Boo - 4 years, 3 months ago

Log in to reply

@Christopher Boo He is right though but only in some situations

Lampard NK - 4 years, 3 months ago
Raj Bunsha
Feb 23, 2017

Add all the areas of the squares

       6×6=36

Now we shall multiply the number of squares with the following area

      5×5×2=50
      4×4×3=48
      3×3×4=36
      2×2×5=20
      1×1×6=6

Now we add the areas 36+50+48+36+20+6=196 Now a^2=196 a=14

This does not guarantee that we can form the 14 × 14 14 \times 14 square, even though the total area of the given squares is equal to the area of a 14 × 14 14 \times 14 square, See Calvin's comment in Profe Ronald's solution for a counterexample.

Pranshu Gaba - 4 years, 3 months ago
Phillip Johnson
Feb 22, 2017

I added the area of all the squares together, then rooted the result to find the side lengths. - 196 is the area of all squares added. - square root of 196 is 14.

This is why this problem has more apparent solvers than actual solvers. To get the number 14 is easy. But to actually solve the problem, you need to eliminate the alternative of it not having any solution. And that can only be done by constructing the actual square, which is likely not to be the same as the example in the solution above.

Marta Reece - 4 years, 3 months ago

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...