Cody

Solution 2371063

Submitted on 25 May 2020 by ChrisR
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 = 3; y_correct = 2; assert(isequal(pell_seq(n),y_correct))

2   Pass
n = 6; y_correct = 29; assert(isequal(pell_seq(n),y_correct))

3   Pass
n = 9; y_correct = 408; assert(isequal(pell_seq(n),y_correct))

4   Pass
n = 12; y_correct = 5741; assert(isequal(pell_seq(n),y_correct))

5   Pass
n = 15; y_correct = 80782; assert(isequal(pell_seq(n),y_correct))

6   Pass
n = 19; y_correct = 2744210; assert(isequal(pell_seq(n),y_correct))

7   Pass
n = 23; y_correct = 93222358; assert(isequal(pell_seq(n),y_correct))

Suggested Problems

More from this Author148