Cody

Problem 2575. Sum of series I

Solution 2565471

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(sumOfSeriesI(n),s_correct))

s = 1

2   Pass
n = 2; s_correct = 4; assert(isequal(sumOfSeriesI(n),s_correct))

s = 1 s = 4

3   Pass
n = 10; s_correct = 100; assert(isequal(sumOfSeriesI(n),s_correct))

s = 1 s = 4 s = 9 s = 16 s = 25 s = 36 s = 49 s = 64 s = 81 s = 100

4   Pass
n = 15; s_correct = 225; assert(isequal(sumOfSeriesI(n),s_correct))

s = 1 s = 4 s = 9 s = 16 s = 25 s = 36 s = 49 s = 64 s = 81 s = 100 s = 121 s = 144 s = 169 s = 196 s = 225

5   Pass
n = 42; s_correct = 1764; assert(isequal(sumOfSeriesI(n),s_correct))

s = 1 s = 4 s = 9 s = 16 s = 25 s = 36 s = 49 s = 64 s = 81 s = 100 s = 121 s = 144 s = 169 s = 196 s = 225 s = 256 s = 289 s = 324 s = 361 s = 400 s = 441 s = 484 s = 529 s = 576 s = 625 s = 676 s = 729 s = 784 s = 841 s = 900 s = 961 s = 1024 s = 1089 s = 1156 s = 1225 s = 1296 s = 1369 s = 1444 s = 1521 s = 1600 s = 1681 s = 1764

6   Pass
n = 101; s_correct = 10201; assert(isequal(sumOfSeriesI(n),s_correct))

s = 1 s = 4 s = 9 s = 16 s = 25 s = 36 s = 49 s = 64 s = 81 s = 100 s = 121 s = 144 s = 169 s = 196 s = 225 s = 256 s = 289 s = 324 s = 361 s = 400 s = 441 s = 484 s = 529 s = 576 s = 625 s = 676 s = 729 s = 784 s = 841 s = 900 s = 961 s = 1024 s = 1089 s = 1156 s = 1225 s = 1296 s = 1369 s = 1444 s = 1521 s = 1600 s = 1681 s = 1764 s = 1849 s = 1936 s = 2025 s = 2116 s = 2209 s = 2304 s = 2401 s = 2500 s = 2601 s = 2704 s = 2809 s = 2916 s = 3025 s = 3136 s = 3249 s = 3364 s = 3481 s = 3600 s = 3721 s = 3844 s = 3969 s = 4096 s = 4225 s = 4356 s = 4489 s = 4624 s = 4761 s = 4900 s = 5041 s = 5184 s = 5329 s = 5476 s = 5625 s = 5776 s = 5929 s = 6084 s = 6241 s = 6400 s = 6561 s = 6724 s = 6889 s = 7056 s = 7225 s = 7396 s = 7569 s = 7744 s = 7921 s = 8100 s = 8281 s = 8464 s = 8649 s = 8836 s = 9025 s = 9216 s = 9409 s = 9604 s = 9801 s = 10000 s = 10201

7   Pass
n = 12345; s_correct = 152399025; assert(isequal(sumOfSeriesI(n),s_correct))

