Ok in the post of 'how many squares' you solved the question. Because of its reputation and my interest about chess and math ( math is little bit related with programming too ) i want to show you a tricky question. In a chess board there are 8x8=64 squares but actually there are more squares hidden on chess board. And the real answer is in fact 204.
Formula for calculating it is like this.
n x (n + 1) x (2n + 1)
______________________
6
You can check it here
No comments:
Post a Comment