Cody

# Problem 1946. Fibonacci-Sum of Squares

Solution 2036851

Submitted on 27 Nov 2019
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   Fail
n = 5; S = 40; assert(isequal(FibSumSquares(n),S))

fb = 1 1 1 0 fb(:,:,1) = 1 1 1 0 fb(:,:,2) = 2 1 1 1 fb(:,:,1) = 1 1 1 0 fb(:,:,2) = 2 1 1 1 fb(:,:,3) = 3 2 2 1 fb(:,:,1) = 1 1 1 0 fb(:,:,2) = 2 1 1 1 fb(:,:,3) = 3 2 2 1 fb(:,:,4) = 5 3 3 2 fb(:,:,1) = 1 1 1 0 fb(:,:,2) = 2 1 1 1 fb(:,:,3) = 3 2 2 1 fb(:,:,4) = 5 3 3 2 fb(:,:,5) = 8 5 5 3 S = 19 12 12 7

Assertion failed.

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

fb = 1 1 1 0 fb(:,:,1) = 1 1 1 0 fb(:,:,2) = 2 1 1 1 fb(:,:,1) = 1 1 1 0 fb(:,:,2) = 2 1 1 1 fb(:,:,3) = 3 2 2 1 fb(:,:,1) = 1 1 1 0 fb(:,:,2) = 2 1 1 1 fb(:,:,3) = 3 2 2 1 fb(:,:,4) = 5 3 3 2 fb(:,:,1) = 1 1 1 0 fb(:,:,2) = 2 1 1 1 fb(:,:,3) = 3 2 2 1 fb(:,:,4) = 5 3 3 2 fb(:,:,5) = 8 5 5 3 fb(:,:,1) = 1 1 1 0 fb(:,:,2) = 2 1 1 1 fb(:,:,3) = 3 2 2 1 fb(:,:,4) = 5 3 3 2 fb(:,:,5) = 8 5 5 3 fb(:,:,6) = 13 8 8 5 fb(:,:,1) = 1 1 1 0 fb(:,:,2) = 2 1 1 1 fb(:,:,3) = 3 2 2 1 fb(:,:,4) = 5 3 3 2 fb(:,:,5) = 8 5 5 3 fb(:,:,6) = 13 8 8 5 fb(:,:,7) = 21 13 13 8 fb(:,:,1) = 1 1 1 0 fb(:,:,2) = 2 1 1 1 fb(:,:,3) = 3 2 2 1 fb(:,:,4) = 5 3 3 2 fb(:,:,5) = 8 5 5 3 fb(:,:,6) = 13 8 8 5 fb(:,:,7) = 21 13 13 8 fb(:,:,8) = 34 21 21 13 S = 87 54 54 33

Assertion failed.

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

