Yesterday I was asked by a friend how many squares are in a chess board of 8×8.
I thought about 64 immediately, but of course this is not the solution, there are much more.
So the number of squares is: 8×8+7×7+6×6+5×5+4×4+3×3+2×2+1×1=12+22+32+42...+82
I came across this formula: n(n+1)(2n+1)6
It produces the sum of squares in n×n board.
My question is, how did he reached this formula? Did he just guessed patterns until he reached a match, or there is a mathematical process behind?
If there is a mathematical process, can you please explain line by line?
Thanks very much.
Btw: Couldn't find matching tags for this question, says I can't create.
Answer
The first step is to recognize that there are 82 squares of size 1 by 1, 72 squares of size 2 by 2 and so on. That justifies the total number being, as you say, 12+22+32+…82. Sums of powers are calculated by Faulhaber's formula. There are several ways to derive them. One way is to know or suspect that ∑nk=1kp should be of degree p+1. So for squares, we want ∑nk=1k2=an3+bn2+cn+d. Then if we evaluate it at n+1, we get ∑n+1k=1k2=a(n+1)3+b(n+1)2+c(n+1)+d. Subtracting, we get (n+1)2=a((n+1)3−n3)+b((n+1)2−n2)+c((n+1)1−n1) and equating the coefficients gets the desired formula. You can prove the formula rigorously by induction
No comments:
Post a Comment