The Puzzle
The sum of the squares of the first ten natural numbers is 385.
The square of the sum of the first ten natural numbers is 3025.
The difference between these two is 2640.
Define fi(n) to be the first i digits of the difference between the square of the sum of the first n natural numbers and the sum of the squares of the first n natural numbers.
So, f3(10) = 264.
To find this cache, first calculate:
- f2(1201),
- f2(1415),
- f3(2215),
- f1(1),
- f1(1378),
- f3(1127).