fb = 1 1 1 0 fb(:,:,1) = 1 1 1 0 fb(:,:,2) = 2 1 1 1 fb(:,:,1) = 1 1 1 0 fb(:,:,2) = 2 1 1 1 fb(:,:,3) = 3 2 2 1 fb(:,:,1) = 1 1 1 0 fb(:,:,2) = 2 1 1 1 fb(:,:,3) = 3 2 2 1 fb(:,:,4) = 5 3 3 2 fb(:,:,1) = 1 1 1 0 fb(:,:,2) = 2 1 1 1 fb(:,:,3) = 3 2 2 1 fb(:,:,4) = 5 3 3 2 fb(:,:,5) = 8 5 5 3 fb(:,:,1) = 1 1 1 0 fb(:,:,2) = 2 1 1 1 fb(:,:,3) = 3 2 2 1 fb(:,:,4) = 5 3 3 2 fb(:,:,5) = 8 5 5 3 fb(:,:,6) = 13 8 8 5 fb(:,:,1) = 1 1 1 0 fb(:,:,2) = 2 1 1 1 fb(:,:,3) = 3 2 2 1 fb(:,:,4) = 5 3 3 2 fb(:,:,5) = 8 5 5 3 fb(:,:,6) = 13 8 8 5 fb(:,:,7) = 21 13 13 8 fb(:,:,1) = 1 1 1 0 fb(:,:,2) = 2 1 1 1 fb(:,:,3) = 3 2 2 1 fb(:,:,4) = 5 3 3 2 fb(:,:,5) = 8 5 5 3 fb(:,:,6) = 13 8 8 5 fb(:,:,7) = 21 13 13 8 fb(:,:,8) = 34 21 21 13 fb(:,:,1) = 1 1 1 0 fb(:,:,2) = 2 1 1 1 fb(:,:,3) = 3 2 2 1 fb(:,:,4) = 5 3 3 2 fb(:,:,5) = 8 5 5 3 fb(:,:,6) = 13 8 8 5 fb(:,:,7) = 21 13 13 8 fb(:,:,8) = 34 21 21 13 fb(:,:,9) = 55 34 34 21 fb(:,:,1) = 1 1 1 0 fb(:,:,2) = 2 1 1 1 fb(:,:,3) = 3 2 2 1 fb(:,:,4) = 5 3 3 2 fb(:,:,5) = 8 5 5 3 fb(:,:,6) = 13 8 8 5 fb(:,:,7) = 21 13 13 8 fb(:,:,8) = 34 21 21 13 fb(:,:,9) = 55 34 34 21 fb(:,:,10) = 89 55 55 34 fb(:,:,1) = 1 1 1 0 fb(:,:,2) = 2 1 1 1 fb(:,:,3) = 3 2 2 1 fb(:,:,4) = 5 3 3 2 fb(:,:,5) = 8 5 5 3 fb(:,:,6) = 13 8 8 5 fb(:,:,7) = 21 13 13 8 fb(:,:,8) = 34 21 21 13 fb(:,:,9) = 55 34 34 21 fb(:,:,10) = 89 55 55 34 fb(:,:,11) = 144 89 89 55 S = 375 232 232 143

Assertion failed.

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

