Cody

Problem 2577. Sum of series III

Solution 2565492

Submitted on 16 Jun 2020 by Raúl Ibáñez Couoh
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))

s = 0 s = 1

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

s = 0 s = 1 s = 28

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

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

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

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

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

s = 0 s = 1 s = 28 s = 153 s = 496 s = 1225 s = 2556 s = 4753 s = 8128 s = 13041 s = 19900 s = 29161 s = 41328 s = 56953 s = 76636 s = 101025 s = 130816 s = 166753 s = 209628 s = 260281 s = 319600 s = 388521 s = 468028 s = 559153 s = 662976 s = 780625 s = 913276 s = 1062153 s = 1228528 s = 1413721 s = 1619100 s = 1846081 s = 2096128 s = 2370753 s = 2671516 s = 3000025 s = 3357936 s = 3746953 s = 4168828 s = 4625361 s = 5118400 s = 5649841 s = 6221628

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

s = 0 s = 1 s = 28 s = 153 s = 496 s = 1225 s = 2556 s = 4753 s = 8128 s = 13041 s = 19900 s = 29161 s = 41328 s = 56953 s = 76636 s = 101025 s = 130816 s = 166753 s = 209628 s = 260281 s = 319600 s = 388521 s = 468028 s = 559153 s = 662976 s = 780625 s = 913276 s = 1062153 s = 1228528 s = 1413721 s = 1619100 s = 1846081 s = 2096128 s = 2370753 s = 2671516 s = 3000025 s = 3357936 s = 3746953 s = 4168828 s = 4625361 s = 5118400 s = 5649841 s = 6221628 s = 6835753 s = 7494256 s = 8199225 s = 8952796 s = 9757153 s = 10614528 s = 11527201 s = 12497500 s = 13527801 s = 14620528 s = 15778153 s = 17003196 s = 18298225 s = 19665856 s = 21108753 s = 22629628 s = 24231241 s = 25916400 s = 27687961 s = 29548828 s = 31501953 s = 33550336 s = 35697025 s = 37945116 s = 40297753 s = 42758128 s = 45329481 s = 48015100 s = 50818321 s = 53742528 s = 56791153 s = 59967676 s = 63275625 s = 66718576 s = 70300153 s = 74024028 s = 77893921 s = 81913600 s = 86086881 s = 90417628 s = 94909753 s = 99567216 s = 104394025 s = 109394236 s = 114571953 s = 119931328 s = 125476561 s = 131211900 s = 137141641 s = 143270128 s = 149601753 s = 156140956 s = 162892225 s = 169860096 s = 177049153 s = 184464028 s = 192109401

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

s = 0 s = 1 s = 28 s = 153 s = 496 s = 1225 s = 2556 s = 4753 s = 8128 s = 13041 s = 19900 s = 29161 s = 41328 s = 56953 s = 76636 s = 101025 s = 130816 s = 166753 s = 209628 s = 260281 s = 319600 s = 388521 s = 468028 s = 559153 s = 662976 s = 780625 s = 913276 s = 1062153 s = 1228528 s = 1413721 s = 1619100 s = 1846081 s = 2096128 s = 2370753 s = 2671516 s = 3000025 s = 3357936 s = 3746953 s = 4168828 s = 4625361 s = 5118400 s = 5649841 s = 6221628 s = 6835753 s = 7494256 s = 8199225 s = 8952796 s = 9757153 s = 10614528 s = 11527201 s = 12497500 s = 13527801 s = 14620528 s = 15778153 s = 17003196 s = 18298225 s = 19665856 s = 21108753 s = 22629628 s = 24231241 s = 25916400 s = 27687961 s = 29548828 s = 31501953 s = 33550336 s = 35697025 s = 37945116 s = 40297753 s = 42758128 s = 45329481 s = 48015100 s = 50818321 s = 53742528 s = 56791153 s = 59967676 s = 63275625 s = 66718576 s = 70300153 s = 74024028 s = 77893921 s = 81913600 s = 86086881 s = 90417628 s = 94909753 s = 99567216 s = 104394025 s = 109394236 s = 114571953 s = 119931328 s = 125476561 s = 131211900 s = 137141641 s = 143270128 s = 149601753 s = 156140956 s = 162892225 s = 169860096 s = 177049153 s = 184464028 s = 192109401 s = 199990000 s = 208110601 s = 216476028 s = 225091153 s = 233960896 s = 243090225 s = 252484156 s = 262147753 s = 272086128 s = 282304441 s = 292807900 s = 303601761 s = 314691328 s = 326081953 s = 337779036 s = 349788025 s = 362114416 s = 374763753 s = 387741628 s = 401053681 s = 414705600 s = 428703121 s = 443052028 s = 457758153 s = 472827376

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

