Quote:
Originally Posted by swagato1987 1. What is the difference between the total number of rectangles and the total number of squares that can be made from a 8x8 chess board????
I do not remember the options but I could not solve this problem. Anyone please help. |
For a given nxn matrix,
the formula to find no of squares is
( n * (n+1) * (2n + 1) ) / 6.
so a chess board contains 204 squares
For a given nxm matrix,
And to find no of rectangles is
((n * (n + 1) )/2) * ((m * (m +1))/2)
the no of rectangles in chess board is 1296
so the difference is 1296-204= 1100...
if you are not getting the above formulae kindly revert