fb = 1 1 1 0 fb(:,:,1) = 1 1 1 0 fb(:,:,2) = 2 1 1 1 fb(:,:,1) = 1 1 1 0 fb(:,:,2) = 2 1 1 1 fb(:,:,3) = 3 2 2 1 fb(:,:,1) = 1 1 1 0 fb(:,:,2) = 2 1 1 1 fb(:,:,3) = 3 2 2 1 fb(:,:,4) = 5 3 3 2 fb(:,:,1) = 1 1 1 0 fb(:,:,2) = 2 1 1 1 fb(:,:,3) = 3 2 2 1 fb(:,:,4) = 5 3 3 2 fb(:,:,5) = 8 5 5 3 fb(:,:,1) = 1 1 1 0 fb(:,:,2) = 2 1 1 1 fb(:,:,3) = 3 2 2 1 fb(:,:,4) = 5 3 3 2 fb(:,:,5) = 8 5 5 3 fb(:,:,6) = 13 8 8 5 fb(:,:,1) = 1 1 1 0 fb(:,:,2) = 2 1 1 1 fb(:,:,3) = 3 2 2 1 fb(:,:,4) = 5 3 3 2 fb(:,:,5) = 8 5 5 3 fb(:,:,6) = 13 8 8 5 fb(:,:,7) = 21 13 13 8 fb(:,:,1) = 1 1 1 0 fb(:,:,2) = 2 1 1 1 fb(:,:,3) = 3 2 2 1 fb(:,:,4) = 5 3 3 2 fb(:,:,5) = 8 5 5 3 fb(:,:,6) = 13 8 8 5 fb(:,:,7) = 21 13 13 8 fb(:,:,8) = 34 21 21 13 fb(:,:,1) = 1 1 1 0 fb(:,:,2) = 2 1 1 1 fb(:,:,3) = 3 2 2 1 fb(:,:,4) = 5 3 3 2 fb(:,:,5) = 8 5 5 3 fb(:,:,6) = 13 8 8 5 fb(:,:,7) = 21 13 13 8 fb(:,:,8) = 34 21 21 13 fb(:,:,9) = 55 34 34 21 fb(:,:,1) = 1 1 1 0 fb(:,:,2) = 2 1 1 1 fb(:,:,3) = 3 2 2 1 fb(:,:,4) = 5 3 3 2 fb(:,:,5) = 8 5 5 3 fb(:,:,6) = 13 8 8 5 fb(:,:,7) = 21 13 13 8 fb(:,:,8) = 34 21 21 13 fb(:,:,9) = 55 34 34 21 fb(:,:,10) = 89 55 55 34 fb(:,:,1) = 1 1 1 0 fb(:,:,2) = 2 1 1 1 fb(:,:,3) = 3 2 2 1 fb(:,:,4) = 5 3 3 2 fb(:,:,5) = 8 5 5 3 fb(:,:,6) = 13 8 8 5 fb(:,:,7) = 21 13 13 8 fb(:,:,8) = 34 21 21 13 fb(:,:,9) = 55 34 34 21 fb(:,:,10) = 89 55 55 34 fb(:,:,11) = 144 89 89 55 fb(:,:,1) = 1 1 1 0 fb(:,:,2) = 2 1 1 1 fb(:,:,3) = 3 2 2 1 fb(:,:,4) = 5 3 3 2 fb(:,:,5) = 8 5 5 3 fb(:,:,6) = 13 8 8 5 fb(:,:,7) = 21 13 13 8 fb(:,:,8) = 34 21 21 13 fb(:,:,9) = 55 34 34 21 fb(:,:,10) = 89 55 55 34 fb(:,:,11) = 144 89 89 55 fb(:,:,12) = 233 144 144 89 fb(:,:,1) = 1 1 1 0 fb(:,:,2) = 2 1 1 1 fb(:,:,3) = 3 2 2 1 fb(:,:,4) = 5 3 3 2 fb(:,:,5) = 8 5 5 3 fb(:,:,6) = 13 8 8 5 fb(:,:,7) = 21 13 13 8 fb(:,:,8) = 34 21 21 13 fb(:,:,9) = 55 34 34 21 fb(:,:,10) = 89 55 55 34 fb(:,:,11) = 144 89 89 55 fb(:,:,12) = 233 144 144 89 fb(:,:,13) = 377 233 233 144 fb(:,:,1) = 1 1 1 0 fb(:,:,2) = 2 1 1 1 fb(:,:,3) = 3 2 2 1 fb(:,:,4) = 5 3 3 2 fb(:,:,5) = 8 5 5 3 fb(:,:,6) = 13 8 8 5 fb(:,:,7) = 21 13 13 8 fb(:,:,8) = 34 21 21 13 fb(:,:,9) = 55 34 34 21 fb(:,:,10) = 89 55 55 34 fb(:,:,11) = 144 89 89 55 fb(:,:,12) = 233 144 144 89 fb(:,:,13) = 377 233 233 144 fb(:,:,14) = 610 377 377 233 fb(:,:,1) = 1 1 1 0 fb(:,:,2) = 2 1 1 1 fb(:,:,3) = 3 2 2 1 fb(:,:,4) = 5 3 3 2 fb(:,:,5) = 8 5 5 3 fb(:,:,6) = 13 8 8 5 fb(:,:,7) = 21 13 13 8 fb(:,:,8) = 34 21 21 13 fb(:,:,9) = 55 34 34 21 fb(:,:,10) = 89 55 55 34 fb(:,:,11) = 144 89 89 55 fb(:,:,12) = 233 144 144 89 fb(:,:,13) = 377 233 233 144 fb(:,:,14) = 610 377 377 233 fb(:,:,15) = 987 610 610 377 S = 2582 1596 1596 986

Assertion failed.

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

