Cody

Problem 45203. Check if a number belongs in the fibonacci squence

Solution 2057178

Submitted on 13 Dec 2019 by Martin C.
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
assert(isequal(isFibonacci(2),true))

one = 0 two = 1 f = [] f = 1 f = 1 2 f = 1 2 3 f = 1 2 3 5 f = 1 2 3 5 8 f = 1 2 3 5 8 13 f = 1 2 3 5 8 13 21 f = 1 2 3 5 8 13 21 34 f = 1 2 3 5 8 13 21 34 55 f = 1 2 3 5 8 13 21 34 55 89 f = 1 2 3 5 8 13 21 34 55 89 144 f = 1 2 3 5 8 13 21 34 55 89 144 233 f = 1 2 3 5 8 13 21 34 55 89 144 233 377 f = 1 2 3 5 8 13 21 34 55 89 144 233 377 610 f = 1 2 3 5 8 13 21 34 55 89 144 233 377 610 987 f = Columns 1 through 14 1 2 3 5 8 13 21 34 55 89 144 233 377 610 Columns 15 through 16 987 1597 f = Columns 1 through 14 1 2 3 5 8 13 21 34 55 89 144 233 377 610 Columns 15 through 17 987 1597 2584 f = Columns 1 through 14 1 2 3 5 8 13 21 34 55 89 144 233 377 610 Columns 15 through 18 987 1597 2584 4181 f = Columns 1 through 14 1 2 3 5 8 13 21 34 55 89 144 233 377 610 Columns 15 through 19 987 1597 2584 4181 6765 f = Columns 1 through 14 1 2 3 5 8 13 21 34 55 89 144 233 377 610 Columns 15 through 20 987 1597 2584 4181 6765 10946 f = Columns 1 through 14 1 2 3 5 8 13 21 34 55 89 144 233 377 610 Columns 15 through 21 987 1597 2584 4181 6765 10946 17711 f = Columns 1 through 14 1 2 3 5 8 13 21 34 55 89 144 233 377 610 Columns 15 through 22 987 1597 2584 4181 6765 10946 17711 28657 f = Columns 1 through 14 1 2 3 5 8 13 21 34 55 89 144 233 377 610 Columns 15 through 23 987 1597 2584 4181 6765 10946 17711 28657 46368 f = Columns 1 through 14 1 2 3 5 8 13 21 34 55 89 144 233 377 610 Columns 15 through 24 987 1597 2584 4181 6765 10946 17711 28657 46368 75025 f = Columns 1 through 14 1 2 3 5 8 13 21 34 55 89 144 233 377 610 Columns 15 through 25 987 1597 2584 4181 6765 10946 17711 28657 46368 75025 121393 f = Columns 1 through 14 1 2 3 5 8 13 21 34 55 89 144 233 377 610 Columns 15 through 26 987 1597 2584 4181 6765 10946 17711 28657 46368 75025 121393 196418 f = Columns 1 through 14 1 2 3 5 8 13 21 34 55 89 144 233 377 610 Columns 15 through 27 987 1597 2584 4181 6765 10946 17711 28657 46368 75025 121393 196418 317811 f = Columns 1 through 14 1 2 3 5 8 13 21 34 55 89 144 233 377 610 Columns 15 through 28 987 1597 2584 4181 6765 10946 17711 28657 46368 75025 121393 196418 317811 514229 f = Columns 1 through 14 1 2 3 5 8 13 21 34 55 89 144 233 377 610 Columns 15 through 28 987 1597 2584 4181 6765 10946 17711 28657 46368 75025 121393 196418 317811 514229 Column 29 832040 f = Columns 1 through 14 1 2 3 5 8 13 21 34 55 89 144 233 377 610 Columns 15 through 28 987 1597 2584 4181 6765 10946 17711 28657 46368 75025 121393 196418 317811 514229 Columns 29 through 30 832040 1346269 f = Columns 1 through 14 1 2 3 5 8 13 21 34 55 89 144 233 377 610 Columns 15 through 28 987 1597 2584 4181 6765 10946 17711 28657 46368 75025 121393 196418 317811 514229 Columns 29 through 31 832040 1346269 2178309 f = Columns 1 through 14 1 2 3 5 8 13 21 34 55 89 144 233 377 610 Columns 15 through 28 987 1597 2584 4181 6765 10946 17711 28657 46368 75025 121393 196418 317811 514229 Columns 29 through 32 832040 1346269 2178309 3524578 f = Columns 1 through 14 1 2 3 5 8 13 21 34 55 89 144 233 377 610 Columns 15 through 28 987 1597 2584 4181 6765 10946 17711 28657 46368 75025 121393 196418 317811 514229 Columns 29 through 33 832040 1346269 2178309 3524578 5702887 f = Columns 1 through 14 1 2 3 5 8 13 21 34 55 89 144 233 377 610 Columns 15 through 28 987 1597 2584 4181 6765 10946 17711 28657 46368 75025 121393 196418 317811 514229 Columns 29 through 34 832040 1346269 2178309 3524578 5702887 9227465 f = Columns 1 through 14 1 2 3 5 8 13 21 34 55 89 144 233 377 610 Columns 15 through 28 987 1597 2584 4181 6765 10946 17711 28657 46368 75025 121393 196418 317811 514229 Columns 29 through 35 832040 1346269 2178309 3524578 5702887 9227465 14930352 f = Columns 1 through 14 1 2 3 5 8 13 21 34 55 89 144 233 377 610 Columns 15 through 28 987 1597 2584 4181 6765 10946 17711 28657 46368 75025 121393 196418 317811 514229 Columns 29 through 36 832040 1346269 2178309 3524578 5702887 9227465 14930352 24157817 f = Columns 1 through 14 1 2 3 5 8 13 21 34 55 89 144 233 377 610 Columns 15 through 28 987 1597 2584 4181 6765 10946 17711 28657 46368 75025 121393 196418 317811 514229 Columns 29 through 37 832040 1346269 2178309 3524578 5702887 9227465 14930352 24157817 39088169 f = Columns 1 through 14 1 2 3 5 8 13 21 34 55 89 144 233 377 610 Columns 15 through 28 987 1597 2584 4181 6765 10946 17711 28657 46368 75025 121393 196418 317811 514229 Columns 29 through 38 832040 1346269 2178309 3524578 5702887 9227465 14930352 24157817 39088169 63245986 f = Columns 1 through 14 1 ...

2   Pass
assert(isequal(isFibonacci(3),true))

