Sunday, May 15, 2011

counting squares


While in the midst of trying to solve a problem, a question just struck to me. Suppose if there is a chess board of n checks [the normal chess board has 8x8 so n=8], and you draw a diagonal across the entire board from one edge to the other edge, what is the equation that can give us the number of squares in the chess board on one side of the diagonal? Squares include those across which the diagonal has been drawn. for instance if a diagonal is drawn across a board with n=4, then the number is 10.

I spent a couple of minutes of thought on how to fit an equation into this but I thought I should have got it faster. There is one approach I followed.. let me know what approach you guys follow!


Cheers
Ghanashyam

No comments:

Post a Comment