Cody

Problem 189. Sum all integers from 1 to 2^n

Solution 1976842

Submitted on 15 Oct 2019 by Trinh Tran
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 = 3; y_correct = 36; assert(isequal(sum_int(x),y_correct))

s = 1 s = 3 s = 6 s = 10 s = 15 s = 21 s = 28 s = 36

2   Pass
x = 7; y_correct = 8256; assert(isequal(sum_int(x),y_correct))

s = 1 s = 3 s = 6 s = 10 s = 15 s = 21 s = 28 s = 36 s = 45 s = 55 s = 66 s = 78 s = 91 s = 105 s = 120 s = 136 s = 153 s = 171 s = 190 s = 210 s = 231 s = 253 s = 276 s = 300 s = 325 s = 351 s = 378 s = 406 s = 435 s = 465 s = 496 s = 528 s = 561 s = 595 s = 630 s = 666 s = 703 s = 741 s = 780 s = 820 s = 861 s = 903 s = 946 s = 990 s = 1035 s = 1081 s = 1128 s = 1176 s = 1225 s = 1275 s = 1326 s = 1378 s = 1431 s = 1485 s = 1540 s = 1596 s = 1653 s = 1711 s = 1770 s = 1830 s = 1891 s = 1953 s = 2016 s = 2080 s = 2145 s = 2211 s = 2278 s = 2346 s = 2415 s = 2485 s = 2556 s = 2628 s = 2701 s = 2775 s = 2850 s = 2926 s = 3003 s = 3081 s = 3160 s = 3240 s = 3321 s = 3403 s = 3486 s = 3570 s = 3655 s = 3741 s = 3828 s = 3916 s = 4005 s = 4095 s = 4186 s = 4278 s = 4371 s = 4465 s = 4560 s = 4656 s = 4753 s = 4851 s = 4950 s = 5050 s = 5151 s = 5253 s = 5356 s = 5460 s = 5565 s = 5671 s = 5778 s = 5886 s = 5995 s = 6105 s = 6216 s = 6328 s = 6441 s = 6555 s = 6670 s = 6786 s = 6903 s = 7021 s = 7140 s = 7260 s = 7381 s = 7503 s = 7626 s = 7750 s = 7875 s = 8001 s = 8128 s = 8256

3   Pass
x = 10; y_correct = 524800; assert(isequal(sum_int(x),y_correct))