one = 0 two = 1 f = [] f = 1 f = 1 2 f = 1 2 3 f = 1 2 3 5 f = 1 2 3 5 8 f = 1 2 3 5 8 13 f = 1 2 3 5 8 13 21 f = 1 2 3 5 8 13 21 34 f = 1 2 3 5 8 13 21 34 55 f = 1 2 3 5 8 13 21 34 55 89 f = 1 2 3 5 8 13 21 34 55 89 144 f = 1 2 3 5 8 13 21 34 55 89 144 233 f = 1 2 3 5 8 13 21 34 55 89 144 233 377 f = 1 2 3 5 8 13 21 34 55 89 144 233 377 610 f = 1 2 3 5 8 13 21 34 55 89 144 233 377 610 987 f = Columns 1 through 14 1 2 3 5 8 13 21 34 55 89 144 233 377 610 Columns 15 through 16 987 1597 f = Columns 1 through 14 1 2 3 5 8 13 21 34 55 89 144 233 377 610 Columns 15 through 17 987 1597 2584 f = Columns 1 through 14 1 2 3 5 8 13 21 34 55 89 144 233 377 610 Columns 15 through 18 987 1597 2584 4181 f = Columns 1 through 14 1 2 3 5 8 13 21 34 55 89 144 233 377 610 Columns 15 through 19 987 1597 2584 4181 6765 f = Columns 1 through 14 1 2 3 5 8 13 21 34 55 89 144 233 377 610 Columns 15 through 20 987 1597 2584 4181 6765 10946 f = Columns 1 through 14 1 2 3 5 8 13 21 34 55 89 144 233 377 610 Columns 15 through 21 987 1597 2584 4181 6765 10946 17711 f = Columns 1 through 14 1 2 3 5 8 13 21 34 55 89 144 233 377 610 Columns 15 through 22 987 1597 2584 4181 6765 10946 17711 28657 f = Columns 1 through 14 1 2 3 5 8 13 21 34 55 89 144 233 377 610 Columns 15 through 23 987 1597 2584 4181 6765 10946 17711 28657 46368 f = Columns 1 through 14 1 2 3 5 8 13 21 34 55 89 144 233 377 610 Columns 15 through 24 987 1597 2584 4181 6765 10946 17711 28657 46368 75025 f = Columns 1 through 14 1 2 3 5 8 13 21 34 55 89 144 233 377 610 Columns 15 through 25 987 1597 2584 4181 6765 10946 17711 28657 46368 75025 121393 f = Columns 1 through 14 1 2 3 5 8 13 21 34 55 89 144 233 377 610 Columns 15 through 26 987 1597 2584 4181 6765 10946 17711 28657 46368 75025 121393 196418 f = Columns 1 through 14 1 2 3 5 8 13 21 34 55 89 144 233 377 610 Columns 15 through 27 987 1597 2584 4181 6765 10946 17711 28657 46368 75025 121393 196418 317811 f = Columns 1 through 14 1 2 3 5 8 13 21 34 55 89 144 233 377 610 Columns 15 through 28 987 1597 2584 4181 6765 10946 17711 28657 46368 75025 121393 196418 317811 514229 f = Columns 1 through 14 1 2 3 5 8 13 21 34 55 89 144 233 377 610 Columns 15 through 28 987 1597 2584 4181 6765 10946 17711 28657 46368 75025 121393 196418 317811 514229 Column 29 832040 f = Columns 1 through 14 1 2 3 5 8 13 21 34 55 89 144 233 377 610 Columns 15 through 28 987 1597 2584 4181 6765 10946 17711 28657 46368 75025 121393 196418 317811 514229 Columns 29 through 30 832040 1346269 f = Columns 1 through 14 1 2 3 5 8 13 21 34 55 89 144 233 377 610 Columns 15 through 28 987 1597 2584 4181 6765 10946 17711 28657 46368 75025 121393 196418 317811 514229 Columns 29 through 31 832040 1346269 2178309 f = Columns 1 through 14 1 2 3 5 8 13 21 34 55 89 144 233 377 610 Columns 15 through 28 987 1597 2584 4181 6765 10946 17711 28657 46368 75025 121393 196418 317811 514229 Columns 29 through 32 832040 1346269 2178309 3524578 f = Columns 1 through 14 1 2 3 5 8 13 21 34 55 89 144 233 377 610 Columns 15 through 28 987 1597 2584 4181 6765 10946 17711 28657 46368 75025 121393 196418 317811 514229 Columns 29 through 33 832040 1346269 2178309 3524578 5702887 f = Columns 1 through 14 1 2 3 5 8 13 21 34 55 89 144 233 377 610 Columns 15 through 28 987 1597 2584 4181 6765 10946 17711 28657 46368 75025 121393 196418 317811 514229 Columns 29 through 34 832040 1346269 2178309 3524578 5702887 9227465 f = Columns 1 through 14 1 2 3 5 8 13 21 34 55 89 144 233 377 610 Columns 15 through 28 987 1597 2584 4181 6765 10946 17711 28657 46368 75025 121393 196418 317811 514229 Columns 29 through 35 832040 1346269 2178309 3524578 5702887 9227465 14930352 f = Columns 1 through 14 1 2 3 5 8 13 21 34 55 89 144 233 377 610 Columns 15 through 28 987 1597 2584 4181 6765 10946 17711 28657 46368 75025 121393 196418 317811 514229 Columns 29 through 36 832040 1346269 2178309 3524578 5702887 9227465 14930352 24157817 f = Columns 1 through 14 1 2 3 5 8 13 21 34 55 89 144 233 377 610 Columns 15 through 28 987 1597 2584 4181 6765 10946 17711 28657 46368 75025 121393 196418 317811 514229 Columns 29 through 37 832040 1346269 2178309 3524578 5702887 9227465 14930352 24157817 39088169 f = Columns 1 through 14 1 2 3 5 8 13 21 34 55 89 144 233 377 610 Columns 15 through 28 987 1597 2584 4181 6765 10946 17711 28657 46368 75025 121393 196418 317811 514229 Columns 29 through 38 832040 1346269 2178309 3524578 5702887 9227465 14930352 24157817 39088169 63245986 f = Columns 1 through 14 1 ...

3   Pass
assert(isequal(isFibonacci(5),true))

