Cody

Solution 1918241

Submitted on 1 Sep 2019 by Banister
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))

f = 2 y = 6 f = 3 y = 15 f = 5 y = 40

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

f = 2 y = 6 f = 3 y = 15 f = 5 y = 40 f = 8 y = 104 f = 13 y = 273 f = 21 y = 714

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

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

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

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

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

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

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

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