Eh, n shouldn't be the number of squares, it should be the width of the board (8 in a chess board) .
n=64 gives 89440.
What did you use to get that formula. It doesn't look like the formula for a geometric sum.