Cody

Problem 2577. Sum of series III

Solution 3806853

Submitted on 23 Nov 2020 by Daniele Certini
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 = 1; s_correct = 1; assert(isequal(sumOfSeriesIII(n),s_correct))

x = 0 s = 1 x = 1 x = 1

2   Pass
n = 2; s_correct = 28; assert(isequal(sumOfSeriesIII(n),s_correct))

x = 0 0 s = 1 x = 1 0 s = 28 x = 1 28 x = 1 28

3   Pass
n = 5; s_correct = 1225; assert(isequal(sumOfSeriesIII(n),s_correct))

x = 0 0 0 0 0 s = 1 x = 1 0 0 0 0 s = 28 x = 1 28 0 0 0 s = 153 x = 1 28 153 0 0 s = 496 x = 1 28 153 496 0 s = 1225 x = 1 28 153 496 1225 x = 1 28 153 496 1225

4   Pass
n = 10; s_correct = 19900; assert(isequal(sumOfSeriesIII(n),s_correct))

x = 0 0 0 0 0 0 0 0 0 0 s = 1 x = 1 0 0 0 0 0 0 0 0 0 s = 28 x = 1 28 0 0 0 0 0 0 0 0 s = 153 x = 1 28 153 0 0 0 0 0 0 0 s = 496 x = 1 28 153 496 0 0 0 0 0 0 s = 1225 x = 1 28 153 496 1225 0 0 0 0 0 s = 2556 x = 1 28 153 496 1225 2556 0 0 0 0 s = 4753 x = 1 28 153 496 1225 2556 4753 0 0 0 s = 8128 x = 1 28 153 496 1225 2556 4753 8128 0 0 s = 13041 x = 1 28 153 496 1225 2556 4753 8128 13041 0 s = 19900 x = 1 28 153 496 1225 2556 4753 8128 13041 19900 x = 1 28 153 496 1225 2556 4753 8128 13041 19900

5   Pass
n = 42; s_correct = 6221628; assert(isequal(sumOfSeriesIII(n),s_correct))

x = Columns 1 through 30 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Columns 31 through 42 0 0 0 0 0 0 0 0 0 0 0 0 s = 1 x = Columns 1 through 30 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Columns 31 through 42 0 0 0 0 0 0 0 0 0 0 0 0 s = 28 x = Columns 1 through 30 1 28 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Columns 31 through 42 0 0 0 0 0 0 0 0 0 0 0 0 s = 153 x = Columns 1 through 30 1 28 153 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Columns 31 through 42 0 0 0 0 0 0 0 0 0 0 0 0 s = 496 x = Columns 1 through 30 1 28 153 496 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Columns 31 through 42 0 0 0 0 0 0 0 0 0 0 0 0 s = 1225 x = Columns 1 through 15 1 28 153 496 1225 0 0 0 0 0 0 0 0 0 0 Columns 16 through 30 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Columns 31 through 42 0 0 0 0 0 0 0 0 0 0 0 0 s = 2556 x = Columns 1 through 15 1 28 153 496 1225 2556 0 0 0 0 0 0 0 0 0 Columns 16 through 30 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Columns 31 through 42 0 0 0 0 0 0 0 0 0 0 0 0 s = 4753 x = Columns 1 through 15 1 28 153 496 1225 2556 4753 0 0 0 0 0 0 0 0 Columns 16 through 30 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Columns 31 through 42 0 0 0 0 0 0 0 0 0 0 0 0 s = 8128 x = Columns 1 through 15 1 28 153 496 1225 2556 4753 8128 0 0 0 0 0 0 0 Columns 16 through 30 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Columns 31 through 42 0 0 0 0 0 0 0 0 0 0 0 0 s = 13041 x = Columns 1 through 15 1 28 153 496 1225 2556 4753 8128 13041 0 0 0 0 0 0 Columns 16 through 30 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Columns 31 through 42 0 0 0 0 0 0 0 0 0 0 0 0 s = 19900 x = Columns 1 through 15 1 28 153 496 1225 2556 4753 8128 13041 19900 0 0 0 0 0 Columns 16 through 30 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Columns 31 through 42 0 0 0 0 0 0 0 0 0 0 0 0 s = 29161 x = Columns 1 through 15 1 28 153 496 1225 2556 4753 8128 13041 19900 29161 0 0 0 0 Columns 16 through 30 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Columns 31 through 42 0 0 0 0 0 0 0 0 0 0 0 0 s = 41328 x = Columns 1 through 15 1 28 153 496 1225 2556 4753 8128 13041 19900 29161 41328 0 0 0 Columns 16 through 30 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Columns 31 through 42 0 0 0 0 0 0 0 0 0 0 0 0 s = 56953 x = Columns 1 through 15 1 28 153 496 1225 2556 4753 8128 13041 19900 29161 41328 56953 0 0 Columns 16 through 30 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Columns 31 through 42 0 0 0 0 0 0 0 0 0 0 0 0 s = 76636 x = Columns 1 through 15 1 28 153 496 1225 2556 4753 8128 13041 19900 29161 41328 56953 76636 0 Columns 16 through 30 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Columns 31 through 42 0 0 0 0 0 0 0 0 0 0 0 0 s = 101025 x = Columns 1 through 15 1 28 153 496 1225 2556 4753 8128 13041 19900 29161 41328 56953 76636 101025 Columns 16 through 30 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Columns 31 through 42 0 0 0 0 0 0 0 0 0 0 0 0 s = 130816 x = Columns 1 through 15 1 28 153 496 1225 2556 4753 8128 13041 19900 29161 41328 56953 76636 101025 Columns 16 through 30 130816 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Columns 31 through 42 0 0 0 0 0 0 0 0 0 0 0 0 s = 166753 x = Columns 1 through 15 1 28 153 496 1225 2556 4753 8128 13041 19900 29161 41328 56953 76636 101025 Columns 16 through 30 130816 166753 0 0 0 0 0 0 0 0 0 0 0 0 0 Columns 31 through 42 0 0 0 0 0 0 0 0 0 0 0 0 s = 209628 x = Columns 1 through 15 1 28 153 496 1225 2556 4753 8128 13041 19900 29161 41328 56953 76636 101025 Columns 16 through 30 130816 166753 209628 0 0 0 0 0 0 0 0 0 0 0 0 Columns 31 through ...

