The Fibonacci numbers start with 0 and 1. The 0th Fibonacci number is 0, the 1st is 1, and from the 2nd on each one is the sum of the two before it. As a formula, Fn=Fn−1+Fn−2 for n≥2.
Written out up to n=17, the Fibonacci numbers are 0, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, 144, 233, 377, 610, 987, 1597.
Given n, write a program that adds up the squares of the Fibonacci numbers from the 0th through the nth.