Friday, 28 September 2012

Number of Squares on a Chessboard

here is one really interesting puzzle what is the number of Squares on a Chessboard?
The first thing is why the answer is not just 64...





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.

Formula For n x n Chessboard?

It's clear from the analysis above that the solution in the case of n x n is the sum of the squares from n2 to 12that is to say n2 + (n-1)2 + (n-2)2 ... ... 22 + 12

Mathematically that is written as follows:
sum of the squares of the first n natural numbers sigma notation
The proof of the explicit solution is beyond the scope of this site, but if you want to look it up a mathematician would refer to it as 'the sum of the squares of the first n natural numbers.' The final answer is given by

n3/3 + n2/2 + n/6


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




No comments:

Post a Comment