s = 0 s = 1 s = 28 s = 153 s = 496 s = 1225 s = 2556 s = 4753 s = 8128 s = 13041 s = 19900 s = 29161 s = 41328 s = 56953 s = 76636 s = 101025 s = 130816 s = 166753 s = 209628 s = 260281 s = 319600 s = 388521 s = 468028 s = 559153 s = 662976 s = 780625 s = 913276 s = 1062153 s = 1228528 s = 1413721 s = 1619100 s = 1846081 s = 2096128 s = 2370753 s = 2671516 s = 3000025 s = 3357936 s = 3746953 s = 4168828 s = 4625361 s = 5118400 s = 5649841 s = 6221628 s = 6835753 s = 7494256 s = 8199225 s = 8952796 s = 9757153 s = 10614528 s = 11527201 s = 12497500 s = 13527801 s = 14620528 s = 15778153 s = 17003196 s = 18298225 s = 19665856 s = 21108753 s = 22629628 s = 24231241 s = 25916400 s = 27687961 s = 29548828 s = 31501953 s = 33550336 s = 35697025 s = 37945116 s = 40297753 s = 42758128 s = 45329481 s = 48015100 s = 50818321 s = 53742528 s = 56791153 s = 59967676 s = 63275625 s = 66718576 s = 70300153 s = 74024028 s = 77893921 s = 81913600 s = 86086881 s = 90417628 s = 94909753 s = 99567216 s = 104394025 s = 109394236 s = 114571953 s = 119931328 s = 125476561 s = 131211900 s = 137141641 s = 143270128 s = 149601753 s = 156140956 s = 162892225 s = 169860096 s = 177049153 s = 184464028 s = 192109401 s = 199990000 s = 208110601 s = 216476028 s = 225091153 s = 233960896 s = 243090225 s = 252484156 s = 262147753 s = 272086128 s = 282304441 s = 292807900 s = 303601761 s = 314691328 s = 326081953 s = 337779036 s = 349788025 s = 362114416 s = 374763753 s = 387741628 s = 401053681 s = 414705600 s = 428703121 s = 443052028 s = 457758153 s = 472827376 s = 488265625 s = 504078876 s = 520273153 s = 536854528 s = 553829121 s = 571203100 s = 588982681 s = 607174128 s = 625783753 s = 644817916 s = 664283025 s = 684185536 s = 704531953 s = 725328828 s = 746582761 s = 768300400 s = 790488441 s = 813153628 s = 836302753 s = 859942656 s = 884080225 s = 908722396 s = 933876153 s = 959548528 s = 985746601 s = 1.0125e+09 s = 1.0397e+09 s = 1.0676e+09 s = 1.0959e+09 s = 1.1249e+09 s = 1.1544e+09 s = 1.1845e+09 s = 1.2151e+09 s = 1.2464e+09 s = 1.2782e+09 s = 1.3107e+09 s = 1.3438e+09 s = 1.3775e+09 s = 1.4118e+09 s = 1.4468e+09 s = 1.4824e+09 s = 1.5186e+09 s = 1.5556e+09 s = 1.5932e+09 s = 1.6314e+09 s = 1.6704e+09 s = 1.7100e+09 s = 1.7504e+09 s = 1.7915e+09 s = 1.8332e+09 s = 1.8758e+09 s = 1.9190e+09 s = 1.9630e+09 s = 2.0077e+09 s = 2.0532e+09 s = 2.0995e+09 s = 2.1465e+09 s = 2.1944e+09 s = 2.2430e+09 s = 2.2924e+09 s = 2.3427e+09 s = 2.3937e+09 s = 2.4456e+09 s = 2.4984e+09 s = 2.5519e+09 s = 2.6064e+09 s = 2.6617e+09 s = 2.7179e+09 s = 2.7749e+09 s = 2.8329e+09 s = 2.8918e+09 s = 2.9515e+09 s = 3.0122e+09 s = 3.0739e+09 s = 3.1364e+09 s = 3.2000e+09 s = 3.2644e+09 s = 3.3299e+09 s = 3.3963e+09 s = 3.4637e+09 s = 3.5322e+09 s = 3.6016e+09 s = 3.6720e+09 s = 3.7435e+09 s = 3.8160e+09 s = 3.8896e+09 s = 3.9642e+09 s = 4.0399e+09 s = 4.1166e+09 s = 4.1945e+09 s = 4.2735e+09 s = 4.3535e+09 s = 4.4347e+09 s = 4.5170e+09 s = 4.6005e+09 s = 4.6851e+09 s = 4.7708e+09 s = 4.8578e+09