s = 1 s = 3 s = 6 s = 10 s = 15 s = 21 s = 28 s = 36 s = 45 s = 55 s = 66 s = 78 s = 91 s = 105 s = 120 s = 136 s = 153 s = 171 s = 190 s = 210 s = 231 s = 253 s = 276 s = 300 s = 325 s = 351 s = 378 s = 406 s = 435 s = 465 s = 496 s = 528 s = 561 s = 595 s = 630 s = 666 s = 703 s = 741 s = 780 s = 820 s = 861 s = 903 s = 946 s = 990 s = 1035 s = 1081 s = 1128 s = 1176 s = 1225 s = 1275 s = 1326 s = 1378 s = 1431 s = 1485 s = 1540 s = 1596 s = 1653 s = 1711 s = 1770 s = 1830 s = 1891 s = 1953 s = 2016 s = 2080 s = 2145 s = 2211 s = 2278 s = 2346 s = 2415 s = 2485 s = 2556 s = 2628 s = 2701 s = 2775 s = 2850 s = 2926 s = 3003 s = 3081 s = 3160 s = 3240 s = 3321 s = 3403 s = 3486 s = 3570 s = 3655 s = 3741 s = 3828 s = 3916 s = 4005 s = 4095 s = 4186 s = 4278 s = 4371 s = 4465 s = 4560 s = 4656 s = 4753 s = 4851 s = 4950 s = 5050 s = 5151 s = 5253 s = 5356 s = 5460 s = 5565 s = 5671 s = 5778 s = 5886 s = 5995 s = 6105 s = 6216 s = 6328 s = 6441 s = 6555 s = 6670 s = 6786 s = 6903 s = 7021 s = 7140 s = 7260 s = 7381 s = 7503 s = 7626 s = 7750 s = 7875 s = 8001 s = 8128 s = 8256 s = 8385 s = 8515 s = 8646 s = 8778 s = 8911 s = 9045 s = 9180 s = 9316 s = 9453 s = 9591 s = 9730 s = 9870 s = 10011 s = 10153 s = 10296 s = 10440 s = 10585 s = 10731 s = 10878 s = 11026 s = 11175 s = 11325 s = 11476 s = 11628 s = 11781 s = 11935 s = 12090 s = 12246 s = 12403 s = 12561 s = 12720 s = 12880 s = 13041 s = 13203 s = 13366 s = 13530 s = 13695 s = 13861 s = 14028 s = 14196 s = 14365 s = 14535 s = 14706 s = 14878 s = 15051 s = 15225 s = 15400 s = 15576 s = 15753 s = 15931 s = 16110 s = 16290 s = 16471 s = 16653 s = 16836 s = 17020 s = 17205 s = 17391 s = 17578 s = 17766 s = 17955 s = 18145 s = 18336 s = 18528 s = 18721 s = 18915 s = 19110 s = 19306 s = 19503 s = 19701 s = 19900 s = 20100 s = 20301 s = 20503 s = 20706 s = 20910 s = 21115 s = 21321 s = 21528 s = 21736 s = 21945 s = 22155 s = 22366 s = 22578 s = 22791 s = 23005 s = 23220 s = 23436 s = 23653 s = 23871 s = 24090 s = 24310 s = 24531 s = 24753 s = 24976 s = 25200 s = 25425 s = 25651 s = 25878 s = 26106 s = 26335 s = 26565 s = 26796 s = 27028 s = 27261 s = 27495 s = 27730 s = 27966 s = 28203 s = 28441 s = 28680 s = 28920 s = 29161 s = 29403 s = 29646 s = 29890 s = 30135 s = 30381 s = 30628 s = 30876 s = 31125 s = 31375 s = 31626 s = 31878 s = 32131 s = 32385 s = 32640 s = 32896 s = 33153 s = 33411 s = 33670 s = 33930 s = 34191 s = 34453 s = 34716 s = 34980 s = 35245 s = 35511 s = 35778 s = 36046 s = 36315 s = 36585 s = 36856 s = 37128 s = 37401 s = 37675 s = 37950 s = 38226 s = 38503 s = 38781 s = 39060 s = 39340 s = 39621 s = 39903 s = 40186 s = 40470 s = 40755 s = 41041 s = 41328 s = 41616 s = 41905 s = 42195 s = 42486 s = 42778 s = 43071 s = 43365 s = 43660 s = 43956 s = 44253 s = 44551 s = 44850 s = 45150 s = 45451 s = 45753 s = 46056 s = 46360 s = 46665 s = 46971 s = 47278 s = 47586 s = 47895 s = 48205 s = 48516 s = 48828 s = 49141 s = 49455 s = 49770 s = 50086 s = 50403 s = 50721 s = 51040 s = 51360 s = 51681 s = 52003 s = 52326 s = 52650 s = 52975 s = 53301 s = 53628 s = 53956 s = 54285 s = 54615 s = 54946 s = 55278 s = 55611 s = 55945 s = 56280 s = 56616 s = 56953 s = 57291 s = 57630 s = 57970 s = 58311 s = 58653 s = 58996 s = 59340 s = 59685 s = 60031 s = 60378 s = 60726 s = 61075 s = 61425 s = 61776 s = 62128 s = 62481 s = 62835 s = 63190 s = 63546 s = 63903 s = 64261 s = 64620 s = 64980 s = 65341 s = 65703 s = 66066 s = 66430 s = 66795 s = 67161 s = 67528 s = 67896 s = 68265 s = 68635 s = 69006 s = 69378 s = 69751 s = 70125 s = 70500 s = 70876 s = 71253 s = 71631 s = 72010 s = 72390 s = 72771 s = 73153 s = 73536 s = 73920 s = 74305 s = 74691 s = 75078 s = 75466 s = 75855 s = 76245 s = 76636 s = 77028 s = 77421 s = 77815 s = 78210 s = 78606 s = 79003 s = 79401 s = 79800 s = 80200 s = 80601 s = 81003 s = 81406 s = 81810 s = 82215 s = 82621 s = 83028 s = 83436 s = 83845 s = 84255 s = 84666 s = 85078 s = 85491 s = 85905 s = 86320 s = 86736 s = 87153 s = 87571 s = 87990 s = 88410 s = 88831 s = 89253 s = 89676 s = 90100 s = 90525 s = 90951 s = 91378 s = 91806 s = 92235 s = 92665 s = 93096 s = 93528 s = 93961 s = 94395 s = 94830 s = 95266 s = 95703 s = 96141 s = 96580 s = 97020 s = 97461 s = 97903 s = 98346 s = 98790 s = 99235 s = 99681 s = 100128 s = 100576 s = 101025 s = 101475 s = 101926 s = 102378 s = 102831 s = 103285 s = 103740 s = 104196 s = 104653 s = 105111 s = 105570 s = 106030 s = 106491 s = 106953 s = 107416 s = 107880 s = 108345 s = 108811 s = 109278 s = 109746 s = 110215 s = 110685 s = 111156 s = 111628 s = 112101 s = 112575 s = 113050 s = 113526 s = 114003 s = 114481 s = 114960 s = 115440 s = 115921 s = 116403 s = 116886 s = 117370 s = 117855 s = 118341 s = 118828 s = 119316 s = 119805 s = 120295 s = 120786 s = 121278 s = 121771 s = 122265 s = 122760 s = 123256 s = 123753 s = 124251 s = 124750 s = 125250 s = 125751 s = 126253 s = 126756 s = 127260 s = 127765 s = 128271 s = 128778 s = 129286 s = 129795 s = 130305 s = 130816 s = 131328 s = 131841 s = ...

