Cody

# Problem 2579. Sum of series V

Solution 1940715

Submitted on 18 Sep 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 = 1; s_correct = 2; assert(isequal(sumOfSeriesV(n),s_correct))

s = 0 a = 3 s = 3

Assertion failed.

2   Fail
n = 3; s_correct = 20; assert(isequal(sumOfSeriesV(n),s_correct))

s = 0 a = 3 s = 3 a = 5 s = 8 a = 7 s = 15

Assertion failed.

3   Fail
n = 4; s_correct = 40; assert(isequal(sumOfSeriesV(n),s_correct))

s = 0 a = 3 s = 3 a = 5 s = 8 a = 7 s = 15 a = 9 s = 24

Assertion failed.

4   Fail
n = 10; s_correct = 440; assert(isequal(sumOfSeriesV(n),s_correct))

s = 0 a = 3 s = 3 a = 5 s = 8 a = 7 s = 15 a = 9 s = 24 a = 11 s = 35 a = 13 s = 48 a = 15 s = 63 a = 17 s = 80 a = 19 s = 99 a = 21 s = 120

Assertion failed.

5   Fail
n = 21; s_correct = 3542; assert(isequal(sumOfSeriesV(n),s_correct))

s = 0 a = 3 s = 3 a = 5 s = 8 a = 7 s = 15 a = 9 s = 24 a = 11 s = 35 a = 13 s = 48 a = 15 s = 63 a = 17 s = 80 a = 19 s = 99 a = 21 s = 120 a = 23 s = 143 a = 25 s = 168 a = 27 s = 195 a = 29 s = 224 a = 31 s = 255 a = 33 s = 288 a = 35 s = 323 a = 37 s = 360 a = 39 s = 399 a = 41 s = 440 a = 43 s = 483

Assertion failed.

6   Fail
n = 42; s_correct = 26488; assert(isequal(sumOfSeriesV(n),s_correct))

s = 0 a = 3 s = 3 a = 5 s = 8 a = 7 s = 15 a = 9 s = 24 a = 11 s = 35 a = 13 s = 48 a = 15 s = 63 a = 17 s = 80 a = 19 s = 99 a = 21 s = 120 a = 23 s = 143 a = 25 s = 168 a = 27 s = 195 a = 29 s = 224 a = 31 s = 255 a = 33 s = 288 a = 35 s = 323 a = 37 s = 360 a = 39 s = 399 a = 41 s = 440 a = 43 s = 483 a = 45 s = 528 a = 47 s = 575 a = 49 s = 624 a = 51 s = 675 a = 53 s = 728 a = 55 s = 783 a = 57 s = 840 a = 59 s = 899 a = 61 s = 960 a = 63 s = 1023 a = 65 s = 1088 a = 67 s = 1155 a = 69 s = 1224 a = 71 s = 1295 a = 73 s = 1368 a = 75 s = 1443 a = 77 s = 1520 a = 79 s = 1599 a = 81 s = 1680 a = 83 s = 1763 a = 85 s = 1848

Assertion failed.

7   Fail
n = 88; s_correct = 234960; assert(isequal(sumOfSeriesV(n),s_correct))

