Example 2.3.3. Find a closed formula for the number of squares on an \(n \times n\) chessboard. Solution.