s = 1 s = 4 s = 9 s = 16 s = 25 s = 36 s = 49 s = 64 s = 81 s = 100 s = 121 s = 144 s = 169 s = 196 s = 225 s = 256 s = 289 s = 324 s = 361 s = 400 s = 441 s = 484 s = 529 s = 576 s = 625 s = 676 s = 729 s = 784 s = 841 s = 900 s = 961 s = 1024 s = 1089 s = 1156 s = 1225 s = 1296 s = 1369 s = 1444 s = 1521 s = 1600 s = 1681 s = 1764 s = 1849 s = 1936 s = 2025 s = 2116 s = 2209 s = 2304 s = 2401 s = 2500 s = 2601 s = 2704 s = 2809 s = 2916 s = 3025 s = 3136 s = 3249 s = 3364 s = 3481 s = 3600 s = 3721 s = 3844 s = 3969 s = 4096 s = 4225 s = 4356 s = 4489 s = 4624 s = 4761 s = 4900 s = 5041 s = 5184 s = 5329 s = 5476 s = 5625 s = 5776 s = 5929 s = 6084 s = 6241 s = 6400 s = 6561 s = 6724 s = 6889 s = 7056 s = 7225 s = 7396 s = 7569 s = 7744 s = 7921 s = 8100 s = 8281 s = 8464 s = 8649 s = 8836 s = 9025 s = 9216 s = 9409 s = 9604 s = 9801 s = 10000 s = 10201 s = 10404 s = 10609 s = 10816 s = 11025 s = 11236 s = 11449 s = 11664 s = 11881 s = 12100 s = 12321 s = 12544 s = 12769 s = 12996 s = 13225 s = 13456 s = 13689 s = 13924 s = 14161 s = 14400 s = 14641 s = 14884 s = 15129 s = 15376 s = 15625 s = 15876 s = 16129 s = 16384 s = 16641 s = 16900 s = 17161 s = 17424 s = 17689 s = 17956 s = 18225 s = 18496 s = 18769 s = 19044 s = 19321 s = 19600 s = 19881 s = 20164 s = 20449 s = 20736 s = 21025 s = 21316 s = 21609 s = 21904 s = 22201 s = 22500 s = 22801 s = 23104 s = 23409 s = 23716 s = 24025 s = 24336 s = 24649 s = 24964 s = 25281 s = 25600 s = 25921 s = 26244 s = 26569 s = 26896 s = 27225 s = 27556 s = 27889 s = 28224 s = 28561 s = 28900 s = 29241 s = 29584 s = 29929 s = 30276 s = 30625 s = 30976 s = 31329 s = 31684 s = 32041 s = 32400 s = 32761 s = 33124 s = 33489 s = 33856 s = 34225 s = 34596 s = 34969 s = 35344 s = 35721 s = 36100 s = 36481 s = 36864 s = 37249 s = 37636 s = 38025 s = 38416 s = 38809 s = 39204 s = 39601 s = 40000 s = 40401 s = 40804 s = 41209 s = 41616 s = 42025 s = 42436 s = 42849 s = 43264 s = 43681 s = 44100 s = 44521 s = 44944 s = 45369 s = 45796 s = 46225 s = 46656 s = 47089 s = 47524 s = 47961 s = 48400 s = 48841 s = 49284 s = 49729 s = 50176 s = 50625 s = 51076 s = 51529 s = 51984 s = 52441 s = 52900 s = 53361 s = 53824 s = 54289 s = 54756 s = 55225 s = 55696 s = 56169 s = 56644 s = 57121 s = 57600 s = 58081 s = 58564 s = 59049 s = 59536 s = 60025 s = 60516 s = 61009 s = 61504 s = 62001 s = 62500 s = 63001 s = 63504 s = 64009 s = 64516 s = 65025 s = 65536 s = 66049 s = 66564 s = 67081 s = 67600 s = 68121 s = 68644 s = 69169 s = 69696 s = 70225 s = 70756 s = 71289 s = 71824 s = 72361 s = 72900 s = 73441 s = 73984 s = 74529 s = 75076 s = 75625 s = 76176 s = 76729 s = 77284 s = 77841 s = 78400 s = 78961 s = 79524 s = 80089 s = 80656 s = 81225 s = 81796 s = 82369 s = 82944 s = 83521 s = 84100 s = 84681 s = 85264 s = 85849 s = 86436 s = 87025 s = 87616 s = 88209 s = 88804 s = 89401 s = 90000 s = 90601 s = 91204 s = 91809 s = 92416 s = 93025 s = 93636 s = 94249 s = 94864 s = 95481 s = 96100 s = 96721 s = 97344 s = 97969 s = 98596 s = 99225 s = 99856 s = 100489 s = 101124 s = 101761 s = 102400 s = 103041 s = 103684 s = 104329 s = 104976 s = 105625 s = 106276 s = 106929 s = 107584 s = 108241 s = 108900 s = 109561 s = 110224 s = 110889 s = 111556 s = 112225 s = 112896 s = 113569 s = 114244 s = 114921 s = 115600 s = 116281 s = 116964 s = 117649 s = 118336 s = 119025 s = 119716 s = 120409 s = 121104 s = 121801 s = 122500 s = 123201 s = 123904 s = 124609 s = 125316 s = 126025 s = 126736 s = 127449 s = 128164 s = 128881 s = 129600 s = 130321 s = 131044 s = 131769 s = 132496 s = 133225 s = 133956 s = 134689 s = 135424 s = 136161 s = 136900 s = 137641 s = 138384 s = 139129 s = 139876 s = 140625 s = 141376 s = 142129 s = 142884 s = 143641 s = 144400 s = 145161 s = 145924 s = 146689 s = 147456 s = 148225 s = 148996 s = 149769 s = 150544 s = 151321 s = 152100 s = 152881 s = 153664 s = 154449 s = 155236 s = 156025 s = 156816 s = 157609 s = 158404 s = 159201 s = 160000 s = 160801 s = 161604 s = 162409 s = 163216 s = 164025 s = 164836 s = 165649 s = 166464 s = 167281 s = 168100 s = 168921 s = 169744 s = 170569 s = 171396 s = 172225 s = 173056 s = 173889 s = 174724 s = 175561 s = 176400 s = 177241 s = 178084 s = 178929 s = 179776 s = 180625 s = 181476 s = 182329 s = 183184 s = 184041 s = 184900 s = 185761 s = 186624 s = 187489 s = 188356 s = 189225 s = 190096 s = 190969 s = 191844 s = 192721 s = 193600 s = 194481 s = 195364 s = 196249 s = 197136 s = 198025 s = 198916 s = 199809 s = 200704 s = 201601 s = 202500 s = 203401 s = 204304 s = 205209 s = 206116 s = 207025 s = 207936 s = 208849 s = 209764 s = 210681 s = 211600 s = 212521 s = 213444 s = 214369 s = 215296 s = 216225 s = 217156 s = 218089 s = 219024 s = 219961 s = 220900 s = 221841 s = 222784 s = 223729 s = 224676 s = 225625 s = 226576 s = 227529 s = 228484 s = 229441 s = 230400 s = 231361 s = 232324 s = 233289 s = 234256 s = 235225 s = 236196 s = 237169 s = 238144 s = 239121 s = 240100 s = 241081 s = 242064 s = 243049 s = 244036 s = 245025 s = 246016 s = 247009 s = 248004 s = 249001 s = 250000 s = 251001 s = 252004 s = 253009 s = 254016 s = 255025 s = 256036 s = 257049 s = 258064 s = 259081 s = ...

Suggested Problems

More from this Author9