one = 0 two = 1 f = [] f = 1 f = 1 2 f = 1 2 3 f = 1 2 3 5 f = 1 2 3 5 8 f = 1 2 3 5 8 13 f = 1 2 3 5 8 13 21 f = 1 2 3 5 8 13 21 34 f = 1 2 3 5 8 13 21 34 55 f = 1 2 3 5 8 13 21 34 55 89 f = 1 2 3 5 8 13 21 34 55 89 144 f = 1 2 3 5 8 13 21 34 55 89 144 233 f = 1 2 3 5 8 13 21 34 55 89 144 233 377 f = 1 2 3 5 8 13 21 34 55 89 144 233 377 610 f = 1 2 3 5 8 13 21 34 55 89 144 233 377 610 987 f = Columns 1 through 14 1 2 3 5 8 13 21 34 55 89 144 233 377 610 Columns 15 through 16 987 1597 f = Columns 1 through 14 1 2 3 5 8 13 21 34 55 89 144 233 377 610 Columns 15 through 17 987 1597 2584 f = Columns 1 through 14 1 2 3 5 8 13 21 34 55 89 144 233 377 610 Columns 15 through 18 987 1597 2584 4181 f = Columns 1 through 14 1 2 3 5 8 13 21 34 55 89 144 233 377 610 Columns 15 through 19 987 1597 2584 4181 6765 f = Columns 1 through 14 1 2 3 5 8 13 21 34 55 89 144 233 377 610 Columns 15 through 20 987 1597 2584 4181 6765 10946 f = Columns 1 through 14 1 2 3 5 8 13 21 34 55 89 144 233 377 610 Columns 15 through 21 987 1597 2584 4181 6765 10946 17711 f = Columns 1 through 14 1 2 3 5 8 13 21 34 55 89 144 233 377 610 Columns 15 through 22 987 1597 2584 4181 6765 10946 17711 28657 f = Columns 1 through 14 1 2 3 5 8 13 21 34 55 89 144 233 377 610 Columns 15 through 23 987 1597 2584 4181 6765 10946 17711 28657 46368 f = Columns 1 through 14 1 2 3 5 8 13 21 34 55 89 144 233 377 610 Columns 15 through 24 987 1597 2584 4181 6765 10946 17711 28657 46368 75025 f = Columns 1 through 14 1 2 3 5 8 13 21 34 55 89 144 233 377 610 Columns 15 through 25 987 1597 2584 4181 6765 10946 17711 28657 46368 75025 121393 f = Columns 1 through 14 1 2 3 5 8 13 21 34 55 89 144 233 377 610 Columns 15 through 26 987 1597 2584 4181 6765 10946 17711 28657 46368 75025 121393 196418 f = Columns 1 through 14 1 2 3 5 8 13 21 34 55 89 144 233 377 610 Columns 15 through 27 987 1597 2584 4181 6765 10946 17711 28657 46368 75025 121393 196418 317811 f = Columns 1 through 14 1 2 3 5 8 13 21 34 55 89 144 233 377 610 Columns 15 through 28 987 1597 2584 4181 6765 10946 17711 28657 46368 75025 121393 196418 317811 514229 f = Columns 1 through 14 1 2 3 5 8 13 21 34 55 89 144 233 377 610 Columns 15 through 28 987 1597 2584 4181 6765 10946 17711 28657 46368 75025 121393 196418 317811 514229 Column 29 832040 f = Columns 1 through 14 1 2 3 5 8 13 21 34 55 89 144 233 377 610 Columns 15 through 28 987 1597 2584 4181 6765 10946 17711 28657 46368 75025 121393 196418 317811 514229 Columns 29 through 30 832040 1346269 f = Columns 1 through 14 1 2 3 5 8 13 21 34 55 89 144 233 377 610 Columns 15 through 28 987 1597 2584 4181 6765 10946 17711 28657 46368 75025 121393 196418 317811 514229 Columns 29 through 31 832040 1346269 2178309 f = Columns 1 through 14 1 2 3 5 8 13 21 34 55 89 144 233 377 610 Columns 15 through 28 987 1597 2584 4181 6765 10946 17711 28657 46368 75025 121393 196418 317811 514229 Columns 29 through 32 832040 1346269 2178309 3524578 f = Columns 1 through 14 1 2 3 5 8 13 21 34 55 89 144 233 377 610 Columns 15 through 28 987 1597 2584 4181 6765 10946 17711 28657 46368 75025 121393 196418 317811 514229 Columns 29 through 33 832040 1346269 2178309 3524578 5702887 f = Columns 1 through 14 1 2 3 5 8 13 21 34 55 89 144 233 377 610 Columns 15 through 28 987 1597 2584 4181 6765 10946 17711 28657 46368 75025 121393 196418 317811 514229 Columns 29 through 34 832040 1346269 2178309 3524578 5702887 9227465 f = Columns 1 through 14 1 2 3 5 8 13 21 34 55 89 144 233 377 610 Columns 15 through 28 987 1597 2584 4181 6765 10946 17711 28657 46368 75025 121393 196418 317811 514229 Columns 29 through 35 832040 1346269 2178309 3524578 5702887 9227465 14930352 f = Columns 1 through 14 1 2 3 5 8 13 21 34 55 89 144 233 377 610 Columns 15 through 28 987 1597 2584 4181 6765 10946 17711 28657 46368 75025 121393 196418 317811 514229 Columns 29 through 36 832040 1346269 2178309 3524578 5702887 9227465 14930352 24157817 f = Columns 1 through 14 1 2 3 5 8 13 21 34 55 89 144 233 377 610 Columns 15 through 28 987 1597 2584 4181 6765 10946 17711 28657 46368 75025 121393 196418 317811 514229 Columns 29 through 37 832040 1346269 2178309 3524578 5702887 9227465 14930352 24157817 39088169 f = Columns 1 through 14 1 2 3 5 8 13 21 34 55 89 144 233 377 610 Columns 15 through 28 987 1597 2584 4181 6765 10946 17711 28657 46368 75025 121393 196418 317811 514229 Columns 29 through 38 832040 1346269 2178309 3524578 5702887 9227465 14930352 24157817 39088169 63245986 f = Columns 1 through 14 1 ...

4   Pass
assert(isequal(isFibonacci(89),true))

one = 0 two = 1 f = [] f = 1 f = 1 2 f = 1 2 3 f = 1 2 3 5 f = 1 2 3 5 8 f = 1 2 3 5 8 13 f = 1 2 3 5 8 13 21 f = 1 2 3 5 8 13 21 34 f = 1 2 3 5 8 13 21 34 55 f = 1 2 3 5 8 13 21 34 55 89 f = 1 2 3 5 8 13 21 34 55 89 144 f = 1 2 3 5 8 13 21 34 55 89 144 233 f = 1 2 3 5 8 13 21 34 55 89 144 233 377 f = 1 2 3 5 8 13 21 34 55 89 144 233 377 610 f = 1 2 3 5 8 13 21 34 55 89 144 233 377 610 987 f = Columns 1 through 14 1 2 3 5 8 13 21 34 55 89 144 233 377 610 Columns 15 through 16 987 1597 f = Columns 1 through 14 1 2 3 5 8 13 21 34 55 89 144 233 377 610 Columns 15 through 17 987 1597 2584 f = Columns 1 through 14 1 2 3 5 8 13 21 34 55 89 144 233 377 610 Columns 15 through 18 987 1597 2584 4181 f = Columns 1 through 14 1 2 3 5 8 13 21 34 55 89 144 233 377 610 Columns 15 through 19 987 1597 2584 4181 6765 f = Columns 1 through 14 1 2 3 5 8 13 21 34 55 89 144 233 377 610 Columns 15 through 20 987 1597 2584 4181 6765 10946 f = Columns 1 through 14 1 2 3 5 8 13 21 34 55 89 144 233 377 610 Columns 15 through 21 987 1597 2584 4181 6765 10946 17711 f = Columns 1 through 14 1 2 3 5 8 13 21 34 55 89 144 233 377 610 Columns 15 through 22 987 1597 2584 4181 6765 10946 17711 28657 f = Columns 1 through 14 1 2 3 5 8 13 21 34 55 89 144 233 377 610 Columns 15 through 23 987 1597 2584 4181 6765 10946 17711 28657 46368 f = Columns 1 through 14 1 2 3 5 8 13 21 34 55 89 144 233 377 610 Columns 15 through 24 987 1597 2584 4181 6765 10946 17711 28657 46368 75025 f = Columns 1 through 14 1 2 3 5 8 13 21 34 55 89 144 233 377 610 Columns 15 through 25 987 1597 2584 4181 6765 10946 17711 28657 46368 75025 121393 f = Columns 1 through 14 1 2 3 5 8 13 21 34 55 89 144 233 377 610 Columns 15 through 26 987 1597 2584 4181 6765 10946 17711 28657 46368 75025 121393 196418 f = Columns 1 through 14 1 2 3 5 8 13 21 34 55 89 144 233 377 610 Columns 15 through 27 987 1597 2584 4181 6765 10946 17711 28657 46368 75025 121393 196418 317811 f = Columns 1 through 14 1 2 3 5 8 13 21 34 55 89 144 233 377 610 Columns 15 through 28 987 1597 2584 4181 6765 10946 17711 28657 46368 75025 121393 196418 317811 514229 f = Columns 1 through 14 1 2 3 5 8 13 21 34 55 89 144 233 377 610 Columns 15 through 28 987 1597 2584 4181 6765 10946 17711 28657 46368 75025 121393 196418 317811 514229 Column 29 832040 f = Columns 1 through 14 1 2 3 5 8 13 21 34 55 89 144 233 377 610 Columns 15 through 28 987 1597 2584 4181 6765 10946 17711 28657 46368 75025 121393 196418 317811 514229 Columns 29 through 30 832040 1346269 f = Columns 1 through 14 1 2 3 5 8 13 21 34 55 89 144 233 377 610 Columns 15 through 28 987 1597 2584 4181 6765 10946 17711 28657 46368 75025 121393 196418 317811 514229 Columns 29 through 31 832040 1346269 2178309 f = Columns 1 through 14 1 2 3 5 8 13 21 34 55 89 144 233 377 610 Columns 15 through 28 987 1597 2584 4181 6765 10946 17711 28657 46368 75025 121393 196418 317811 514229 Columns 29 through 32 832040 1346269 2178309 3524578 f = Columns 1 through 14 1 2 3 5 8 13 21 34 55 89 144 233 377 610 Columns 15 through 28 987 1597 2584 4181 6765 10946 17711 28657 46368 75025 121393 196418 317811 514229 Columns 29 through 33 832040 1346269 2178309 3524578 5702887 f = Columns 1 through 14 1 2 3 5 8 13 21 34 55 89 144 233 377 610 Columns 15 through 28 987 1597 2584 4181 6765 10946 17711 28657 46368 75025 121393 196418 317811 514229 Columns 29 through 34 832040 1346269 2178309 3524578 5702887 9227465 f = Columns 1 through 14 1 2 3 5 8 13 21 34 55 89 144 233 377 610 Columns 15 through 28 987 1597 2584 4181 6765 10946 17711 28657 46368 75025 121393 196418 317811 514229 Columns 29 through 35 832040 1346269 2178309 3524578 5702887 9227465 14930352 f = Columns 1 through 14 1 2 3 5 8 13 21 34 55 89 144 233 377 610 Columns 15 through 28 987 1597 2584 4181 6765 10946 17711 28657 46368 75025 121393 196418 317811 514229 Columns 29 through 36 832040 1346269 2178309 3524578 5702887 9227465 14930352 24157817 f = Columns 1 through 14 1 2 3 5 8 13 21 34 55 89 144 233 377 610 Columns 15 through 28 987 1597 2584 4181 6765 10946 17711 28657 46368 75025 121393 196418 317811 514229 Columns 29 through 37 832040 1346269 2178309 3524578 5702887 9227465 14930352 24157817 39088169 f = Columns 1 through 14 1 2 3 5 8 13 21 34 55 89 144 233 377 610 Columns 15 through 28 987 1597 2584 4181 6765 10946 17711 28657 46368 75025 121393 196418 317811 514229 Columns 29 through 38 832040 1346269 2178309 3524578 5702887 9227465 14930352 24157817 39088169 63245986 f = Columns 1 through 14 1 ...

