دنیای زبان انگلیسی ( بهروزپور )

لغات و اصطلاح .داستان کوتاه . شعر.جوک .ضرب المثل.اشپزی.رمان. نمایشنامه.متن دوزبانه

دنیای زبان انگلیسی ( بهروزپور )

لغات و اصطلاح .داستان کوتاه . شعر.جوک .ضرب المثل.اشپزی.رمان. نمایشنامه.متن دوزبانه

معما

How many squares are there on a chessboard?? (the answer is not 64)

Can you extend your technique to chess board picturecalculate the number of rectangles on a chessboard

This another puzzle that was also e-mailed to me through this website. My instinct was that the answer was just a lot, but i thought about it and the solution is actually fairly simple...

The first thing is why the answer is not just 64...

squares on a chessboard puzzle


All the red squares in the above picture would count as valid squares, so we are asking how many squares of any dimension from 1x1 to 8x8 there are on a chess board.

The key is to think how many positions there are that each size of square can be located...

A 2x2 square, for example, can be located in 7 loactions horizontally and 7 locations vertically. ie in 49 different positions. Consider the table below...

sizehorizontal positionsvertical positionspositons
1x18864
2x27749
3x36636
4x45525
5x54416
6x6339
7x7224
8x8111
  total204


In total there are 204 positions. this is the sum of the number of possible positions for all the different sized squares.
Can you extend your technique to calculate the number of rectangles on a chessboard?
Below are some examples of possible rectangles...
rectangle on a chessboard riddle


All of the above examples would be vailid rectanges...

The key to this problem is to think of each rectangle individually and consider the number of positions it can be located. For example a 3x7 rectangle can be located in 6 positions horizontally and 2 vertically. From this we can build a matrix of all the possible rectangles and sum.
dimesions 12345678 
 positions87654321 
18645648403224168 
27564942352821147 
36484236302418126 
45403530252015105 
5432282420161284 
632421181512963 
72161412108642 
8187654321 
          1296

In total then there are 1296 possible rectangles.


http://puzzles.nigelcoldwell.co.uk/twentyseven.htm


نظرات 0 + ارسال نظر
امکان ثبت نظر جدید برای این مطلب وجود ندارد.