Hello, danielmegson!

There is a formula for the sum of the first squares: .I am trying to work out a formula for how many squares there are on a chessboard.

I want to write the formula in a way that you could work it out for any size grid.

The formula for a chessboard is: .

For

The derivation of that formula takes quite a bit of algebra.

. . If you're interested, I can show it to you.

.