6   Pass
n = 99; s_correct = 192109401; assert(isequal(sumOfSeriesIII(n),s_correct))

x = Columns 1 through 30 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Columns 31 through 60 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Columns 61 through 90 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Columns 91 through 99 0 0 0 0 0 0 0 0 0 s = 1 x = Columns 1 through 30 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Columns 31 through 60 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Columns 61 through 90 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Columns 91 through 99 0 0 0 0 0 0 0 0 0 s = 28 x = Columns 1 through 30 1 28 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Columns 31 through 60 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Columns 61 through 90 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Columns 91 through 99 0 0 0 0 0 0 0 0 0 s = 153 x = Columns 1 through 30 1 28 153 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Columns 31 through 60 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Columns 61 through 90 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Columns 91 through 99 0 0 0 0 0 0 0 0 0 s = 496 x = Columns 1 through 30 1 28 153 496 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Columns 31 through 60 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Columns 61 through 90 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Columns 91 through 99 0 0 0 0 0 0 0 0 0 s = 1225 x = Columns 1 through 15 1 28 153 496 1225 0 0 0 0 0 0 0 0 0 0 Columns 16 through 30 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Columns 31 through 45 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Columns 46 through 60 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Columns 61 through 75 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Columns 76 through 90 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Columns 91 through 99 0 0 0 0 0 0 0 0 0 s = 2556 x = Columns 1 through 15 1 28 153 496 1225 2556 0 0 0 0 0 0 0 0 0 Columns 16 through 30 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Columns 31 through 45 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Columns 46 through 60 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Columns 61 through 75 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Columns 76 through 90 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Columns 91 through 99 0 0 0 0 0 0 0 0 0 s = 4753 x = Columns 1 through 15 1 28 153 496 1225 2556 4753 0 0 0 0 0 0 0 0 Columns 16 through 30 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Columns 31 through 45 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Columns 46 through 60 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Columns 61 through 75 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Columns 76 through 90 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Columns 91 through 99 0 0 0 0 0 0 0 0 0 s = 8128 x = Columns 1 through 15 1 28 153 496 1225 2556 4753 8128 0 0 0 0 0 0 0 Columns 16 through 30 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Columns 31 through 45 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Columns 46 through 60 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Columns 61 through 75 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Columns 76 through 90 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Columns 91 through 99 0 0 0 0 0 0 0 0 0 s = 13041 x = Columns 1 through 15 1 28 153 496 1225 2556 4753 8128 13041 0 0 0 0 0 0 Columns 16 through 30 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Columns 31 through 45 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Columns 46 through 60 0 0 0 0 0 0 0 0 0 0 ...

