Cody

Problem 2359. Integer Sequence - 1

Solution 678615

Submitted on 1 Jun 2015 by Riazul Arefin
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
%% x = 7; y_correct = 354; assert(isequal(your_fcn_name(x),y_correct))

y = 354

2   Pass
%% x = 12; y_correct = 1739; assert(isequal(your_fcn_name(x),y_correct))

y = 1739 y = 1739

3   Pass
%% x = 21; y_correct = 9272; assert(isequal(your_fcn_name(x),y_correct))

y = 9272 y = 9272

4   Pass
%% x = 35; y_correct = 42886; assert(isequal(your_fcn_name(x),y_correct))

y = 42886 y = 42886

Suggested Problems

More from this Author44

Community Treasure Hunt

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

Start Hunting!