Sum of squares

  • Compute \(1^2 + 2^2 + 3^2 + \cdots + 1000^2\).

  • Compute \(2^2 + 4^2 + 6^2 + \cdots + 1000^2\).