5   Pass
assert(isequal(isFibonacci(233),true))

one = 0 two = 1 f = [] f = 1 f = 1 2 f = 1 2 3 f = 1 2 3 5 f = 1 2 3 5 8 f = 1 2 3 5 8 13 f = 1 2 3 5 8 13 21 f = 1 2 3 5 8 13 21 34 f = 1 2 3 5 8 13 21 34 55 f = 1 2 3 5 8 13 21 34 55 89 f = 1 2 3 5 8 13 21 34 55 89 144 f = 1 2 3 5 8 13 21 34 55 89 144 233 f = 1 2 3 5 8 13 21 34 55 89 144 233 377 f = 1 2 3 5 8 13 21 34 55 89 144 233 377 610 f = 1 2 3 5 8 13 21 34 55 89 144 233 377 610 987 f = Columns 1 through 14 1 2 3 5 8 13 21 34 55 89 144 233 377 610 Columns 15 through 16 987 1597 f = Columns 1 through 14 1 2 3 5 8 13 21 34 55 89 144 233 377 610 Columns 15 through 17 987 1597 2584 f = Columns 1 through 14 1 2 3 5 8 13 21 34 55 89 144 233 377 610 Columns 15 through 18 987 1597 2584 4181 f = Columns 1 through 14 1 2 3 5 8 13 21 34 55 89 144 233 377 610 Columns 15 through 19 987 1597 2584 4181 6765 f = Columns 1 through 14 1 2 3 5 8 13 21 34 55 89 144 233 377 610 Columns 15 through 20 987 1597 2584 4181 6765 10946 f = Columns 1 through 14 1 2 3 5 8 13 21 34 55 89 144 233 377 610 Columns 15 through 21 987 1597 2584 4181 6765 10946 17711 f = Columns 1 through 14 1 2 3 5 8 13 21 34 55 89 144 233 377 610 Columns 15 through 22 987 1597 2584 4181 6765 10946 17711 28657 f = Columns 1 through 14 1 2 3 5 8 13 21 34 55 89 144 233 377 610 Columns 15 through 23 987 1597 2584 4181 6765 10946 17711 28657 46368 f = Columns 1 through 14 1 2 3 5 8 13 21 34 55 89 144 233 377 610 Columns 15 through 24 987 1597 2584 4181 6765 10946 17711 28657 46368 75025 f = Columns 1 through 14 1 2 3 5 8 13 21 34 55 89 144 233 377 610 Columns 15 through 25 987 1597 2584 4181 6765 10946 17711 28657 46368 75025 121393 f = Columns 1 through 14 1 2 3 5 8 13 21 34 55 89 144 233 377 610 Columns 15 through 26 987 1597 2584 4181 6765 10946 17711 28657 46368 75025 121393 196418 f = Columns 1 through 14 1 2 3 5 8 13 21 34 55 89 144 233 377 610 Columns 15 through 27 987 1597 2584 4181 6765 10946 17711 28657 46368 75025 121393 196418 317811 f = Columns 1 through 14 1 2 3 5 8 13 21 34 55 89 144 233 377 610 Columns 15 through 28 987 1597 2584 4181 6765 10946 17711 28657 46368 75025 121393 196418 317811 514229 f = Columns 1 through 14 1 2 3 5 8 13 21 34 55 89 144 233 377 610 Columns 15 through 28 987 1597 2584 4181 6765 10946 17711 28657 46368 75025 121393 196418 317811 514229 Column 29 832040 f = Columns 1 through 14 1 2 3 5 8 13 21 34 55 89 144 233 377 610 Columns 15 through 28 987 1597 2584 4181 6765 10946 17711 28657 46368 75025 121393 196418 317811 514229 Columns 29 through 30 832040 1346269 f = Columns 1 through 14 1 2 3 5 8 13 21 34 55 89 144 233 377 610 Columns 15 through 28 987 1597 2584 4181 6765 10946 17711 28657 46368 75025 121393 196418 317811 514229 Columns 29 through 31 832040 1346269 2178309 f = Columns 1 through 14 1 2 3 5 8 13 21 34 55 89 144 233 377 610 Columns 15 through 28 987 1597 2584 4181 6765 10946 17711 28657 46368 75025 121393 196418 317811 514229 Columns 29 through 32 832040 1346269 2178309 3524578 f = Columns 1 through 14 1 2 3 5 8 13 21 34 55 89 144 233 377 610 Columns 15 through 28 987 1597 2584 4181 6765 10946 17711 28657 46368 75025 121393 196418 317811 514229 Columns 29 through 33 832040 1346269 2178309 3524578 5702887 f = Columns 1 through 14 1 2 3 5 8 13 21 34 55 89 144 233 377 610 Columns 15 through 28 987 1597 2584 4181 6765 10946 17711 28657 46368 75025 121393 196418 317811 514229 Columns 29 through 34 832040 1346269 2178309 3524578 5702887 9227465 f = Columns 1 through 14 1 2 3 5 8 13 21 34 55 89 144 233 377 610 Columns 15 through 28 987 1597 2584 4181 6765 10946 17711 28657 46368 75025 121393 196418 317811 514229 Columns 29 through 35 832040 1346269 2178309 3524578 5702887 9227465 14930352 f = Columns 1 through 14 1 2 3 5 8 13 21 34 55 89 144 233 377 610 Columns 15 through 28 987 1597 2584 4181 6765 10946 17711 28657 46368 75025 121393 196418 317811 514229 Columns 29 through 36 832040 1346269 2178309 3524578 5702887 9227465 14930352 24157817 f = Columns 1 through 14 1 2 3 5 8 13 21 34 55 89 144 233 377 610 Columns 15 through 28 987 1597 2584 4181 6765 10946 17711 28657 46368 75025 121393 196418 317811 514229 Columns 29 through 37 832040 1346269 2178309 3524578 5702887 9227465 14930352 24157817 39088169 f = Columns 1 through 14 1 2 3 5 8 13 21 34 55 89 144 233 377 610 Columns 15 through 28 987 1597 2584 4181 6765 10946 17711 28657 46368 75025 121393 196418 317811 514229 Columns 29 through 38 832040 1346269 2178309 3524578 5702887 9227465 14930352 24157817 39088169 63245986 f = Columns 1 through 14 1 ...