7   Pass
n = 124; s_correct = 472827376; assert(isequal(sumOfSeriesIII(n),s_correct))

x = Columns 1 through 30 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Columns 31 through 60 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Columns 61 through 90 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Columns 91 through 120 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Columns 121 through 124 0 0 0 0 s = 1 x = Columns 1 through 30 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Columns 31 through 60 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Columns 61 through 90 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Columns 91 through 120 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Columns 121 through 124 0 0 0 0 s = 28 x = Columns 1 through 30 1 28 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Columns 31 through 60 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Columns 61 through 90 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Columns 91 through 120 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Columns 121 through 124 0 0 0 0 s = 153 x = Columns 1 through 30 1 28 153 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Columns 31 through 60 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Columns 61 through 90 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Columns 91 through 120 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Columns 121 through 124 0 0 0 0 s = 496 x = Columns 1 through 30 1 28 153 496 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Columns 31 through 60 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Columns 61 through 90 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Columns 91 through 120 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Columns 121 through 124 0 0 0 0 s = 1225 x = Columns 1 through 15 1 28 153 496 1225 0 0 0 0 0 0 0 0 0 0 Columns 16 through 30 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Columns 31 through 45 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Columns 46 through 60 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Columns 61 through 75 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Columns 76 through 90 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Columns 91 through 105 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Columns 106 through 120 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Columns 121 through 124 0 0 0 0 s = 2556 x = Columns 1 through 15 1 28 153 496 1225 2556 0 0 0 0 0 0 0 0 0 Columns 16 through 30 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Columns 31 through 45 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Columns 46 through 60 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Columns 61 through 75 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Columns 76 through 90 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Columns 91 through 105 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Columns 106 through 120 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Columns 121 through 124 0 0 0 0 s = 4753 x = Columns 1 through 15 1 28 153 496 1225 2556 4753 0 0 0 0 0 0 0 0 Columns 16 through 30 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Columns 31 through 45 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Columns 46 through 60 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Columns 61 through 75 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Columns 76 through 90 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Columns 91 through 105 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Columns 106 through 120 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Columns 121 through 124 0 0 0 0 s = 8128 x = Columns 1 through 15 1 28 153 496 1225 2556 4753 8128 0 0 0 0 0 0 ...

8   Pass
n = 222; s_correct = 4857776028; assert(isequal(sumOfSeriesIII(n),s_correct))

x = Columns 1 through 30 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Columns 31 through 60 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Columns 61 through 90 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Columns 91 through 120 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Columns 121 through 150 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Columns 151 through 180 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Columns 181 through 210 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Columns 211 through 222 0 0 0 0 0 0 0 0 0 0 0 0 s = 1 x = Columns 1 through 30 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Columns 31 through 60 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Columns 61 through 90 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Columns 91 through 120 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Columns 121 through 150 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Columns 151 through 180 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Columns 181 through 210 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Columns 211 through 222 0 0 0 0 0 0 0 0 0 0 0 0 s = 28 x = Columns 1 through 30 1 28 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Columns 31 through 60 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Columns 61 through 90 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Columns 91 through 120 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Columns 121 through 150 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Columns 151 through 180 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Columns 181 through 210 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Columns 211 through 222 0 0 0 0 0 0 0 0 0 0 0 0 s = 153 x = Columns 1 through 30 1 28 153 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Columns 31 through 60 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Columns 61 through 90 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Columns 91 through 120 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Columns 121 through 150 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Columns 151 through 180 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Columns 181 through 210 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Columns 211 through 222 0 0 0 0 0 0 0 0 0 0 0 0 s = 496 x = Columns 1 through 30 1 28 153 496 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Columns 31 through 60 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Columns 61 through 90 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Columns 91 through 120 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Columns 121 through 150 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Columns 151 through 180 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Columns 181 through 210 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Columns 211 through 222 0 0 0 0 0 0 0 0 0 0 0 0 s = 1225 x = Columns 1 through 15 1 28 153 496 1225 0 0 0 0 0 0 0 0 0 0 Columns 16 through 30 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Columns 31 through 45 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Columns 46 through 60 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Columns 61 through 75 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Columns 76 through 90 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Columns 91 through 105 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Columns 106 through 120 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Columns 121 through 135 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Columns 136 through 150 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Columns 151 through 165 ...

Suggested Problems

More from this Author9

Community Treasure Hunt

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

Start Hunting!