Cody

# Problem 1946. Fibonacci-Sum of Squares

Solution 1908736

Submitted on 22 Aug 2019 by Be Matlabi
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

### Test Suite

Test Status Code Input and Output
1   Pass
n = 5; S = 40; assert(isequal(FibSumSquares(n),S))

c = 2 S = 6 c = 3 S = 15 c = 5 S = 40

2   Pass
n = 8; S = 714; assert(isequal(FibSumSquares(n),S))

c = 2 S = 6 c = 3 S = 15 c = 5 S = 40 c = 8 S = 104 c = 13 S = 273 c = 21 S = 714

3   Pass
n = 11; S = 12816; assert(isequal(FibSumSquares(n),S))

c = 2 S = 6 c = 3 S = 15 c = 5 S = 40 c = 8 S = 104 c = 13 S = 273 c = 21 S = 714 c = 34 S = 1870 c = 55 S = 4895 c = 89 S = 12816

4   Pass
n = 15; S = 602070; assert(isequal(FibSumSquares(n),S))

c = 2 S = 6 c = 3 S = 15 c = 5 S = 40 c = 8 S = 104 c = 13 S = 273 c = 21 S = 714 c = 34 S = 1870 c = 55 S = 4895 c = 89 S = 12816 c = 144 S = 33552 c = 233 S = 87841 c = 377 S = 229970 c = 610 S = 602070

5   Pass
n = 21; S = 193864606; assert(isequal(FibSumSquares(n),S))

c = 2 S = 6 c = 3 S = 15 c = 5 S = 40 c = 8 S = 104 c = 13 S = 273 c = 21 S = 714 c = 34 S = 1870 c = 55 S = 4895 c = 89 S = 12816 c = 144 S = 33552 c = 233 S = 87841 c = 377 S = 229970 c = 610 S = 602070 c = 987 S = 1576239 c = 1597 S = 4126648 c = 2584 S = 10803704 c = 4181 S = 28284465 c = 6765 S = 74049690 c = 10946 S = 193864606

6   Pass
n = 26; S = 23843770274; assert(isequal(FibSumSquares(n),S))

c = 2 S = 6 c = 3 S = 15 c = 5 S = 40 c = 8 S = 104 c = 13 S = 273 c = 21 S = 714 c = 34 S = 1870 c = 55 S = 4895 c = 89 S = 12816 c = 144 S = 33552 c = 233 S = 87841 c = 377 S = 229970 c = 610 S = 602070 c = 987 S = 1576239 c = 1597 S = 4126648 c = 2584 S = 10803704 c = 4181 S = 28284465 c = 6765 S = 74049690 c = 10946 S = 193864606 c = 17711 S = 507544127 c = 28657 S = 1.3288e+09 c = 46368 S = 3.4788e+09 c = 75025 S = 9.1075e+09 c = 121393 S = 2.3844e+10