"> The sum of the squares of the first ten natural numbers is,\n",
"> $$1^2 + 2^2 + \\cdots + 10^2 = 385$$\n",
"> The square of the sum of the first ten natural numbers is,\n",
"> $$(1 + 2 + \\cdots + 10)^2 = 55^2 = 3025$$\n",
"> Hence the difference between the sum of the squares of the first ten natural numbers and the square of the sum is $3025 - 385 = 2640$.\n",
"> \n",
"> Find the difference between the sum of the squares of the first one hundred natural numbers and the square of the sum.\n",
"\n",
"In [problem 1](https://projecteuler.net/problem=1), we applied the following formula for [triangular numbers](https://en.wikipedia.org/wiki/Triangular_number):\n",
"(In fact, [Faulhaber's formula](https://en.wikipedia.org/wiki/Faulhaber%27s_formula) gives a formula for the sum of $k$th powers, but we obviously only need the cases $k=1$ and $k=2$ for this problem.) Consequently,\n",