fb = 1 1 1 0 fb(:,:,1) = 1 1 1 0 fb(:,:,2) = 2 1 1 1 fb(:,:,1) = 1 1 1 0 fb(:,:,2) = 2 1 1 1 fb(:,:,3) = 3 2 2 1 fb(:,:,1) = 1 1 1 0 fb(:,:,2) = 2 1 1 1 fb(:,:,3) = 3 2 2 1 fb(:,:,4) = 5 3 3 2 fb(:,:,1) = 1 1 1 0 fb(:,:,2) = 2 1 1 1 fb(:,:,3) = 3 2 2 1 fb(:,:,4) = 5 3 3 2 fb(:,:,5) = 8 5 5 3 fb(:,:,1) = 1 1 1 0 fb(:,:,2) = 2 1 1 1 fb(:,:,3) = 3 2 2 1 fb(:,:,4) = 5 3 3 2 fb(:,:,5) = 8 5 5 3 fb(:,:,6) = 13 8 8 5 fb(:,:,1) = 1 1 1 0 fb(:,:,2) = 2 1 1 1 fb(:,:,3) = 3 2 2 1 fb(:,:,4) = 5 3 3 2 fb(:,:,5) = 8 5 5 3 fb(:,:,6) = 13 8 8 5 fb(:,:,7) = 21 13 13 8 fb(:,:,1) = 1 1 1 0 fb(:,:,2) = 2 1 1 1 fb(:,:,3) = 3 2 2 1 fb(:,:,4) = 5 3 3 2 fb(:,:,5) = 8 5 5 3 fb(:,:,6) = 13 8 8 5 fb(:,:,7) = 21 13 13 8 fb(:,:,8) = 34 21 21 13 fb(:,:,1) = 1 1 1 0 fb(:,:,2) = 2 1 1 1 fb(:,:,3) = 3 2 2 1 fb(:,:,4) = 5 3 3 2 fb(:,:,5) = 8 5 5 3 fb(:,:,6) = 13 8 8 5 fb(:,:,7) = 21 13 13 8 fb(:,:,8) = 34 21 21 13 fb(:,:,9) = 55 34 34 21 fb(:,:,1) = 1 1 1 0 fb(:,:,2) = 2 1 1 1 fb(:,:,3) = 3 2 2 1 fb(:,:,4) = 5 3 3 2 fb(:,:,5) = 8 5 5 3 fb(:,:,6) = 13 8 8 5 fb(:,:,7) = 21 13 13 8 fb(:,:,8) = 34 21 21 13 fb(:,:,9) = 55 34 34 21 fb(:,:,10) = 89 55 55 34 fb(:,:,1) = 1 1 1 0 fb(:,:,2) = 2 1 1 1 fb(:,:,3) = 3 2 2 1 fb(:,:,4) = 5 3 3 2 fb(:,:,5) = 8 5 5 3 fb(:,:,6) = 13 8 8 5 fb(:,:,7) = 21 13 13 8 fb(:,:,8) = 34 21 21 13 fb(:,:,9) = 55 34 34 21 fb(:,:,10) = 89 55 55 34 fb(:,:,11) = 144 89 89 55 fb(:,:,1) = 1 1 1 0 fb(:,:,2) = 2 1 1 1 fb(:,:,3) = 3 2 2 1 fb(:,:,4) = 5 3 3 2 fb(:,:,5) = 8 5 5 3 fb(:,:,6) = 13 8 8 5 fb(:,:,7) = 21 13 13 8 fb(:,:,8) = 34 21 21 13 fb(:,:,9) = 55 34 34 21 fb(:,:,10) = 89 55 55 34 fb(:,:,11) = 144 89 89 55 fb(:,:,12) = 233 144 144 89 fb(:,:,1) = 1 1 1 0 fb(:,:,2) = 2 1 1 1 fb(:,:,3) = 3 2 2 1 fb(:,:,4) = 5 3 3 2 fb(:,:,5) = 8 5 5 3 fb(:,:,6) = 13 8 8 5 fb(:,:,7) = 21 13 13 8 fb(:,:,8) = 34 21 21 13 fb(:,:,9) = 55 34 34 21 fb(:,:,10) = 89 55 55 34 fb(:,:,11) = 144 89 89 55 fb(:,:,12) = 233 144 144 89 fb(:,:,13) = 377 233 233 144 fb(:,:,1) = 1 1 1 0 fb(:,:,2) = 2 1 1 1 fb(:,:,3) = 3 2 2 1 fb(:,:,4) = 5 3 3 2 fb(:,:,5) = 8 5 5 3 fb(:,:,6) = 13 8 8 5 fb(:,:,7) = 21 13 13 8 fb(:,:,8) = 34 21 21 13 fb(:,:,9) = 55 34 34 21 fb(:,:,10) = 89 55 55 34 fb(:,:,11) = 144 89 89 55 fb(:,:,12) = 233 144 144 89 fb(:,:,13) = 377 233 233 144 fb(:,:,14) = 610 377 377 233 fb(:,:,1) = 1 1 1 0 fb(:,:,2) = 2 1 1 1 fb(:,:,3) = 3 2 2 1 fb(:,:,4) = 5 3 3 2 fb(:,:,5) = 8 5 5 3 fb(:,:,6) = 13 8 8 5 fb(:,:,7) = 21 13 13 8 fb(:,:,8) = 34 21 21 13 fb(:,:,9) = 55 34 34 21 fb(:,:,10) = 89 55 55 34 fb(:,:,11) = 144 89 89 55 fb(:,:,12) = 233 144 144 89 fb(:,:,13) = 377 233 233 144 fb(:,:,14) = 610 377 377 233 fb(:,:,15) = 987 610 610 377 fb(:,:,1) = 1 1 1 0 fb(:,:,2) = 2 1 1 1 fb(:,:,3) = 3 2 2 1 fb(:,:,4) = 5 3 3 2 fb(:,:,5) = 8 5 5 3 fb(:,:,6) = 13 8 8 5 fb(:,:,7) = 21 13 13 8 fb(:,:,8) = 34 21 21 13 fb(:,:,9) = 55 34 34 21 fb(:,:,10) = 89 55 55 34 fb(:,:,11) = 144 89 89 55 fb(:,:,12) = 233 144 144 89 fb(:,:,13) = 377 233 233 144 fb(:,:,14) = 610 377 377 233 fb(:,:,15) = 987 610 610 377 fb(:,:,16) = 1597 987 987 610 fb(:,:,1) = 1 1 1 0 fb(:,:,2) = 2 1 1 1 fb(:,:,3) = 3 2 2 1 fb(:,:,4) = 5 3 3 2 fb(:,:,5) = 8 5 5 3 fb(:,:,6) = 13 8 8 5 fb(:,:,7) = 21 13 13 8 fb(:,:,8) = 34 21 21 13 fb(:,:,9) = 55 34 34 21 fb(:,:,10) = 89 55 55 34 fb(:,:,11) = 144 89 89 55 fb(:,:,12) = 233 144 144 89 fb(:,:,13) = 377 233 233 144 fb(:,:,14) = 610 377 377 233 fb(:,:,15) = 987 610 610 377 fb(:,:,16) = 1597 987 987 610 fb(:,:,17) = 2584 1597 1597 987 fb(:,:,1) = 1 1 1 0 fb(:,:,2) = 2 1 1 1 fb(:,:,3) = 3 2 2 1 fb(:,:,4) = 5 3 3 2 fb(:,:,5) = 8 5 5 3 fb(:,:,6) = 13 8 8 5 fb(:,:,7) = 21 13 13 8 fb(:,:,8) = 34 21 21 13 fb(:,:,9) = 55 34 34 21 fb(:,:,10) = 89 55 55 34 fb(:,:,11) = 144 89 89 55 fb(:,:,12) = 233 144 144 89 fb(:,:,13) = 377 233 233 144 fb(:,:,14) = 610 377 377 233 fb(:,:,15) = 987 610 610 377 fb(:,:,16) = 1597 987 987 610 fb(:,:,17) = 2584 1597 1597 987 fb(:,:,18) = 4181 2584 2584 1597 fb(:,:,1) = 1 1 1 0 fb(:,:,2) = 2 1 1 1 fb(:,:,3) = 3 2 2 1 fb(:,:,4) = 5 3 3 2 fb(:,:,5) = 8 5 5 3 fb(:,:,6) = 13 8 8 5 fb(:,:,7) = 21 13 13 8 fb(:,:,8) = 34 21 21 13 fb(:,:,9) = 55 34 34 21 fb(:,:,10) = 89 55 55 34 fb(:,:,11) = 144 89 89 55 fb(:,:,12) = 233 144 144 89 fb(:,:,13) = 377 233 233 144 fb(:,:,14) = 610 377 377 233 fb(:,:,15) = 987 610 610 377 fb(:,:,16) = 1597 987 987 610 fb(:,:,17) = 2584 1597 1597 987 fb(:,:,18) = 4181 2584 2584 1597 fb(:,:,19) = 6765 4181 4181 2584 fb(:,:,1) = 1 1 1 0 fb(:,:,2) = 2 1 1 1 fb(:,:,3) = 3 2 2 1 fb(:,:,4) = 5 3 3 2 fb(:,:,5) = 8 5 5 3 fb(:,:,6) = 13 8 8 5 fb(:,:,7) = 21 13 13 8 fb(:,:,8) = 34 21 21 13 fb(:,:,9) = 55 34 34 21 fb(:,:,10) = 89 55 55 34 fb(:,:,11) = 144 89 89 55 fb(:,:,12) = 233 144 144 89 fb(:,:,13) = 377 233 233 144 fb(:,:,14) = 610 377 377 233 fb(:,:,15) = 987 610 610 377 fb(:,:,16) = 1597 987 987 610 fb(:,:,17) = 2584 1597 1597 987 fb(:,:,18) = 4181 2584 2584 1597 fb(:,:,19) = 6765 4181 4181 2584 fb(:,:,20) = 10946 6765 6765 4181 fb(:,:,1) = 1 1 1 0 fb(:,:,2) = 2 1 1 1 fb(:,:,3) = 3 2 2 1 fb(:,:,4) = 5 3 3 2 fb(:,:,5) = 8 5 5 3 fb(:,:,6) = 13 8 8 5 fb(:,:,7) = 21 13 13 8 fb(:,:,8) = 34 21 21 13 fb(:,:,9) = 55 34 34 21 fb(:,:,10) = 89 55 55 34 fb(:,:,11) = 144 89 89 55 fb(:,:,12) = 233 144 144 89 fb(:,:,13) = 377 233 233 144 fb(:,:,14) = 610 377 377 233 fb(:,:,15) = 987 610 610 377 fb(:,:,16) = 1597 987 987 610 fb(:,:,17) = 2584 1597 1597 987 fb(:,:,18) = 4181 2584 2584 1597 fb(:,:,19) = 6765 4181 4181 2584 fb(:,:,20) = 10946 6765 6765 4181 fb(:,:,21) = ...