6   Pass
assert(isequal(isFibonacci(6765),true))

one = 0 two = 1 f = [] f = 1 f = 1 2 f = 1 2 3 f = 1 2 3 5 f = 1 2 3 5 8 f = 1 2 3 5 8 13 f = 1 2 3 5 8 13 21 f = 1 2 3 5 8 13 21 34 f = 1 2 3 5 8 13 21 34 55 f = 1 2 3 5 8 13 21 34 55 89 f = 1 2 3 5 8 13 21 34 55 89 144 f = 1 2 3 5 8 13 21 34 55 89 144 233 f = 1 2 3 5 8 13 21 34 55 89 144 233 377 f = 1 2 3 5 8 13 21 34 55 89 144 233 377 610 f = 1 2 3 5 8 13 21 34 55 89 144 233 377 610 987 f = Columns 1 through 14 1 2 3 5 8 13 21 34 55 89 144 233 377 610 Columns 15 through 16 987 1597 f = Columns 1 through 14 1 2 3 5 8 13 21 34 55 89 144 233 377 610 Columns 15 through 17 987 1597 2584 f = Columns 1 through 14 1 2 3 5 8 13 21 34 55 89 144 233 377 610 Columns 15 through 18 987 1597 2584 4181 f = Columns 1 through 14 1 2 3 5 8 13 21 34 55 89 144 233 377 610 Columns 15 through 19 987 1597 2584 4181 6765 f = Columns 1 through 14 1 2 3 5 8 13 21 34 55 89 144 233 377 610 Columns 15 through 20 987 1597 2584 4181 6765 10946 f = Columns 1 through 14 1 2 3 5 8 13 21 34 55 89 144 233 377 610 Columns 15 through 21 987 1597 2584 4181 6765 10946 17711 f = Columns 1 through 14 1 2 3 5 8 13 21 34 55 89 144 233 377 610 Columns 15 through 22 987 1597 2584 4181 6765 10946 17711 28657 f = Columns 1 through 14 1 2 3 5 8 13 21 34 55 89 144 233 377 610 Columns 15 through 23 987 1597 2584 4181 6765 10946 17711 28657 46368 f = Columns 1 through 14 1 2 3 5 8 13 21 34 55 89 144 233 377 610 Columns 15 through 24 987 1597 2584 4181 6765 10946 17711 28657 46368 75025 f = Columns 1 through 14 1 2 3 5 8 13 21 34 55 89 144 233 377 610 Columns 15 through 25 987 1597 2584 4181 6765 10946 17711 28657 46368 75025 121393 f = Columns 1 through 14 1 2 3 5 8 13 21 34 55 89 144 233 377 610 Columns 15 through 26 987 1597 2584 4181 6765 10946 17711 28657 46368 75025 121393 196418 f = Columns 1 through 14 1 2 3 5 8 13 21 34 55 89 144 233 377 610 Columns 15 through 27 987 1597 2584 4181 6765 10946 17711 28657 46368 75025 121393 196418 317811 f = Columns 1 through 14 1 2 3 5 8 13 21 34 55 89 144 233 377 610 Columns 15 through 28 987 1597 2584 4181 6765 10946 17711 28657 46368 75025 121393 196418 317811 514229 f = Columns 1 through 14 1 2 3 5 8 13 21 34 55 89 144 233 377 610 Columns 15 through 28 987 1597 2584 4181 6765 10946 17711 28657 46368 75025 121393 196418 317811 514229 Column 29 832040 f = Columns 1 through 14 1 2 3 5 8 13 21 34 55 89 144 233 377 610 Columns 15 through 28 987 1597 2584 4181 6765 10946 17711 28657 46368 75025 121393 196418 317811 514229 Columns 29 through 30 832040 1346269 f = Columns 1 through 14 1 2 3 5 8 13 21 34 55 89 144 233 377 610 Columns 15 through 28 987 1597 2584 4181 6765 10946 17711 28657 46368 75025 121393 196418 317811 514229 Columns 29 through 31 832040 1346269 2178309 f = Columns 1 through 14 1 2 3 5 8 13 21 34 55 89 144 233 377 610 Columns 15 through 28 987 1597 2584 4181 6765 10946 17711 28657 46368 75025 121393 196418 317811 514229 Columns 29 through 32 832040 1346269 2178309 3524578 f = Columns 1 through 14 1 2 3 5 8 13 21 34 55 89 144 233 377 610 Columns 15 through 28 987 1597 2584 4181 6765 10946 17711 28657 46368 75025 121393 196418 317811 514229 Columns 29 through 33 832040 1346269 2178309 3524578 5702887 f = Columns 1 through 14 1 2 3 5 8 13 21 34 55 89 144 233 377 610 Columns 15 through 28 987 1597 2584 4181 6765 10946 17711 28657 46368 75025 121393 196418 317811 514229 Columns 29 through 34 832040 1346269 2178309 3524578 5702887 9227465 f = Columns 1 through 14 1 2 3 5 8 13 21 34 55 89 144 233 377 610 Columns 15 through 28 987 1597 2584 4181 6765 10946 17711 28657 46368 75025 121393 196418 317811 514229 Columns 29 through 35 832040 1346269 2178309 3524578 5702887 9227465 14930352 f = Columns 1 through 14 1 2 3 5 8 13 21 34 55 89 144 233 377 610 Columns 15 through 28 987 1597 2584 4181 6765 10946 17711 28657 46368 75025 121393 196418 317811 514229 Columns 29 through 36 832040 1346269 2178309 3524578 5702887 9227465 14930352 24157817 f = Columns 1 through 14 1 2 3 5 8 13 21 34 55 89 144 233 377 610 Columns 15 through 28 987 1597 2584 4181 6765 10946 17711 28657 46368 75025 121393 196418 317811 514229 Columns 29 through 37 832040 1346269 2178309 3524578 5702887 9227465 14930352 24157817 39088169 f = Columns 1 through 14 1 2 3 5 8 13 21 34 55 89 144 233 377 610 Columns 15 through 28 987 1597 2584 4181 6765 10946 17711 28657 46368 75025 121393 196418 317811 514229 Columns 29 through 38 832040 1346269 2178309 3524578 5702887 9227465 14930352 24157817 39088169 63245986 f = Columns 1 through 14 1 ...

7   Pass
assert(isequal(isFibonacci(18),false))

