Sha256: 029b7ca761cac8c0d92cbb20c2d2f74a4f2d2c2f055239c67f62408d5ef8faf6
Contents?: true
Size: 461 Bytes
Versions: 222
Compression:
Stored size: 461 Bytes
Contents
Find the difference between the square of the sum and the sum of the squares of the first N natural numbers. The square of the sum of the first ten natural numbers is (1 + 2 + ... + 10)² = 55² = 3025. The sum of the squares of the first ten natural numbers is 1² + 2² + ... + 10² = 385. Hence the difference between the square of the sum of the first ten natural numbers and the sum of the squares of the first ten natural numbers is 3025 - 385 = 2640.
Version data entries
222 entries across 222 versions & 1 rubygems