Assertion failed.

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

fb = 1 1 1 0 fb(:,:,1) = 1 1 1 0 fb(:,:,2) = 2 1 1 1 fb(:,:,1) = 1 1 1 0 fb(:,:,2) = 2 1 1 1 fb(:,:,3) = 3 2 2 1 fb(:,:,1) = 1 1 1 0 fb(:,:,2) = 2 1 1 1 fb(:,:,3) = 3 2 2 1 fb(:,:,4) = 5 3 3 2 fb(:,:,1) = 1 1 1 0 fb(:,:,2) = 2 1 1 1 fb(:,:,3) = 3 2 2 1 fb(:,:,4) = 5 3 3 2 fb(:,:,5) = 8 5 5 3 fb(:,:,1) = 1 1 1 0 fb(:,:,2) = 2 1 1 1 fb(:,:,3) = 3 2 2 1 fb(:,:,4) = 5 3 3 2 fb(:,:,5) = 8 5 5 3 fb(:,:,6) = 13 8 8 5 fb(:,:,1) = 1 1 1 0 fb(:,:,2) = 2 1 1 1 fb(:,:,3) = 3 2 2 1 fb(:,:,4) = 5 3 3 2 fb(:,:,5) = 8 5 5 3 fb(:,:,6) = 13 8 8 5 fb(:,:,7) = 21 13 13 8 fb(:,:,1) = 1 1 1 0 fb(:,:,2) = 2 1 1 1 fb(:,:,3) = 3 2 2 1 fb(:,:,4) = 5 3 3 2 fb(:,:,5) = 8 5 5 3 fb(:,:,6) = 13 8 8 5 fb(:,:,7) = 21 13 13 8 fb(:,:,8) = 34 21 21 13 fb(:,:,1) = 1 1 1 0 fb(:,:,2) = 2 1 1 1 fb(:,:,3) = 3 2 2 1 fb(:,:,4) = 5 3 3 2 fb(:,:,5) = 8 5 5 3 fb(:,:,6) = 13 8 8 5 fb(:,:,7) = 21 13 13 8 fb(:,:,8) = 34 21 21 13 fb(:,:,9) = 55 34 34 21 fb(:,:,1) = 1 1 1 0 fb(:,:,2) = 2 1 1 1 fb(:,:,3) = 3 2 2 1 fb(:,:,4) = 5 3 3 2 fb(:,:,5) = 8 5 5 3 fb(:,:,6) = 13 8 8 5 fb(:,:,7) = 21 13 13 8 fb(:,:,8) = 34 21 21 13 fb(:,:,9) = 55 34 34 21 fb(:,:,10) = 89 55 55 34 fb(:,:,1) = 1 1 1 0 fb(:,:,2) = 2 1 1 1 fb(:,:,3) = 3 2 2 1 fb(:,:,4) = 5 3 3 2 fb(:,:,5) = 8 5 5 3 fb(:,:,6) = 13 8 8 5 fb(:,:,7) = 21 13 13 8 fb(:,:,8) = 34 21 21 13 fb(:,:,9) = 55 34 34 21 fb(:,:,10) = 89 55 55 34 fb(:,:,11) = 144 89 89 55 fb(:,:,1) = 1 1 1 0 fb(:,:,2) = 2 1 1 1 fb(:,:,3) = 3 2 2 1 fb(:,:,4) = 5 3 3 2 fb(:,:,5) = 8 5 5 3 fb(:,:,6) = 13 8 8 5 fb(:,:,7) = 21 13 13 8 fb(:,:,8) = 34 21 21 13 fb(:,:,9) = 55 34 34 21 fb(:,:,10) = 89 55 55 34 fb(:,:,11) = 144 89 89 55 fb(:,:,12) = 233 144 144 89 fb(:,:,1) = 1 1 1 0 fb(:,:,2) = 2 1 1 1 fb(:,:,3) = 3 2 2 1 fb(:,:,4) = 5 3 3 2 fb(:,:,5) = 8 5 5 3 fb(:,:,6) = 13 8 8 5 fb(:,:,7) = 21 13 13 8 fb(:,:,8) = 34 21 21 13 fb(:,:,9) = 55 34 34 21 fb(:,:,10) = 89 55 55 34 fb(:,:,11) = 144 89 89 55 fb(:,:,12) = 233 144 144 89 fb(:,:,13) = 377 233 233 144 fb(:,:,1) = 1 1 1 0 fb(:,:,2) = 2 1 1 1 fb(:,:,3) = 3 2 2 1 fb(:,:,4) = 5 3 3 2 fb(:,:,5) = 8 5 5 3 fb(:,:,6) = 13 8 8 5 fb(:,:,7) = 21 13 13 8 fb(:,:,8) = 34 21 21 13 fb(:,:,9) = 55 34 34 21 fb(:,:,10) = 89 55 55 34 fb(:,:,11) = 144 89 89 55 fb(:,:,12) = 233 144 144 89 fb(:,:,13) = 377 233 233 144 fb(:,:,14) = 610 377 377 233 fb(:,:,1) = 1 1 1 0 fb(:,:,2) = 2 1 1 1 fb(:,:,3) = 3 2 2 1 fb(:,:,4) = 5 3 3 2 fb(:,:,5) = 8 5 5 3 fb(:,:,6) = 13 8 8 5 fb(:,:,7) = 21 13 13 8 fb(:,:,8) = 34 21 21 13 fb(:,:,9) = 55 34 34 21 fb(:,:,10) = 89 55 55 34 fb(:,:,11) = 144 89 89 55 fb(:,:,12) = 233 144 144 89 fb(:,:,13) = 377 233 233 144 fb(:,:,14) = 610 377 377 233 fb(:,:,15) = 987 610 610 377 fb(:,:,1) = 1 1 1 0 fb(:,:,2) = 2 1 1 1 fb(:,:,3) = 3 2 2 1 fb(:,:,4) = 5 3 3 2 fb(:,:,5) = 8 5 5 3 fb(:,:,6) = 13 8 8 5 fb(:,:,7) = 21 13 13 8 fb(:,:,8) = 34 21 21 13 fb(:,:,9) = 55 34 34 21 fb(:,:,10) = 89 55 55 34 fb(:,:,11) = 144 89 89 55 fb(:,:,12) = 233 144 144 89 fb(:,:,13) = 377 233 233 144 fb(:,:,14) = 610 377 377 233 fb(:,:,15) = 987 610 610 377 fb(:,:,16) = 1597 987 987 610 fb(:,:,1) = 1 1 1 0 fb(:,:,2) = 2 1 1 1 fb(:,:,3) = 3 2 2 1 fb(:,:,4) = 5 3 3 2 fb(:,:,5) = 8 5 5 3 fb(:,:,6) = 13 8 8 5 fb(:,:,7) = 21 13 13 8 fb(:,:,8) = 34 21 21 13 fb(:,:,9) = 55 34 34 21 fb(:,:,10) = 89 55 55 34 fb(:,:,11) = 144 89 89 55 fb(:,:,12) = 233 144 144 89 fb(:,:,13) = 377 233 233 144 fb(:,:,14) = 610 377 377 233 fb(:,:,15) = 987 610 610 377 fb(:,:,16) = 1597 987 987 610 fb(:,:,17) = 2584 1597 1597 987 fb(:,:,1) = 1 1 1 0 fb(:,:,2) = 2 1 1 1 fb(:,:,3) = 3 2 2 1 fb(:,:,4) = 5 3 3 2 fb(:,:,5) = 8 5 5 3 fb(:,:,6) = 13 8 8 5 fb(:,:,7) = 21 13 13 8 fb(:,:,8) = 34 21 21 13 fb(:,:,9) = 55 34 34 21 fb(:,:,10) = 89 55 55 34 fb(:,:,11) = 144 89 89 55 fb(:,:,12) = 233 144 144 89 fb(:,:,13) = 377 233 233 144 fb(:,:,14) = 610 377 377 233 fb(:,:,15) = 987 610 610 377 fb(:,:,16) = 1597 987 987 610 fb(:,:,17) = 2584 1597 1597 987 fb(:,:,18) = 4181 2584 2584 1597 fb(:,:,1) = 1 1 1 0 fb(:,:,2) = 2 1 1 1 fb(:,:,3) = 3 2 2 1 fb(:,:,4) = 5 3 3 2 fb(:,:,5) = 8 5 5 3 fb(:,:,6) = 13 8 8 5 fb(:,:,7) = 21 13 13 8 fb(:,:,8) = 34 21 21 13 fb(:,:,9) = 55 34 34 21 fb(:,:,10) = 89 55 55 34 fb(:,:,11) = 144 89 89 55 fb(:,:,12) = 233 144 144 89 fb(:,:,13) = 377 233 233 144 fb(:,:,14) = 610 377 377 233 fb(:,:,15) = 987 610 610 377 fb(:,:,16) = 1597 987 987 610 fb(:,:,17) = 2584 1597 1597 987 fb(:,:,18) = 4181 2584 2584 1597 fb(:,:,19) = 6765 4181 4181 2584 fb(:,:,1) = 1 1 1 0 fb(:,:,2) = 2 1 1 1 fb(:,:,3) = 3 2 2 1 fb(:,:,4) = 5 3 3 2 fb(:,:,5) = 8 5 5 3 fb(:,:,6) = 13 8 8 5 fb(:,:,7) = 21 13 13 8 fb(:,:,8) = 34 21 21 13 fb(:,:,9) = 55 34 34 21 fb(:,:,10) = 89 55 55 34 fb(:,:,11) = 144 89 89 55 fb(:,:,12) = 233 144 144 89 fb(:,:,13) = 377 233 233 144 fb(:,:,14) = 610 377 377 233 fb(:,:,15) = 987 610 610 377 fb(:,:,16) = 1597 987 987 610 fb(:,:,17) = 2584 1597 1597 987 fb(:,:,18) = 4181 2584 2584 1597 fb(:,:,19) = 6765 4181 4181 2584 fb(:,:,20) = 10946 6765 6765 4181 fb(:,:,1) = 1 1 1 0 fb(:,:,2) = 2 1 1 1 fb(:,:,3) = 3 2 2 1 fb(:,:,4) = 5 3 3 2 fb(:,:,5) = 8 5 5 3 fb(:,:,6) = 13 8 8 5 fb(:,:,7) = 21 13 13 8 fb(:,:,8) = 34 21 21 13 fb(:,:,9) = 55 34 34 21 fb(:,:,10) = 89 55 55 34 fb(:,:,11) = 144 89 89 55 fb(:,:,12) = 233 144 144 89 fb(:,:,13) = 377 233 233 144 fb(:,:,14) = 610 377 377 233 fb(:,:,15) = 987 610 610 377 fb(:,:,16) = 1597 987 987 610 fb(:,:,17) = 2584 1597 1597 987 fb(:,:,18) = 4181 2584 2584 1597 fb(:,:,19) = 6765 4181 4181 2584 fb(:,:,20) = 10946 6765 6765 4181 fb(:,:,21) = ...

Assertion failed.