Cody

Solution 1918726

Submitted on 2 Sep 2019 by Virtual AS
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))

v = 2 v = 3 v = 5

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

v = 2 v = 3 v = 5 v = 8 v = 13 v = 21

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

v = 2 v = 3 v = 5 v = 8 v = 13 v = 21 v = 34 v = 55 v = 89

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

v = 2 v = 3 v = 5 v = 8 v = 13 v = 21 v = 34 v = 55 v = 89 v = 144 v = 233 v = 377 v = 610

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

v = 2 v = 3 v = 5 v = 8 v = 13 v = 21 v = 34 v = 55 v = 89 v = 144 v = 233 v = 377 v = 610 v = 987 v = 1597 v = 2584 v = 4181 v = 6765 v = 10946

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

v = 2 v = 3 v = 5 v = 8 v = 13 v = 21 v = 34 v = 55 v = 89 v = 144 v = 233 v = 377 v = 610 v = 987 v = 1597 v = 2584 v = 4181 v = 6765 v = 10946 v = 17711 v = 28657 v = 46368 v = 75025 v = 121393