4   Pass
x = 11; y_correct = 2098176; assert(isequal(sum_int(x),y_correct))

s = 1 s = 3 s = 6 s = 10 s = 15 s = 21 s = 28 s = 36 s = 45 s = 55 s = 66 s = 78 s = 91 s = 105 s = 120 s = 136 s = 153 s = 171 s = 190 s = 210 s = 231 s = 253 s = 276 s = 300 s = 325 s = 351 s = 378 s = 406 s = 435 s = 465 s = 496 s = 528 s = 561 s = 595 s = 630 s = 666 s = 703 s = 741 s = 780 s = 820 s = 861 s = 903 s = 946 s = 990 s = 1035 s = 1081 s = 1128 s = 1176 s = 1225 s = 1275 s = 1326 s = 1378 s = 1431 s = 1485 s = 1540 s = 1596 s = 1653 s = 1711 s = 1770 s = 1830 s = 1891 s = 1953 s = 2016 s = 2080 s = 2145 s = 2211 s = 2278 s = 2346 s = 2415 s = 2485 s = 2556 s = 2628 s = 2701 s = 2775 s = 2850 s = 2926 s = 3003 s = 3081 s = 3160 s = 3240 s = 3321 s = 3403 s = 3486 s = 3570 s = 3655 s = 3741 s = 3828 s = 3916 s = 4005 s = 4095 s = 4186 s = 4278 s = 4371 s = 4465 s = 4560 s = 4656 s = 4753 s = 4851 s = 4950 s = 5050 s = 5151 s = 5253 s = 5356 s = 5460 s = 5565 s = 5671 s = 5778 s = 5886 s = 5995 s = 6105 s = 6216 s = 6328 s = 6441 s = 6555 s = 6670 s = 6786 s = 6903 s = 7021 s = 7140 s = 7260 s = 7381 s = 7503 s = 7626 s = 7750 s = 7875 s = 8001 s = 8128 s = 8256 s = 8385 s = 8515 s = 8646 s = 8778 s = 8911 s = 9045 s = 9180 s = 9316 s = 9453 s = 9591 s = 9730 s = 9870 s = 10011 s = 10153 s = 10296 s = 10440 s = 10585 s = 10731 s = 10878 s = 11026 s = 11175 s = 11325 s = 11476 s = 11628 s = 11781 s = 11935 s = 12090 s = 12246 s = 12403 s = 12561 s = 12720 s = 12880 s = 13041 s = 13203 s = 13366 s = 13530 s = 13695 s = 13861 s = 14028 s = 14196 s = 14365 s = 14535 s = 14706 s = 14878 s = 15051 s = 15225 s = 15400 s = 15576 s = 15753 s = 15931 s = 16110 s = 16290 s = 16471 s = 16653 s = 16836 s = 17020 s = 17205 s = 17391 s = 17578 s = 17766 s = 17955 s = 18145 s = 18336 s = 18528 s = 18721 s = 18915 s = 19110 s = 19306 s = 19503 s = 19701 s = 19900 s = 20100 s = 20301 s = 20503 s = 20706 s = 20910 s = 21115 s = 21321 s = 21528 s = 21736 s = 21945 s = 22155 s = 22366 s = 22578 s = 22791 s = 23005 s = 23220 s = 23436 s = 23653 s = 23871 s = 24090 s = 24310 s = 24531 s = 24753 s = 24976 s = 25200 s = 25425 s = 25651 s = 25878 s = 26106 s = 26335 s = 26565 s = 26796 s = 27028 s = 27261 s = 27495 s = 27730 s = 27966 s = 28203 s = 28441 s = 28680 s = 28920 s = 29161 s = 29403 s = 29646 s = 29890 s = 30135 s = 30381 s = 30628 s = 30876 s = 31125 s = 31375 s = 31626 s = 31878 s = 32131 s = 32385 s = 32640 s = 32896 s = 33153 s = 33411 s = 33670 s = 33930 s = 34191 s = 34453 s = 34716 s = 34980 s = 35245 s = 35511 s = 35778 s = 36046 s = 36315 s = 36585 s = 36856 s = 37128 s = 37401 s = 37675 s = 37950 s = 38226 s = 38503 s = 38781 s = 39060 s = 39340 s = 39621 s = 39903 s = 40186 s = 40470 s = 40755 s = 41041 s = 41328 s = 41616 s = 41905 s = 42195 s = 42486 s = 42778 s = 43071 s = 43365 s = 43660 s = 43956 s = 44253 s = 44551 s = 44850 s = 45150 s = 45451 s = 45753 s = 46056 s = 46360 s = 46665 s = 46971 s = 47278 s = 47586 s = 47895 s = 48205 s = 48516 s = 48828 s = 49141 s = 49455 s = 49770 s = 50086 s = 50403 s = 50721 s = 51040 s = 51360 s = 51681 s = 52003 s = 52326 s = 52650 s = 52975 s = 53301 s = 53628 s = 53956 s = 54285 s = 54615 s = 54946 s = 55278 s = 55611 s = 55945 s = 56280 s = 56616 s = 56953 s = 57291 s = 57630 s = 57970 s = 58311 s = 58653 s = 58996 s = 59340 s = 59685 s = 60031 s = 60378 s = 60726 s = 61075 s = 61425 s = 61776 s = 62128 s = 62481 s = 62835 s = 63190 s = 63546 s = 63903 s = 64261 s = 64620 s = 64980 s = 65341 s = 65703 s = 66066 s = 66430 s = 66795 s = 67161 s = 67528 s = 67896 s = 68265 s = 68635 s = 69006 s = 69378 s = 69751 s = 70125 s = 70500 s = 70876 s = 71253 s = 71631 s = 72010 s = 72390 s = 72771 s = 73153 s = 73536 s = 73920 s = 74305 s = 74691 s = 75078 s = 75466 s = 75855 s = 76245 s = 76636 s = 77028 s = 77421 s = 77815 s = 78210 s = 78606 s = 79003 s = 79401 s = 79800 s = 80200 s = 80601 s = 81003 s = 81406 s = 81810 s = 82215 s = 82621 s = 83028 s = 83436 s = 83845 s = 84255 s = 84666 s = 85078 s = 85491 s = 85905 s = 86320 s = 86736 s = 87153 s = 87571 s = 87990 s = 88410 s = 88831 s = 89253 s = 89676 s = 90100 s = 90525 s = 90951 s = 91378 s = 91806 s = 92235 s = 92665 s = 93096 s = 93528 s = 93961 s = 94395 s = 94830 s = 95266 s = 95703 s = 96141 s = 96580 s = 97020 s = 97461 s = 97903 s = 98346 s = 98790 s = 99235 s = 99681 s = 100128 s = 100576 s = 101025 s = 101475 s = 101926 s = 102378 s = 102831 s = 103285 s = 103740 s = 104196 s = 104653 s = 105111 s = 105570 s = 106030 s = 106491 s = 106953 s = 107416 s = 107880 s = 108345 s = 108811 s = 109278 s = 109746 s = 110215 s = 110685 s = 111156 s = 111628 s = 112101 s = 112575 s = 113050 s = 113526 s = 114003 s = 114481 s = 114960 s = 115440 s = 115921 s = 116403 s = 116886 s = 117370 s = 117855 s = 118341 s = 118828 s = 119316 s = 119805 s = 120295 s = 120786 s = 121278 s = 121771 s = 122265 s = 122760 s = 123256 s = 123753 s = 124251 s = 124750 s = 125250 s = 125751 s = 126253 s = 126756 s = 127260 s = 127765 s = 128271 s = 128778 s = 129286 s = 129795 s = 130305 s = 130816 s = 131328 s = 131841 s = ...

