On an 8×8 chessboard, how many squares of all sizes — from 1×1 up to 8×8 — are…
2024
On an 8×8 chessboard, how many squares of all sizes — from 1×1 up to 8×8 — are there in total?
- A.
435
- B.
245
- C.
204
- D.
208
Show answer & explanation
Correct answer: C
Concept: In an n×n grid, a k×k square (side length k) can be placed in (n − k + 1) positions along each dimension, so there are (n − k + 1)2 squares of that size. Summing over every size k = 1 to n gives the total count: 12 + 22 + ... + n2 = n(n + 1)(2n + 1) / 6.
Size 1×1: (8 − 1 + 1)2 = 82 = 64 squares
Size 2×2: 72 = 49 squares
Size 3×3: 62 = 36 squares
Size 4×4: 52 = 25 squares
Size 5×5: 42 = 16 squares
Size 6×6: 32 = 9 squares
Size 7×7: 22 = 4 squares
Size 8×8: 12 = 1 square
Total: 64 + 49 + 36 + 25 + 16 + 9 + 4 + 1 = 204
Cross-check with the closed-form formula: for n = 8, n(n + 1)(2n + 1)/6 = 8 × 9 × 17 / 6 = 1224/6 = 204, which matches the direct count above.