one = 0 two = 1 f = [] f = 1 f = 1 2 f = 1 2 3 f = 1 2 3 5 f = 1 2 3 5 8 f = 1 2 3 5 8 13 f = 1 2 3 5 8 13 21 f = 1 2 3 5 8 13 21 34 f = 1 2 3 5 8 13 21 34 55 f = 1 2 3 5 8 13 21 34 55 89 f = 1 2 3 5 8 13 21 34 55 89 144 f = 1 2 3 5 8 13 21 34 55 89 144 233 f = 1 2 3 5 8 13 21 34 55 89 144 233 377 f = 1 2 3 5 8 13 21 34 55 89 144 233 377 610 f = 1 2 3 5 8 13 21 34 55 89 144 233 377 610 987 f = Columns 1 through 14 1 2 3 5 8 13 21 34 55 89 144 233 377 610 Columns 15 through 16 987 1597 f = Columns 1 through 14 1 2 3 5 8 13 21 34 55 89 144 233 377 610 Columns 15 through 17 987 1597 2584 f = Columns 1 through 14 1 2 3 5 8 13 21 34 55 89 144 233 377 610 Columns 15 through 18 987 1597 2584 4181 f = Columns 1 through 14 1 2 3 5 8 13 21 34 55 89 144 233 377 610 Columns 15 through 19 987 1597 2584 4181 6765 f = Columns 1 through 14 1 2 3 5 8 13 21 34 55 89 144 233 377 610 Columns 15 through 20 987 1597 2584 4181 6765 10946 f = Columns 1 through 14 1 2 3 5 8 13 21 34 55 89 144 233 377 610 Columns 15 through 21 987 1597 2584 4181 6765 10946 17711 f = Columns 1 through 14 1 2 3 5 8 13 21 34 55 89 144 233 377 610 Columns 15 through 22 987 1597 2584 4181 6765 10946 17711 28657 f = Columns 1 through 14 1 2 3 5 8 13 21 34 55 89 144 233 377 610 Columns 15 through 23 987 1597 2584 4181 6765 10946 17711 28657 46368 f = Columns 1 through 14 1 2 3 5 8 13 21 34 55 89 144 233 377 610 Columns 15 through 24 987 1597 2584 4181 6765 10946 17711 28657 46368 75025 f = Columns 1 through 14 1 2 3 5 8 13 21 34 55 89 144 233 377 610 Columns 15 through 25 987 1597 2584 4181 6765 10946 17711 28657 46368 75025 121393 f = Columns 1 through 14 1 2 3 5 8 13 21 34 55 89 144 233 377 610 Columns 15 through 26 987 1597 2584 4181 6765 10946 17711 28657 46368 75025 121393 196418 f = Columns 1 through 14 1 2 3 5 8 13 21 34 55 89 144 233 377 610 Columns 15 through 27 987 1597 2584 4181 6765 10946 17711 28657 46368 75025 121393 196418 317811 f = Columns 1 through 14 1 2 3 5 8 13 21 34 55 89 144 233 377 610 Columns 15 through 28 987 1597 2584 4181 6765 10946 17711 28657 46368 75025 121393 196418 317811 514229 f = Columns 1 through 14 1 2 3 5 8 13 21 34 55 89 144 233 377 610 Columns 15 through 28 987 1597 2584 4181 6765 10946 17711 28657 46368 75025 121393 196418 317811 514229 Column 29 832040 f = Columns 1 through 14 1 2 3 5 8 13 21 34 55 89 144 233 377 610 Columns 15 through 28 987 1597 2584 4181 6765 10946 17711 28657 46368 75025 121393 196418 317811 514229 Columns 29 through 30 832040 1346269 f = Columns 1 through 14 1 2 3 5 8 13 21 34 55 89 144 233 377 610 Columns 15 through 28 987 1597 2584 4181 6765 10946 17711 28657 46368 75025 121393 196418 317811 514229 Columns 29 through 31 832040 1346269 2178309 f = Columns 1 through 14 1 2 3 5 8 13 21 34 55 89 144 233 377 610 Columns 15 through 28 987 1597 2584 4181 6765 10946 17711 28657 46368 75025 121393 196418 317811 514229 Columns 29 through 32 832040 1346269 2178309 3524578 f = Columns 1 through 14 1 2 3 5 8 13 21 34 55 89 144 233 377 610 Columns 15 through 28 987 1597 2584 4181 6765 10946 17711 28657 46368 75025 121393 196418 317811 514229 Columns 29 through 33 832040 1346269 2178309 3524578 5702887 f = Columns 1 through 14 1 2 3 5 8 13 21 34 55 89 144 233 377 610 Columns 15 through 28 987 1597 2584 4181 6765 10946 17711 28657 46368 75025 121393 196418 317811 514229 Columns 29 through 34 832040 1346269 2178309 3524578 5702887 9227465 f = Columns 1 through 14 1 2 3 5 8 13 21 34 55 89 144 233 377 610 Columns 15 through 28 987 1597 2584 4181 6765 10946 17711 28657 46368 75025 121393 196418 317811 514229 Columns 29 through 35 832040 1346269 2178309 3524578 5702887 9227465 14930352 f = Columns 1 through 14 1 2 3 5 8 13 21 34 55 89 144 233 377 610 Columns 15 through 28 987 1597 2584 4181 6765 10946 17711 28657 46368 75025 121393 196418 317811 514229 Columns 29 through 36 832040 1346269 2178309 3524578 5702887 9227465 14930352 24157817 f = Columns 1 through 14 1 2 3 5 8 13 21 34 55 89 144 233 377 610 Columns 15 through 28 987 1597 2584 4181 6765 10946 17711 28657 46368 75025 121393 196418 317811 514229 Columns 29 through 37 832040 1346269 2178309 3524578 5702887 9227465 14930352 24157817 39088169 f = Columns 1 through 14 1 2 3 5 8 13 21 34 55 89 144 233 377 610 Columns 15 through 28 987 1597 2584 4181 6765 10946 17711 28657 46368 75025 121393 196418 317811 514229 Columns 29 through 38 832040 1346269 2178309 3524578 5702887 9227465 14930352 24157817 39088169 63245986 f = Columns 1 through 14 1 ...

8   Pass
assert(isequal(isFibonacci(100),false))