5   Pass
x = 14; y_correct = 134225920; assert(isequal(sum_int(x),y_correct))

s = 1 s = 3 s = 6 s = 10 s = 15 s = 21 s = 28 s = 36 s = 45 s = 55 s = 66 s = 78 s = 91 s = 105 s = 120 s = 136 s = 153 s = 171 s = 190 s = 210 s = 231 s = 253 s = 276 s = 300 s = 325 s = 351 s = 378 s = 406 s = 435 s = 465 s = 496 s = 528 s = 561 s = 595 s = 630 s = 666 s = 703 s = 741 s = 780 s = 820 s = 861 s = 903 s = 946 s = 990 s = 1035 s = 1081 s = 1128 s = 1176 s = 1225 s = 1275 s = 1326 s = 1378 s = 1431 s = 1485 s = 1540 s = 1596 s = 1653 s = 1711 s = 1770 s = 1830 s = 1891 s = 1953 s = 2016 s = 2080 s = 2145 s = 2211 s = 2278 s = 2346 s = 2415 s = 2485 s = 2556 s = 2628 s = 2701 s = 2775 s = 2850 s = 2926 s = 3003 s = 3081 s = 3160 s = 3240 s = 3321 s = 3403 s = 3486 s = 3570 s = 3655 s = 3741 s = 3828 s = 3916 s = 4005 s = 4095 s = 4186 s = 4278 s = 4371 s = 4465 s = 4560 s = 4656 s = 4753 s = 4851 s = 4950 s = 5050 s = 5151 s = 5253 s = 5356 s = 5460 s = 5565 s = 5671 s = 5778 s = 5886 s = 5995 s = 6105 s = 6216 s = 6328 s = 6441 s = 6555 s = 6670 s = 6786 s = 6903 s = 7021 s = 7140 s = 7260 s = 7381 s = 7503 s = 7626 s = 7750 s = 7875 s = 8001 s = 8128 s = 8256 s = 8385 s = 8515 s = 8646 s = 8778 s = 8911 s = 9045 s = 9180 s = 9316 s = 9453 s = 9591 s = 9730 s = 9870 s = 10011 s = 10153 s = 10296 s = 10440 s = 10585 s = 10731 s = 10878 s = 11026 s = 11175 s = 11325 s = 11476 s = 11628 s = 11781 s = 11935 s = 12090 s = 12246 s = 12403 s = 12561 s = 12720 s = 12880 s = 13041 s = 13203 s = 13366 s = 13530 s = 13695 s = 13861 s = 14028 s = 14196 s = 14365 s = 14535 s = 14706 s = 14878 s = 15051 s = 15225 s = 15400 s = 15576 s = 15753 s = 15931 s = 16110 s = 16290 s = 16471 s = 16653 s = 16836 s = 17020 s = 17205 s = 17391 s = 17578 s = 17766 s = 17955 s = 18145 s = 18336 s = 18528 s = 18721 s = 18915 s = 19110 s = 19306 s = 19503 s = 19701 s = 19900 s = 20100 s = 20301 s = 20503 s = 20706 s = 20910 s = 21115 s = 21321 s = 21528 s = 21736 s = 21945 s = 22155 s = 22366 s = 22578 s = 22791 s = 23005 s = 23220 s = 23436 s = 23653 s = 23871 s = 24090 s = 24310 s = 24531 s = 24753 s = 24976 s = 25200 s = 25425 s = 25651 s = 25878 s = 26106 s = 26335 s = 26565 s = 26796 s = 27028 s = 27261 s = 27495 s = 27730 s = 27966 s = 28203 s = 28441 s = 28680 s = 28920 s = 29161 s = 29403 s = 29646 s = 29890 s = 30135 s = 30381 s = 30628 s = 30876 s = 31125 s = 31375 s = 31626 s = 31878 s = 32131 s = 32385 s = 32640 s = 32896 s = 33153 s = 33411 s = 33670 s = 33930 s = 34191 s = 34453 s = 34716 s = 34980 s = 35245 s = 35511 s = 35778 s = 36046 s = 36315 s = 36585 s = 36856 s = 37128 s = 37401 s = 37675 s = 37950 s = 38226 s = 38503 s = 38781 s = 39060 s = 39340 s = 39621 s = 39903 s = 40186 s = 40470 s = 40755 s = 41041 s = 41328 s = 41616 s = 41905 s = 42195 s = 42486 s = 42778 s = 43071 s = 43365 s = 43660 s = 43956 s = 44253 s = 44551 s = 44850 s = 45150 s = 45451 s = 45753 s = 46056 s = 46360 s = 46665 s = 46971 s = 47278 s = 47586 s = 47895 s = 48205 s = 48516 s = 48828 s = 49141 s = 49455 s = 49770 s = 50086 s = 50403 s = 50721 s = 51040 s = 51360 s = 51681 s = 52003 s = 52326 s = 52650 s = 52975 s = 53301 s = 53628 s = 53956 s = 54285 s = 54615 s = 54946 s = 55278 s = 55611 s = 55945 s = 56280 s = 56616 s = 56953 s = 57291 s = 57630 s = 57970 s = 58311 s = 58653 s = 58996 s = 59340 s = 59685 s = 60031 s = 60378 s = 60726 s = 61075 s = 61425 s = 61776 s = 62128 s = 62481 s = 62835 s = 63190 s = 63546 s = 63903 s = 64261 s = 64620 s = 64980 s = 65341 s = 65703 s = 66066 s = 66430 s = 66795 s = 67161 s = 67528 s = 67896 s = 68265 s = 68635 s = 69006 s = 69378 s = 69751 s = 70125 s = 70500 s = 70876 s = 71253 s = 71631 s = 72010 s = 72390 s = 72771 s = 73153 s = 73536 s = 73920 s = 74305 s = 74691 s = 75078 s = 75466 s = 75855 s = 76245 s = 76636 s = 77028 s = 77421 s = 77815 s = 78210 s = 78606 s = 79003 s = 79401 s = 79800 s = 80200 s = 80601 s = 81003 s = 81406 s = 81810 s = 82215 s = 82621 s = 83028 s = 83436 s = 83845 s = 84255 s = 84666 s = 85078 s = 85491 s = 85905 s = 86320 s = 86736 s = 87153 s = 87571 s = 87990 s = 88410 s = 88831 s = 89253 s = 89676 s = 90100 s = 90525 s = 90951 s = 91378 s = 91806 s = 92235 s = 92665 s = 93096 s = 93528 s = 93961 s = 94395 s = 94830 s = 95266 s = 95703 s = 96141 s = 96580 s = 97020 s = 97461 s = 97903 s = 98346 s = 98790 s = 99235 s = 99681 s = 100128 s = 100576 s = 101025 s = 101475 s = 101926 s = 102378 s = 102831 s = 103285 s = 103740 s = 104196 s = 104653 s = 105111 s = 105570 s = 106030 s = 106491 s = 106953 s = 107416 s = 107880 s = 108345 s = 108811 s = 109278 s = 109746 s = 110215 s = 110685 s = 111156 s = 111628 s = 112101 s = 112575 s = 113050 s = 113526 s = 114003 s = 114481 s = 114960 s = 115440 s = 115921 s = 116403 s = 116886 s = 117370 s = 117855 s = 118341 s = 118828 s = 119316 s = 119805 s = 120295 s = 120786 s = 121278 s = 121771 s = 122265 s = 122760 s = 123256 s = 123753 s = 124251 s = 124750 s = 125250 s = 125751 s = 126253 s = 126756 s = 127260 s = 127765 s = 128271 s = 128778 s = 129286 s = 129795 s = 130305 s = 130816 s = 131328 s = 131841 s = ...

