【欧拉计划第 2 题】 偶数斐波那契数 Even Fibonacci numbers
Problem 2 Even Fibonacci numbers
Each new term in the Fibonacci sequence is generated by adding the previous two terms. By starting with 1 and 2, the first 10 terms will be:
1, 2, 3, 5, 8, 13, 21, 34, 55, 89, …
By considering the terms in the Fibonacci sequence whose values do not exceed four million, find the sum of the even-valued terms.
【欧拉计划第 3 题】最大质因数 Largest prime factor
【欧拉计划第 4 题】最大回文数乘积 Largest palindrome product
【欧拉计划第 5 题】最小公倍数 Smallest multiple
【欧拉计划第 6 题】和的平方与平方的和差值 Sum square difference
Problem 6 Sum square difference
The sum of the squares of the first ten natural numbers is:
$$
\large 1^2+2^2+3^2+\cdots+10^2=385
$$
The square of the sum of the first ten natural numbers is:
$$
\large (1+2+3+\cdots+10)^2=55^2=3025
$$
Hence the difference between the sum of the squares of the first ten natural numbers and the square of the sum is:
$$
\large 3025 - 385 = 2640
$$
Find the difference between the sum of the squares of the first one hundred natural numbers and the square of the sum.