one = 0 two = 1 f = [] f = 1 f = 1 2 f = 1 2 3 f = 1 2 3 5 f = 1 2 3 5 8 f = 1 2 3 5 8 13 f = 1 2 3 5 8 13 21 f = 1 2 3 5 8 13 21 34 f = 1 2 3 5 8 13 21 34 55 f = 1 2 3 5 8 13 21 34 55 89 f = 1 2 3 5 8 13 21 34 55 89 144 f = 1 2 3 5 8 13 21 34 55 89 144 233 f = 1 2 3 5 8 13 21 34 55 89 144 233 377 f = 1 2 3 5 8 13 21 34 55 89 144 233 377 610 f = 1 2 3 5 8 13 21 34 55 89 144 233 377 610 987 f = Columns 1 through 14 1 2 3 5 8 13 21 34 55 89 144 233 377 610 Columns 15 through 16 987 1597 f = Columns 1 through 14 1 2 3 5 8 13 21 34 55 89 144 233 377 610 Columns 15 through 17 987 1597 2584 f = Columns 1 through 14 1 2 3 5 8 13 21 34 55 89 144 233 377 610 Columns 15 through 18 987 1597 2584 4181 f = Columns 1 through 14 1 2 3 5 8 13 21 34 55 89 144 233 377 610 Columns 15 through 19 987 1597 2584 4181 6765 f = Columns 1 through 14 1 2 3 5 8 13 21 34 55 89 144 233 377 610 Columns 15 through 20 987 1597 2584 4181 6765 10946 f = Columns 1 through 14 1 2 3 5 8 13 21 34 55 89 144 233 377 610 Columns 15 through 21 987 1597 2584 4181 6765 10946 17711 f = Columns 1 through 14 1 2 3 5 8 13 21 34 55 89 144 233 377 610 Columns 15 through 22 987 1597 2584 4181 6765 10946 17711 28657 f = Columns 1 through 14 1 2 3 5 8 13 21 34 55 89 144 233 377 610 Columns 15 through 23 987 1597 2584 4181 6765 10946 17711 28657 46368 f = Columns 1 through 14 1 2 3 5 8 13 21 34 55 89 144 233 377 610 Columns 15 through 24 987 1597 2584 4181 6765 10946 17711 28657 46368 75025 f = Columns 1 through 14 1 2 3 5 8 13 21 34 55 89 144 233 377 610 Columns 15 through 25 987 1597 2584 4181 6765 10946 17711 28657 46368 75025 121393 f = Columns 1 through 14 1 2 3 5 8 13 21 34 55 89 144 233 377 610 Columns 15 through 26 987 1597 2584 4181 6765 10946 17711 28657 46368 75025 121393 196418 f = Columns 1 through 14 1 2 3 5 8 13 21 34 55 89 144 233 377 610 Columns 15 through 27 987 1597 2584 4181 6765 10946 17711 28657 46368 75025 121393 196418 317811 f = Columns 1 through 14 1 2 3 5 8 13 21 34 55 89 144 233 377 610 Columns 15 through 28 987 1597 2584 4181 6765 10946 17711 28657 46368 75025 121393 196418 317811 514229 f = Columns 1 through 14 1 2 3 5 8 13 21 34 55 89 144 233 377 610 Columns 15 through 28 987 1597 2584 4181 6765 10946 17711 28657 46368 75025 121393 196418 317811 514229 Column 29 832040 f = Columns 1 through 14 1 2 3 5 8 13 21 34 55 89 144 233 377 610 Columns 15 through 28 987 1597 2584 4181 6765 10946 17711 28657 46368 75025 121393 196418 317811 514229 Columns 29 through 30 832040 1346269 f = Columns 1 through 14 1 2 3 5 8 13 21 34 55 89 144 233 377 610 Columns 15 through 28 987 1597 2584 4181 6765 10946 17711 28657 46368 75025 121393 196418 317811 514229 Columns 29 through 31 832040 1346269 2178309 f = Columns 1 through 14 1 2 3 5 8 13 21 34 55 89 144 233 377 610 Columns 15 through 28 987 1597 2584 4181 6765 10946 17711 28657 46368 75025 121393 196418 317811 514229 Columns 29 through 32 832040 1346269 2178309 3524578 f = Columns 1 through 14 1 2 3 5 8 13 21 34 55 89 144 233 377 610 Columns 15 through 28 987 1597 2584 4181 6765 10946 17711 28657 46368 75025 121393 196418 317811 514229 Columns 29 through 33 832040 1346269 2178309 3524578 5702887 f = Columns 1 through 14 1 2 3 5 8 13 21 34 55 89 144 233 377 610 Columns 15 through 28 987 1597 2584 4181 6765 10946 17711 28657 46368 75025 121393 196418 317811 514229 Columns 29 through 34 832040 1346269 2178309 3524578 5702887 9227465 f = Columns 1 through 14 1 2 3 5 8 13 21 34 55 89 144 233 377 610 Columns 15 through 28 987 1597 2584 4181 6765 10946 17711 28657 46368 75025 121393 196418 317811 514229 Columns 29 through 35 832040 1346269 2178309 3524578 5702887 9227465 14930352 f = Columns 1 through 14 1 2 3 5 8 13 21 34 55 89 144 233 377 610 Columns 15 through 28 987 1597 2584 4181 6765 10946 17711 28657 46368 75025 121393 196418 317811 514229 Columns 29 through 36 832040 1346269 2178309 3524578 5702887 9227465 14930352 24157817 f = Columns 1 through 14 1 2 3 5 8 13 21 34 55 89 144 233 377 610 Columns 15 through 28 987 1597 2584 4181 6765 10946 17711 28657 46368 75025 121393 196418 317811 514229 Columns 29 through 37 832040 1346269 2178309 3524578 5702887 9227465 14930352 24157817 39088169 f = Columns 1 through 14 1 2 3 5 8 13 21 34 55 89 144 233 377 610 Columns 15 through 28 987 1597 2584 4181 6765 10946 17711 28657 46368 75025 121393 196418 317811 514229 Columns 29 through 38 832040 1346269 2178309 3524578 5702887 9227465 14930352 24157817 39088169 63245986 f = Columns 1 through 14 1 ...

9   Pass
assert(isequal(isFibonacci(230),false))

one = 0 two = 1 f = [] f = 1 f = 1 2 f = 1 2 3 f = 1 2 3 5 f = 1 2 3 5 8 f = 1 2 3 5 8 13 f = 1 2 3 5 8 13 21 f = 1 2 3 5 8 13 21 34 f = 1 2 3 5 8 13 21 34 55 f = 1 2 3 5 8 13 21 34 55 89 f = 1 2 3 5 8 13 21 34 55 89 144 f = 1 2 3 5 8 13 21 34 55 89 144 233 f = 1 2 3 5 8 13 21 34 55 89 144 233 377 f = 1 2 3 5 8 13 21 34 55 89 144 233 377 610 f = 1 2 3 5 8 13 21 34 55 89 144 233 377 610 987 f = Columns 1 through 14 1 2 3 5 8 13 21 34 55 89 144 233 377 610 Columns 15 through 16 987 1597 f = Columns 1 through 14 1 2 3 5 8 13 21 34 55 89 144 233 377 610 Columns 15 through 17 987 1597 2584 f = Columns 1 through 14 1 2 3 5 8 13 21 34 55 89 144 233 377 610 Columns 15 through 18 987 1597 2584 4181 f = Columns 1 through 14 1 2 3 5 8 13 21 34 55 89 144 233 377 610 Columns 15 through 19 987 1597 2584 4181 6765 f = Columns 1 through 14 1 2 3 5 8 13 21 34 55 89 144 233 377 610 Columns 15 through 20 987 1597 2584 4181 6765 10946 f = Columns 1 through 14 1 2 3 5 8 13 21 34 55 89 144 233 377 610 Columns 15 through 21 987 1597 2584 4181 6765 10946 17711 f = Columns 1 through 14 1 2 3 5 8 13 21 34 55 89 144 233 377 610 Columns 15 through 22 987 1597 2584 4181 6765 10946 17711 28657 f = Columns 1 through 14 1 2 3 5 8 13 21 34 55 89 144 233 377 610 Columns 15 through 23 987 1597 2584 4181 6765 10946 17711 28657 46368 f = Columns 1 through 14 1 2 3 5 8 13 21 34 55 89 144 233 377 610 Columns 15 through 24 987 1597 2584 4181 6765 10946 17711 28657 46368 75025 f = Columns 1 through 14 1 2 3 5 8 13 21 34 55 89 144 233 377 610 Columns 15 through 25 987 1597 2584 4181 6765 10946 17711 28657 46368 75025 121393 f = Columns 1 through 14 1 2 3 5 8 13 21 34 55 89 144 233 377 610 Columns 15 through 26 987 1597 2584 4181 6765 10946 17711 28657 46368 75025 121393 196418 f = Columns 1 through 14 1 2 3 5 8 13 21 34 55 89 144 233 377 610 Columns 15 through 27 987 1597 2584 4181 6765 10946 17711 28657 46368 75025 121393 196418 317811 f = Columns 1 through 14 1 2 3 5 8 13 21 34 55 89 144 233 377 610 Columns 15 through 28 987 1597 2584 4181 6765 10946 17711 28657 46368 75025 121393 196418 317811 514229 f = Columns 1 through 14 1 2 3 5 8 13 21 34 55 89 144 233 377 610 Columns 15 through 28 987 1597 2584 4181 6765 10946 17711 28657 46368 75025 121393 196418 317811 514229 Column 29 832040 f = Columns 1 through 14 1 2 3 5 8 13 21 34 55 89 144 233 377 610 Columns 15 through 28 987 1597 2584 4181 6765 10946 17711 28657 46368 75025 121393 196418 317811 514229 Columns 29 through 30 832040 1346269 f = Columns 1 through 14 1 2 3 5 8 13 21 34 55 89 144 233 377 610 Columns 15 through 28 987 1597 2584 4181 6765 10946 17711 28657 46368 75025 121393 196418 317811 514229 Columns 29 through 31 832040 1346269 2178309 f = Columns 1 through 14 1 2 3 5 8 13 21 34 55 89 144 233 377 610 Columns 15 through 28 987 1597 2584 4181 6765 10946 17711 28657 46368 75025 121393 196418 317811 514229 Columns 29 through 32 832040 1346269 2178309 3524578 f = Columns 1 through 14 1 2 3 5 8 13 21 34 55 89 144 233 377 610 Columns 15 through 28 987 1597 2584 4181 6765 10946 17711 28657 46368 75025 121393 196418 317811 514229 Columns 29 through 33 832040 1346269 2178309 3524578 5702887 f = Columns 1 through 14 1 2 3 5 8 13 21 34 55 89 144 233 377 610 Columns 15 through 28 987 1597 2584 4181 6765 10946 17711 28657 46368 75025 121393 196418 317811 514229 Columns 29 through 34 832040 1346269 2178309 3524578 5702887 9227465 f = Columns 1 through 14 1 2 3 5 8 13 21 34 55 89 144 233 377 610 Columns 15 through 28 987 1597 2584 4181 6765 10946 17711 28657 46368 75025 121393 196418 317811 514229 Columns 29 through 35 832040 1346269 2178309 3524578 5702887 9227465 14930352 f = Columns 1 through 14 1 2 3 5 8 13 21 34 55 89 144 233 377 610 Columns 15 through 28 987 1597 2584 4181 6765 10946 17711 28657 46368 75025 121393 196418 317811 514229 Columns 29 through 36 832040 1346269 2178309 3524578 5702887 9227465 14930352 24157817 f = Columns 1 through 14 1 2 3 5 8 13 21 34 55 89 144 233 377 610 Columns 15 through 28 987 1597 2584 4181 6765 10946 17711 28657 46368 75025 121393 196418 317811 514229 Columns 29 through 37 832040 1346269 2178309 3524578 5702887 9227465 14930352 24157817 39088169 f = Columns 1 through 14 1 2 3 5 8 13 21 34 55 89 144 233 377 610 Columns 15 through 28 987 1597 2584 4181 6765 10946 17711 28657 46368 75025 121393 196418 317811 514229 Columns 29 through 38 832040 1346269 2178309 3524578 5702887 9227465 14930352 24157817 39088169 63245986 f = Columns 1 through 14 1 ...