6   Pass
x = 17; y_correct = 8590000128; assert(isequal(sum_int(x),y_correct))

s = 1 s = 3 s = 6 s = 10 s = 15 s = 21 s = 28 s = 36 s = 45 s = 55 s = 66 s = 78 s = 91 s = 105 s = 120 s = 136 s = 153 s = 171 s = 190 s = 210 s = 231 s = 253 s = 276 s = 300 s = 325 s = 351 s = 378 s = 406 s = 435 s = 465 s = 496 s = 528 s = 561 s = 595 s = 630 s = 666 s = 703 s = 741 s = 780 s = 820 s = 861 s = 903 s = 946 s = 990 s = 1035 s = 1081 s = 1128 s = 1176 s = 1225 s = 1275 s = 1326 s = 1378 s = 1431 s = 1485 s = 1540 s = 1596 s = 1653 s = 1711 s = 1770 s = 1830 s = 1891 s = 1953 s = 2016 s = 2080 s = 2145 s = 2211 s = 2278 s = 2346 s = 2415 s = 2485 s = 2556 s = 2628 s = 2701 s = 2775 s = 2850 s = 2926 s = 3003 s = 3081 s = 3160 s = 3240 s = 3321 s = 3403 s = 3486 s = 3570 s = 3655 s = 3741 s = 3828 s = 3916 s = 4005 s = 4095 s = 4186 s = 4278 s = 4371 s = 4465 s = 4560 s = 4656 s = 4753 s = 4851 s = 4950 s = 5050 s = 5151 s = 5253 s = 5356 s = 5460 s = 5565 s = 5671 s = 5778 s = 5886 s = 5995 s = 6105 s = 6216 s = 6328 s = 6441 s = 6555 s = 6670 s = 6786 s = 6903 s = 7021 s = 7140 s = 7260 s = 7381 s = 7503 s = 7626 s = 7750 s = 7875 s = 8001 s = 8128 s = 8256 s = 8385 s = 8515 s = 8646 s = 8778 s = 8911 s = 9045 s = 9180 s = 9316 s = 9453 s = 9591 s = 9730 s = 9870 s = 10011 s = 10153 s = 10296 s = 10440 s = 10585 s = 10731 s = 10878 s = 11026 s = 11175 s = 11325 s = 11476 s = 11628 s = 11781 s = 11935 s = 12090 s = 12246 s = 12403 s = 12561 s = 12720 s = 12880 s = 13041 s = 13203 s = 13366 s = 13530 s = 13695 s = 13861 s = 14028 s = 14196 s = 14365 s = 14535 s = 14706 s = 14878 s = 15051 s = 15225 s = 15400 s = 15576 s = 15753 s = 15931 s = 16110 s = 16290 s = 16471 s = 16653 s = 16836 s = 17020 s = 17205 s = 17391 s = 17578 s = 17766 s = 17955 s = 18145 s = 18336 s = 18528 s = 18721 s = 18915 s = 19110 s = 19306 s = 19503 s = 19701 s = 19900 s = 20100 s = 20301 s = 20503 s = 20706 s = 20910 s = 21115 s = 21321 s = 21528 s = 21736 s = 21945 s = 22155 s = 22366 s = 22578 s = 22791 s = 23005 s = 23220 s = 23436 s = 23653 s = 23871 s = 24090 s = 24310 s = 24531 s = 24753 s = 24976 s = 25200 s = 25425 s = 25651 s = 25878 s = 26106 s = 26335 s = 26565 s = 26796 s = 27028 s = 27261 s = 27495 s = 27730 s = 27966 s = 28203 s = 28441 s = 28680 s = 28920 s = 29161 s = 29403 s = 29646 s = 29890 s = 30135 s = 30381 s = 30628 s = 30876 s = 31125 s = 31375 s = 31626 s = 31878 s = 32131 s = 32385 s = 32640 s = 32896 s = 33153 s = 33411 s = 33670 s = 33930 s = 34191 s = 34453 s = 34716 s = 34980 s = 35245 s = 35511 s = 35778 s = 36046 s = 36315 s = 36585 s = 36856 s = 37128 s = 37401 s = 37675 s = 37950 s = 38226 s = 38503 s = 38781 s = 39060 s = 39340 s = 39621 s = 39903 s = 40186 s = 40470 s = 40755 s = 41041 s = 41328 s = 41616 s = 41905 s = 42195 s = 42486 s = 42778 s = 43071 s = 43365 s = 43660 s = 43956 s = 44253 s = 44551 s = 44850 s = 45150 s = 45451 s = 45753 s = 46056 s = 46360 s = 46665 s = 46971 s = 47278 s = 47586 s = 47895 s = 48205 s = 48516 s = 48828 s = 49141 s = 49455 s = 49770 s = 50086 s = 50403 s = 50721 s = 51040 s = 51360 s = 51681 s = 52003 s = 52326 s = 52650 s = 52975 s = 53301 s = 53628 s = 53956 s = 54285 s = 54615 s = 54946 s = 55278 s = 55611 s = 55945 s = 56280 s = 56616 s = 56953 s = 57291 s = 57630 s = 57970 s = 58311 s = 58653 s = 58996 s = 59340 s = 59685 s = 60031 s = 60378 s = 60726 s = 61075 s = 61425 s = 61776 s = 62128 s = 62481 s = 62835 s = 63190 s = 63546 s = 63903 s = 64261 s = 64620 s = 64980 s = 65341 s = 65703 s = 66066 s = 66430 s = 66795 s = 67161 s = 67528 s = 67896 s = 68265 s = 68635 s = 69006 s = 69378 s = 69751 s = 70125 s = 70500 s = 70876 s = 71253 s = 71631 s = 72010 s = 72390 s = 72771 s = 73153 s = 73536 s = 73920 s = 74305 s = 74691 s = 75078 s = 75466 s = 75855 s = 76245 s = 76636 s = 77028 s = 77421 s = 77815 s = 78210 s = 78606 s = 79003 s = 79401 s = 79800 s = 80200 s = 80601 s = 81003 s = 81406 s = 81810 s = 82215 s = 82621 s = 83028 s = 83436 s = 83845 s = 84255 s = 84666 s = 85078 s = 85491 s = 85905 s = 86320 s = 86736 s = 87153 s = 87571 s = 87990 s = 88410 s = 88831 s = 89253 s = 89676 s = 90100 s = 90525 s = 90951 s = 91378 s = 91806 s = 92235 s = 92665 s = 93096 s = 93528 s = 93961 s = 94395 s = 94830 s = 95266 s = 95703 s = 96141 s = 96580 s = 97020 s = 97461 s = 97903 s = 98346 s = 98790 s = 99235 s = 99681 s = 100128 s = 100576 s = 101025 s = 101475 s = 101926 s = 102378 s = 102831 s = 103285 s = 103740 s = 104196 s = 104653 s = 105111 s = 105570 s = 106030 s = 106491 s = 106953 s = 107416 s = 107880 s = 108345 s = 108811 s = 109278 s = 109746 s = 110215 s = 110685 s = 111156 s = 111628 s = 112101 s = 112575 s = 113050 s = 113526 s = 114003 s = 114481 s = 114960 s = 115440 s = 115921 s = 116403 s = 116886 s = 117370 s = 117855 s = 118341 s = 118828 s = 119316 s = 119805 s = 120295 s = 120786 s = 121278 s = 121771 s = 122265 s = 122760 s = 123256 s = 123753 s = 124251 s = 124750 s = 125250 s = 125751 s = 126253 s = 126756 s = 127260 s = 127765 s = 128271 s = 128778 s = 129286 s = 129795 s = 130305 s = 130816 s = 131328 s = 131841 s = ...

Community Treasure Hunt

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

Start Hunting!