This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
This solution is outdated. To rescore this solution, sign in.
Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
%%
n = 5;
S = 40;
assert(isequal(FibSumSquares(n),S))
ans =
Columns 1 through 8
1 2 6 15 40 104 273 714
Columns 9 through 11
1870 4895 12816
|
2 | Pass |
%%
n = 11;
S = 12816;
assert(isequal(FibSumSquares(n),S))
ans =
Columns 1 through 8
1 2 6 15 40 104 273 714
Columns 9 through 11
1870 4895 12816
|
519 Solvers
584 Solvers
367 Solvers
276 Solvers
Find the next Fibonacci number
223 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!