10   Pass
assert(isequal(isFibonacci(514227),false))

one = 0 two = 1 f = [] f = 1 f = 1 2 f = 1 2 3 f = 1 2 3 5 f = 1 2 3 5 8 f = 1 2 3 5 8 13 f = 1 2 3 5 8 13 21 f = 1 2 3 5 8 13 21 34 f = 1 2 3 5 8 13 21 34 55 f = 1 2 3 5 8 13 21 34 55 89 f = 1 2 3 5 8 13 21 34 55 89 144 f = 1 2 3 5 8 13 21 34 55 89 144 233 f = 1 2 3 5 8 13 21 34 55 89 144 233 377 f = 1 2 3 5 8 13 21 34 55 89 144 233 377 610 f = 1 2 3 5 8 13 21 34 55 89 144 233 377 610 987 f = Columns 1 through 14 1 2 3 5 8 13 21 34 55 89 144 233 377 610 Columns 15 through 16 987 1597 f = Columns 1 through 14 1 2 3 5 8 13 21 34 55 89 144 233 377 610 Columns 15 through 17 987 1597 2584 f = Columns 1 through 14 1 2 3 5 8 13 21 34 55 89 144 233 377 610 Columns 15 through 18 987 1597 2584 4181 f = Columns 1 through 14 1 2 3 5 8 13 21 34 55 89 144 233 377 610 Columns 15 through 19 987 1597 2584 4181 6765 f = Columns 1 through 14 1 2 3 5 8 13 21 34 55 89 144 233 377 610 Columns 15 through 20 987 1597 2584 4181 6765 10946 f = Columns 1 through 14 1 2 3 5 8 13 21 34 55 89 144 233 377 610 Columns 15 through 21 987 1597 2584 4181 6765 10946 17711 f = Columns 1 through 14 1 2 3 5 8 13 21 34 55 89 144 233 377 610 Columns 15 through 22 987 1597 2584 4181 6765 10946 17711 28657 f = Columns 1 through 14 1 2 3 5 8 13 21 34 55 89 144 233 377 610 Columns 15 through 23 987 1597 2584 4181 6765 10946 17711 28657 46368 f = Columns 1 through 14 1 2 3 5 8 13 21 34 55 89 144 233 377 610 Columns 15 through 24 987 1597 2584 4181 6765 10946 17711 28657 46368 75025 f = Columns 1 through 14 1 2 3 5 8 13 21 34 55 89 144 233 377 610 Columns 15 through 25 987 1597 2584 4181 6765 10946 17711 28657 46368 75025 121393 f = Columns 1 through 14 1 2 3 5 8 13 21 34 55 89 144 233 377 610 Columns 15 through 26 987 1597 2584 4181 6765 10946 17711 28657 46368 75025 121393 196418 f = Columns 1 through 14 1 2 3 5 8 13 21 34 55 89 144 233 377 610 Columns 15 through 27 987 1597 2584 4181 6765 10946 17711 28657 46368 75025 121393 196418 317811 f = Columns 1 through 14 1 2 3 5 8 13 21 34 55 89 144 233 377 610 Columns 15 through 28 987 1597 2584 4181 6765 10946 17711 28657 46368 75025 121393 196418 317811 514229 f = Columns 1 through 14 1 2 3 5 8 13 21 34 55 89 144 233 377 610 Columns 15 through 28 987 1597 2584 4181 6765 10946 17711 28657 46368 75025 121393 196418 317811 514229 Column 29 832040 f = Columns 1 through 14 1 2 3 5 8 13 21 34 55 89 144 233 377 610 Columns 15 through 28 987 1597 2584 4181 6765 10946 17711 28657 46368 75025 121393 196418 317811 514229 Columns 29 through 30 832040 1346269 f = Columns 1 through 14 1 2 3 5 8 13 21 34 55 89 144 233 377 610 Columns 15 through 28 987 1597 2584 4181 6765 10946 17711 28657 46368 75025 121393 196418 317811 514229 Columns 29 through 31 832040 1346269 2178309 f = Columns 1 through 14 1 2 3 5 8 13 21 34 55 89 144 233 377 610 Columns 15 through 28 987 1597 2584 4181 6765 10946 17711 28657 46368 75025 121393 196418 317811 514229 Columns 29 through 32 832040 1346269 2178309 3524578 f = Columns 1 through 14 1 2 3 5 8 13 21 34 55 89 144 233 377 610 Columns 15 through 28 987 1597 2584 4181 6765 10946 17711 28657 46368 75025 121393 196418 317811 514229 Columns 29 through 33 832040 1346269 2178309 3524578 5702887 f = Columns 1 through 14 1 2 3 5 8 13 21 34 55 89 144 233 377 610 Columns 15 through 28 987 1597 2584 4181 6765 10946 17711 28657 46368 75025 121393 196418 317811 514229 Columns 29 through 34 832040 1346269 2178309 3524578 5702887 9227465 f = Columns 1 through 14 1 2 3 5 8 13 21 34 55 89 144 233 377 610 Columns 15 through 28 987 1597 2584 4181 6765 10946 17711 28657 46368 75025 121393 196418 317811 514229 Columns 29 through 35 832040 1346269 2178309 3524578 5702887 9227465 14930352 f = Columns 1 through 14 1 2 3 5 8 13 21 34 55 89 144 233 377 610 Columns 15 through 28 987 1597 2584 4181 6765 10946 17711 28657 46368 75025 121393 196418 317811 514229 Columns 29 through 36 832040 1346269 2178309 3524578 5702887 9227465 14930352 24157817 f = Columns 1 through 14 1 2 3 5 8 13 21 34 55 89 144 233 377 610 Columns 15 through 28 987 1597 2584 4181 6765 10946 17711 28657 46368 75025 121393 196418 317811 514229 Columns 29 through 37 832040 1346269 2178309 3524578 5702887 9227465 14930352 24157817 39088169 f = Columns 1 through 14 1 2 3 5 8 13 21 34 55 89 144 233 377 610 Columns 15 through 28 987 1597 2584 4181 6765 10946 17711 28657 46368 75025 121393 196418 317811 514229 Columns 29 through 38 832040 1346269 2178309 3524578 5702887 9227465 14930352 24157817 39088169 63245986 f = Columns 1 through 14 1 ...

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!