s = 0 a = 3 s = 3 a = 5 s = 8 a = 7 s = 15 a = 9 s = 24 a = 11 s = 35 a = 13 s = 48 a = 15 s = 63 a = 17 s = 80 a = 19 s = 99 a = 21 s = 120 a = 23 s = 143 a = 25 s = 168 a = 27 s = 195 a = 29 s = 224 a = 31 s = 255 a = 33 s = 288 a = 35 s = 323 a = 37 s = 360 a = 39 s = 399 a = 41 s = 440 a = 43 s = 483 a = 45 s = 528 a = 47 s = 575 a = 49 s = 624 a = 51 s = 675 a = 53 s = 728 a = 55 s = 783 a = 57 s = 840 a = 59 s = 899 a = 61 s = 960 a = 63 s = 1023 a = 65 s = 1088 a = 67 s = 1155 a = 69 s = 1224 a = 71 s = 1295 a = 73 s = 1368 a = 75 s = 1443 a = 77 s = 1520 a = 79 s = 1599 a = 81 s = 1680 a = 83 s = 1763 a = 85 s = 1848 a = 87 s = 1935 a = 89 s = 2024 a = 91 s = 2115 a = 93 s = 2208 a = 95 s = 2303 a = 97 s = 2400 a = 99 s = 2499 a = 101 s = 2600 a = 103 s = 2703 a = 105 s = 2808 a = 107 s = 2915 a = 109 s = 3024 a = 111 s = 3135 a = 113 s = 3248 a = 115 s = 3363 a = 117 s = 3480 a = 119 s = 3599 a = 121 s = 3720 a = 123 s = 3843 a = 125 s = 3968 a = 127 s = 4095 a = 129 s = 4224 a = 131 s = 4355 a = 133 s = 4488 a = 135 s = 4623 a = 137 s = 4760 a = 139 s = 4899 a = 141 s = 5040 a = 143 s = 5183 a = 145 s = 5328 a = 147 s = 5475 a = 149 s = 5624 a = 151 s = 5775 a = 153 s = 5928 a = 155 s = 6083 a = 157 s = 6240 a = 159 s = 6399 a = 161 s = 6560 a = 163 s = 6723 a = 165 s = 6888 a = 167 s = 7055 a = 169 s = 7224 a = 171 s = 7395 a = 173 s = 7568 a = 175 s = 7743 a = 177 s = 7920

Assertion failed.

8   Fail
n = 99; s_correct = 333300; assert(isequal(sumOfSeriesV(n),s_correct))

s = 0 a = 3 s = 3 a = 5 s = 8 a = 7 s = 15 a = 9 s = 24 a = 11 s = 35 a = 13 s = 48 a = 15 s = 63 a = 17 s = 80 a = 19 s = 99 a = 21 s = 120 a = 23 s = 143 a = 25 s = 168 a = 27 s = 195 a = 29 s = 224 a = 31 s = 255 a = 33 s = 288 a = 35 s = 323 a = 37 s = 360 a = 39 s = 399 a = 41 s = 440 a = 43 s = 483 a = 45 s = 528 a = 47 s = 575 a = 49 s = 624 a = 51 s = 675 a = 53 s = 728 a = 55 s = 783 a = 57 s = 840 a = 59 s = 899 a = 61 s = 960 a = 63 s = 1023 a = 65 s = 1088 a = 67 s = 1155 a = 69 s = 1224 a = 71 s = 1295 a = 73 s = 1368 a = 75 s = 1443 a = 77 s = 1520 a = 79 s = 1599 a = 81 s = 1680 a = 83 s = 1763 a = 85 s = 1848 a = 87 s = 1935 a = 89 s = 2024 a = 91 s = 2115 a = 93 s = 2208 a = 95 s = 2303 a = 97 s = 2400 a = 99 s = 2499 a = 101 s = 2600 a = 103 s = 2703 a = 105 s = 2808 a = 107 s = 2915 a = 109 s = 3024 a = 111 s = 3135 a = 113 s = 3248 a = 115 s = 3363 a = 117 s = 3480 a = 119 s = 3599 a = 121 s = 3720 a = 123 s = 3843 a = 125 s = 3968 a = 127 s = 4095 a = 129 s = 4224 a = 131 s = 4355 a = 133 s = 4488 a = 135 s = 4623 a = 137 s = 4760 a = 139 s = 4899 a = 141 s = 5040 a = 143 s = 5183 a = 145 s = 5328 a = 147 s = 5475 a = 149 s = 5624 a = 151 s = 5775 a = 153 s = 5928 a = 155 s = 6083 a = 157 s = 6240 a = 159 s = 6399 a = 161 s = 6560 a = 163 s = 6723 a = 165 s = 6888 a = 167 s = 7055 a = 169 s = 7224 a = 171 s = 7395 a = 173 s = 7568 a = 175 s = 7743 a = 177 s = 7920 a = 179 s = 8099 a = 181 s = 8280 a = 183 s = 8463 a = 185 s = 8648 a = 187 s = 8835 a = 189 s = 9024 a = 191 s = 9215 a = 193 s = 9408 a = 195 s = 9603 a = 197 s = 9800 a = 199 s = 9999

Assertion failed.