Cody

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

Solution 1978853

Submitted on 16 Oct 2019 by Václav Kocar
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))

y = 0 a = 0 y = 1 a = 1 y = 3 a = 3 y = 6 a = 6 y = 10 a = 10 y = 15 a = 15 y = 21 a = 21 y = 28 a = 28 y = 36

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

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

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

y = 0 a = 0 y = 1 a = 1 y = 3 a = 3 y = 6 a = 6 y = 10 a = 10 y = 15 a = 15 y = 21 a = 21 y = 28 a = 28 y = 36 a = 36 y = 45 a = 45 y = 55 a = 55 y = 66 a = 66 y = 78 a = 78 y = 91 a = 91 y = 105 a = 105 y = 120 a = 120 y = 136 a = 136 y = 153 a = 153 y = 171 a = 171 y = 190 a = 190 y = 210 a = 210 y = 231 a = 231 y = 253 a = 253 y = 276 a = 276 y = 300 a = 300 y = 325 a = 325 y = 351 a = 351 y = 378 a = 378 y = 406 a = 406 y = 435 a = 435 y = 465 a = 465 y = 496 a = 496 y = 528 a = 528 y = 561 a = 561 y = 595 a = 595 y = 630 a = 630 y = 666 a = 666 y = 703 a = 703 y = 741 a = 741 y = 780 a = 780 y = 820 a = 820 y = 861 a = 861 y = 903 a = 903 y = 946 a = 946 y = 990 a = 990 y = 1035 a = 1035 y = 1081 a = 1081 y = 1128 a = 1128 y = 1176 a = 1176 y = 1225 a = 1225 y = 1275 a = 1275 y = 1326 a = 1326 y = 1378 a = 1378 y = 1431 a = 1431 y = 1485 a = 1485 y = 1540 a = 1540 y = 1596 a = 1596 y = 1653 a = 1653 y = 1711 a = 1711 y = 1770 a = 1770 y = 1830 a = 1830 y = 1891 a = 1891 y = 1953 a = 1953 y = 2016 a = 2016 y = 2080 a = 2080 y = 2145 a = 2145 y = 2211 a = 2211 y = 2278 a = 2278 y = 2346 a = 2346 y = 2415 a = 2415 y = 2485 a = 2485 y = 2556 a = 2556 y = 2628 a = 2628 y = 2701 a = 2701 y = 2775 a = 2775 y = 2850 a = 2850 y = 2926 a = 2926 y = 3003 a = 3003 y = 3081 a = 3081 y = 3160 a = 3160 y = 3240 a = 3240 y = 3321 a = 3321 y = 3403 a = 3403 y = 3486 a = 3486 y = 3570 a = 3570 y = 3655 a = 3655 y = 3741 a = 3741 y = 3828 a = 3828 y = 3916 a = 3916 y = 4005 a = 4005 y = 4095 a = 4095 y = 4186 a = 4186 y = 4278 a = 4278 y = 4371 a = 4371 y = 4465 a = 4465 y = 4560 a = 4560 y = 4656 a = 4656 y = 4753 a = 4753 y = 4851 a = 4851 y = 4950 a = 4950 y = 5050 a = 5050 y = 5151 a = 5151 y = 5253 a = 5253 y = 5356 a = 5356 y = 5460 a = 5460 y = 5565 a = 5565 y = 5671 a = 5671 y = 5778 a = 5778 y = 5886 a = 5886 y = 5995 a = 5995 y = 6105 a = 6105 y = 6216 a = 6216 y = 6328 a = 6328 y = 6441 a = 6441 y = 6555 a = 6555 y = 6670 a = 6670 y = 6786 a = 6786 y = 6903 a = 6903 y = 7021 a = 7021 y = 7140 a = 7140 y = 7260 a = 7260 y = 7381 a = 7381 y = 7503 a = 7503 y = 7626 a = 7626 y = 7750 a = 7750 y = 7875 a = 7875 y = 8001 a = 8001 y = 8128 a = 8128 y = 8256 a = 8256 y = 8385 a = 8385 y = 8515 a = 8515 y = 8646 a = 8646 y = 8778 a = 8778 y = 8911 a = 8911 y = 9045 a = 9045 y = 9180 a = 9180 y = 9316 a = 9316 y = 9453 a = 9453 y = 9591 a = 9591 y = 9730 a = 9730 y = 9870 a = 9870 y = 10011 a = 10011 y = 10153 a = 10153 y = 10296 a = 10296 y = 10440 a = 10440 y = 10585 a = 10585 y = 10731 a = 10731 y = 10878 a = 10878 y = 11026 a = 11026 y = 11175 a = 11175 y = 11325 a = 11325 y = 11476 a = 11476 y = 11628 a = 11628 y = 11781 a = 11781 y = 11935 a = 11935 y = 12090 a = 12090 y = 12246 a = 12246 y = 12403 a = 12403 y = 12561 a = 12561 y = 12720 a = 12720 y = 12880 a = 12880 y = 13041 a = 13041 y = 13203 a = 13203 y = 13366 a = 13366 y = 13530 a = 13530 y = 13695 a = 13695 y = 13861 a = 13861 y = 14028 a = 14028 y = 14196 a = 14196 y = 14365 a = 14365 y = 14535 a = 14535 y = 14706 a = 14706 y = 14878 a = 14878 y = 15051 a = 15051 y = 15225 a = 15225 y = 15400 a = 15400 y = 15576 a = 15576 y = 15753 a = 15753 y = 15931 a = 15931 y = 16110 a = 16110 y = 16290 a = 16290 y = 16471 a = 16471 y = 16653 a = 16653 y = 16836 a = 16836 y = 17020 a = 17020 y = 17205 a = 17205 y = 17391 a = 17391 y = 17578 a = 17578 y = 17766 a = 17766 y = 17955 a = 17955 y = 18145 a = 18145 y = 18336 a = 18336 y = 18528 a = 18528 y = 18721 a = 18721 y = 18915 a = 18915 y = 19110 a = 19110 y = 19306 a = 19306 y = 19503 a = 19503 y = 19701 a = 19701 y = 19900 a = 19900 y = 20100 a = 20100 y = 20301 a = 20301 y = 20503 a = 20503 y = 20706 a = 20706 y = 20910 a = 20910 y = 21115 a = 21115 y = 21321 a = 21321 y = 21528 a = 21528 y = 21736 a = 21736 y = 21945 a = 21945 y = 22155 a = 22155 y = 22366 a = 22366 y = 22578 a = 22578 y = 22791 a = 22791 y = 23005 a = 23005 y = 23220 a = 23220 y = 23436 a = 23436 y = 23653 a = 23653 y = 23871 a = 23871 y = 24090 a = 24090 y = 24310 a = 24310 y = 24531 a = 24531 y = 24753 a = 24753 y = 24976 a = 24976 y = 25200 a = 25200 y = 25425 a = 25425 y = 25651 a = 25651 y = 25878 a = 25878 y = 26106 a = 26106 y = 26335 a = 26335 y = 26565 a = 26565 y = 26796 a = 26796 y = 27028 a = 27028 y = 27261 a = 27261 y = 27495 a = 27495 y = 27730 a = 27730 y = 27966 a = 27966 y = 28203 a = 28203 y = 28441 a = 28441 y = 28680 a = 28680 y = 28920 a = 28920 y = 29161 a = 29161 y = 29403 a = 29403 y = 29646 a = 29646 y = 29890 a = 29890 y = 30135 a = 30135 y = 30381 a = 30381 y = 30628 a = 30628 y = 30876 a = 30876 y = 31125 a = 31125 y = 31375 a = 31375 y = 31626 a = 31626 y = 31878 a = 31878 y = 32131 a = 32131 y = 32385 a = 32385 y = 32640 a = 32640 y = 32896 a = 32896 y = 33153 a = 33153 y = 33411 a = 33411 y = 33670 a = 33670 y = 33930 a = 33930 y = 34191 a = 34191 y = 34453 a = 34453 y = 34716 ...

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

y = 0 a = 0 y = 1 a = 1 y = 3 a = 3 y = 6 a = 6 y = 10 a = 10 y = 15 a = 15 y = 21 a = 21 y = 28 a = 28 y = 36 a = 36 y = 45 a = 45 y = 55 a = 55 y = 66 a = 66 y = 78 a = 78 y = 91 a = 91 y = 105 a = 105 y = 120 a = 120 y = 136 a = 136 y = 153 a = 153 y = 171 a = 171 y = 190 a = 190 y = 210 a = 210 y = 231 a = 231 y = 253 a = 253 y = 276 a = 276 y = 300 a = 300 y = 325 a = 325 y = 351 a = 351 y = 378 a = 378 y = 406 a = 406 y = 435 a = 435 y = 465 a = 465 y = 496 a = 496 y = 528 a = 528 y = 561 a = 561 y = 595 a = 595 y = 630 a = 630 y = 666 a = 666 y = 703 a = 703 y = 741 a = 741 y = 780 a = 780 y = 820 a = 820 y = 861 a = 861 y = 903 a = 903 y = 946 a = 946 y = 990 a = 990 y = 1035 a = 1035 y = 1081 a = 1081 y = 1128 a = 1128 y = 1176 a = 1176 y = 1225 a = 1225 y = 1275 a = 1275 y = 1326 a = 1326 y = 1378 a = 1378 y = 1431 a = 1431 y = 1485 a = 1485 y = 1540 a = 1540 y = 1596 a = 1596 y = 1653 a = 1653 y = 1711 a = 1711 y = 1770 a = 1770 y = 1830 a = 1830 y = 1891 a = 1891 y = 1953 a = 1953 y = 2016 a = 2016 y = 2080 a = 2080 y = 2145 a = 2145 y = 2211 a = 2211 y = 2278 a = 2278 y = 2346 a = 2346 y = 2415 a = 2415 y = 2485 a = 2485 y = 2556 a = 2556 y = 2628 a = 2628 y = 2701 a = 2701 y = 2775 a = 2775 y = 2850 a = 2850 y = 2926 a = 2926 y = 3003 a = 3003 y = 3081 a = 3081 y = 3160 a = 3160 y = 3240 a = 3240 y = 3321 a = 3321 y = 3403 a = 3403 y = 3486 a = 3486 y = 3570 a = 3570 y = 3655 a = 3655 y = 3741 a = 3741 y = 3828 a = 3828 y = 3916 a = 3916 y = 4005 a = 4005 y = 4095 a = 4095 y = 4186 a = 4186 y = 4278 a = 4278 y = 4371 a = 4371 y = 4465 a = 4465 y = 4560 a = 4560 y = 4656 a = 4656 y = 4753 a = 4753 y = 4851 a = 4851 y = 4950 a = 4950 y = 5050 a = 5050 y = 5151 a = 5151 y = 5253 a = 5253 y = 5356 a = 5356 y = 5460 a = 5460 y = 5565 a = 5565 y = 5671 a = 5671 y = 5778 a = 5778 y = 5886 a = 5886 y = 5995 a = 5995 y = 6105 a = 6105 y = 6216 a = 6216 y = 6328 a = 6328 y = 6441 a = 6441 y = 6555 a = 6555 y = 6670 a = 6670 y = 6786 a = 6786 y = 6903 a = 6903 y = 7021 a = 7021 y = 7140 a = 7140 y = 7260 a = 7260 y = 7381 a = 7381 y = 7503 a = 7503 y = 7626 a = 7626 y = 7750 a = 7750 y = 7875 a = 7875 y = 8001 a = 8001 y = 8128 a = 8128 y = 8256 a = 8256 y = 8385 a = 8385 y = 8515 a = 8515 y = 8646 a = 8646 y = 8778 a = 8778 y = 8911 a = 8911 y = 9045 a = 9045 y = 9180 a = 9180 y = 9316 a = 9316 y = 9453 a = 9453 y = 9591 a = 9591 y = 9730 a = 9730 y = 9870 a = 9870 y = 10011 a = 10011 y = 10153 a = 10153 y = 10296 a = 10296 y = 10440 a = 10440 y = 10585 a = 10585 y = 10731 a = 10731 y = 10878 a = 10878 y = 11026 a = 11026 y = 11175 a = 11175 y = 11325 a = 11325 y = 11476 a = 11476 y = 11628 a = 11628 y = 11781 a = 11781 y = 11935 a = 11935 y = 12090 a = 12090 y = 12246 a = 12246 y = 12403 a = 12403 y = 12561 a = 12561 y = 12720 a = 12720 y = 12880 a = 12880 y = 13041 a = 13041 y = 13203 a = 13203 y = 13366 a = 13366 y = 13530 a = 13530 y = 13695 a = 13695 y = 13861 a = 13861 y = 14028 a = 14028 y = 14196 a = 14196 y = 14365 a = 14365 y = 14535 a = 14535 y = 14706 a = 14706 y = 14878 a = 14878 y = 15051 a = 15051 y = 15225 a = 15225 y = 15400 a = 15400 y = 15576 a = 15576 y = 15753 a = 15753 y = 15931 a = 15931 y = 16110 a = 16110 y = 16290 a = 16290 y = 16471 a = 16471 y = 16653 a = 16653 y = 16836 a = 16836 y = 17020 a = 17020 y = 17205 a = 17205 y = 17391 a = 17391 y = 17578 a = 17578 y = 17766 a = 17766 y = 17955 a = 17955 y = 18145 a = 18145 y = 18336 a = 18336 y = 18528 a = 18528 y = 18721 a = 18721 y = 18915 a = 18915 y = 19110 a = 19110 y = 19306 a = 19306 y = 19503 a = 19503 y = 19701 a = 19701 y = 19900 a = 19900 y = 20100 a = 20100 y = 20301 a = 20301 y = 20503 a = 20503 y = 20706 a = 20706 y = 20910 a = 20910 y = 21115 a = 21115 y = 21321 a = 21321 y = 21528 a = 21528 y = 21736 a = 21736 y = 21945 a = 21945 y = 22155 a = 22155 y = 22366 a = 22366 y = 22578 a = 22578 y = 22791 a = 22791 y = 23005 a = 23005 y = 23220 a = 23220 y = 23436 a = 23436 y = 23653 a = 23653 y = 23871 a = 23871 y = 24090 a = 24090 y = 24310 a = 24310 y = 24531 a = 24531 y = 24753 a = 24753 y = 24976 a = 24976 y = 25200 a = 25200 y = 25425 a = 25425 y = 25651 a = 25651 y = 25878 a = 25878 y = 26106 a = 26106 y = 26335 a = 26335 y = 26565 a = 26565 y = 26796 a = 26796 y = 27028 a = 27028 y = 27261 a = 27261 y = 27495 a = 27495 y = 27730 a = 27730 y = 27966 a = 27966 y = 28203 a = 28203 y = 28441 a = 28441 y = 28680 a = 28680 y = 28920 a = 28920 y = 29161 a = 29161 y = 29403 a = 29403 y = 29646 a = 29646 y = 29890 a = 29890 y = 30135 a = 30135 y = 30381 a = 30381 y = 30628 a = 30628 y = 30876 a = 30876 y = 31125 a = 31125 y = 31375 a = 31375 y = 31626 a = 31626 y = 31878 a = 31878 y = 32131 a = 32131 y = 32385 a = 32385 y = 32640 a = 32640 y = 32896 a = 32896 y = 33153 a = 33153 y = 33411 a = 33411 y = 33670 a = 33670 y = 33930 a = 33930 y = 34191 a = 34191 y = 34453 a = 34453 y = 34716 ...

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

y = 0 a = 0 y = 1 a = 1 y = 3 a = 3 y = 6 a = 6 y = 10 a = 10 y = 15 a = 15 y = 21 a = 21 y = 28 a = 28 y = 36 a = 36 y = 45 a = 45 y = 55 a = 55 y = 66 a = 66 y = 78 a = 78 y = 91 a = 91 y = 105 a = 105 y = 120 a = 120 y = 136 a = 136 y = 153 a = 153 y = 171 a = 171 y = 190 a = 190 y = 210 a = 210 y = 231 a = 231 y = 253 a = 253 y = 276 a = 276 y = 300 a = 300 y = 325 a = 325 y = 351 a = 351 y = 378 a = 378 y = 406 a = 406 y = 435 a = 435 y = 465 a = 465 y = 496 a = 496 y = 528 a = 528 y = 561 a = 561 y = 595 a = 595 y = 630 a = 630 y = 666 a = 666 y = 703 a = 703 y = 741 a = 741 y = 780 a = 780 y = 820 a = 820 y = 861 a = 861 y = 903 a = 903 y = 946 a = 946 y = 990 a = 990 y = 1035 a = 1035 y = 1081 a = 1081 y = 1128 a = 1128 y = 1176 a = 1176 y = 1225 a = 1225 y = 1275 a = 1275 y = 1326 a = 1326 y = 1378 a = 1378 y = 1431 a = 1431 y = 1485 a = 1485 y = 1540 a = 1540 y = 1596 a = 1596 y = 1653 a = 1653 y = 1711 a = 1711 y = 1770 a = 1770 y = 1830 a = 1830 y = 1891 a = 1891 y = 1953 a = 1953 y = 2016 a = 2016 y = 2080 a = 2080 y = 2145 a = 2145 y = 2211 a = 2211 y = 2278 a = 2278 y = 2346 a = 2346 y = 2415 a = 2415 y = 2485 a = 2485 y = 2556 a = 2556 y = 2628 a = 2628 y = 2701 a = 2701 y = 2775 a = 2775 y = 2850 a = 2850 y = 2926 a = 2926 y = 3003 a = 3003 y = 3081 a = 3081 y = 3160 a = 3160 y = 3240 a = 3240 y = 3321 a = 3321 y = 3403 a = 3403 y = 3486 a = 3486 y = 3570 a = 3570 y = 3655 a = 3655 y = 3741 a = 3741 y = 3828 a = 3828 y = 3916 a = 3916 y = 4005 a = 4005 y = 4095 a = 4095 y = 4186 a = 4186 y = 4278 a = 4278 y = 4371 a = 4371 y = 4465 a = 4465 y = 4560 a = 4560 y = 4656 a = 4656 y = 4753 a = 4753 y = 4851 a = 4851 y = 4950 a = 4950 y = 5050 a = 5050 y = 5151 a = 5151 y = 5253 a = 5253 y = 5356 a = 5356 y = 5460 a = 5460 y = 5565 a = 5565 y = 5671 a = 5671 y = 5778 a = 5778 y = 5886 a = 5886 y = 5995 a = 5995 y = 6105 a = 6105 y = 6216 a = 6216 y = 6328 a = 6328 y = 6441 a = 6441 y = 6555 a = 6555 y = 6670 a = 6670 y = 6786 a = 6786 y = 6903 a = 6903 y = 7021 a = 7021 y = 7140 a = 7140 y = 7260 a = 7260 y = 7381 a = 7381 y = 7503 a = 7503 y = 7626 a = 7626 y = 7750 a = 7750 y = 7875 a = 7875 y = 8001 a = 8001 y = 8128 a = 8128 y = 8256 a = 8256 y = 8385 a = 8385 y = 8515 a = 8515 y = 8646 a = 8646 y = 8778 a = 8778 y = 8911 a = 8911 y = 9045 a = 9045 y = 9180 a = 9180 y = 9316 a = 9316 y = 9453 a = 9453 y = 9591 a = 9591 y = 9730 a = 9730 y = 9870 a = 9870 y = 10011 a = 10011 y = 10153 a = 10153 y = 10296 a = 10296 y = 10440 a = 10440 y = 10585 a = 10585 y = 10731 a = 10731 y = 10878 a = 10878 y = 11026 a = 11026 y = 11175 a = 11175 y = 11325 a = 11325 y = 11476 a = 11476 y = 11628 a = 11628 y = 11781 a = 11781 y = 11935 a = 11935 y = 12090 a = 12090 y = 12246 a = 12246 y = 12403 a = 12403 y = 12561 a = 12561 y = 12720 a = 12720 y = 12880 a = 12880 y = 13041 a = 13041 y = 13203 a = 13203 y = 13366 a = 13366 y = 13530 a = 13530 y = 13695 a = 13695 y = 13861 a = 13861 y = 14028 a = 14028 y = 14196 a = 14196 y = 14365 a = 14365 y = 14535 a = 14535 y = 14706 a = 14706 y = 14878 a = 14878 y = 15051 a = 15051 y = 15225 a = 15225 y = 15400 a = 15400 y = 15576 a = 15576 y = 15753 a = 15753 y = 15931 a = 15931 y = 16110 a = 16110 y = 16290 a = 16290 y = 16471 a = 16471 y = 16653 a = 16653 y = 16836 a = 16836 y = 17020 a = 17020 y = 17205 a = 17205 y = 17391 a = 17391 y = 17578 a = 17578 y = 17766 a = 17766 y = 17955 a = 17955 y = 18145 a = 18145 y = 18336 a = 18336 y = 18528 a = 18528 y = 18721 a = 18721 y = 18915 a = 18915 y = 19110 a = 19110 y = 19306 a = 19306 y = 19503 a = 19503 y = 19701 a = 19701 y = 19900 a = 19900 y = 20100 a = 20100 y = 20301 a = 20301 y = 20503 a = 20503 y = 20706 a = 20706 y = 20910 a = 20910 y = 21115 a = 21115 y = 21321 a = 21321 y = 21528 a = 21528 y = 21736 a = 21736 y = 21945 a = 21945 y = 22155 a = 22155 y = 22366 a = 22366 y = 22578 a = 22578 y = 22791 a = 22791 y = 23005 a = 23005 y = 23220 a = 23220 y = 23436 a = 23436 y = 23653 a = 23653 y = 23871 a = 23871 y = 24090 a = 24090 y = 24310 a = 24310 y = 24531 a = 24531 y = 24753 a = 24753 y = 24976 a = 24976 y = 25200 a = 25200 y = 25425 a = 25425 y = 25651 a = 25651 y = 25878 a = 25878 y = 26106 a = 26106 y = 26335 a = 26335 y = 26565 a = 26565 y = 26796 a = 26796 y = 27028 a = 27028 y = 27261 a = 27261 y = 27495 a = 27495 y = 27730 a = 27730 y = 27966 a = 27966 y = 28203 a = 28203 y = 28441 a = 28441 y = 28680 a = 28680 y = 28920 a = 28920 y = 29161 a = 29161 y = 29403 a = 29403 y = 29646 a = 29646 y = 29890 a = 29890 y = 30135 a = 30135 y = 30381 a = 30381 y = 30628 a = 30628 y = 30876 a = 30876 y = 31125 a = 31125 y = 31375 a = 31375 y = 31626 a = 31626 y = 31878 a = 31878 y = 32131 a = 32131 y = 32385 a = 32385 y = 32640 a = 32640 y = 32896 a = 32896 y = 33153 a = 33153 y = 33411 a = 33411 y = 33670 a = 33670 y = 33930 a = 33930 y = 34191 a = 34191 y = 34453 a = 34453 y = 34716 ...

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

y = 0 a = 0 y = 1 a = 1 y = 3 a = 3 y = 6 a = 6 y = 10 a = 10 y = 15 a = 15 y = 21 a = 21 y = 28 a = 28 y = 36 a = 36 y = 45 a = 45 y = 55 a = 55 y = 66 a = 66 y = 78 a = 78 y = 91 a = 91 y = 105 a = 105 y = 120 a = 120 y = 136 a = 136 y = 153 a = 153 y = 171 a = 171 y = 190 a = 190 y = 210 a = 210 y = 231 a = 231 y = 253 a = 253 y = 276 a = 276 y = 300 a = 300 y = 325 a = 325 y = 351 a = 351 y = 378 a = 378 y = 406 a = 406 y = 435 a = 435 y = 465 a = 465 y = 496 a = 496 y = 528 a = 528 y = 561 a = 561 y = 595 a = 595 y = 630 a = 630 y = 666 a = 666 y = 703 a = 703 y = 741 a = 741 y = 780 a = 780 y = 820 a = 820 y = 861 a = 861 y = 903 a = 903 y = 946 a = 946 y = 990 a = 990 y = 1035 a = 1035 y = 1081 a = 1081 y = 1128 a = 1128 y = 1176 a = 1176 y = 1225 a = 1225 y = 1275 a = 1275 y = 1326 a = 1326 y = 1378 a = 1378 y = 1431 a = 1431 y = 1485 a = 1485 y = 1540 a = 1540 y = 1596 a = 1596 y = 1653 a = 1653 y = 1711 a = 1711 y = 1770 a = 1770 y = 1830 a = 1830 y = 1891 a = 1891 y = 1953 a = 1953 y = 2016 a = 2016 y = 2080 a = 2080 y = 2145 a = 2145 y = 2211 a = 2211 y = 2278 a = 2278 y = 2346 a = 2346 y = 2415 a = 2415 y = 2485 a = 2485 y = 2556 a = 2556 y = 2628 a = 2628 y = 2701 a = 2701 y = 2775 a = 2775 y = 2850 a = 2850 y = 2926 a = 2926 y = 3003 a = 3003 y = 3081 a = 3081 y = 3160 a = 3160 y = 3240 a = 3240 y = 3321 a = 3321 y = 3403 a = 3403 y = 3486 a = 3486 y = 3570 a = 3570 y = 3655 a = 3655 y = 3741 a = 3741 y = 3828 a = 3828 y = 3916 a = 3916 y = 4005 a = 4005 y = 4095 a = 4095 y = 4186 a = 4186 y = 4278 a = 4278 y = 4371 a = 4371 y = 4465 a = 4465 y = 4560 a = 4560 y = 4656 a = 4656 y = 4753 a = 4753 y = 4851 a = 4851 y = 4950 a = 4950 y = 5050 a = 5050 y = 5151 a = 5151 y = 5253 a = 5253 y = 5356 a = 5356 y = 5460 a = 5460 y = 5565 a = 5565 y = 5671 a = 5671 y = 5778 a = 5778 y = 5886 a = 5886 y = 5995 a = 5995 y = 6105 a = 6105 y = 6216 a = 6216 y = 6328 a = 6328 y = 6441 a = 6441 y = 6555 a = 6555 y = 6670 a = 6670 y = 6786 a = 6786 y = 6903 a = 6903 y = 7021 a = 7021 y = 7140 a = 7140 y = 7260 a = 7260 y = 7381 a = 7381 y = 7503 a = 7503 y = 7626 a = 7626 y = 7750 a = 7750 y = 7875 a = 7875 y = 8001 a = 8001 y = 8128 a = 8128 y = 8256 a = 8256 y = 8385 a = 8385 y = 8515 a = 8515 y = 8646 a = 8646 y = 8778 a = 8778 y = 8911 a = 8911 y = 9045 a = 9045 y = 9180 a = 9180 y = 9316 a = 9316 y = 9453 a = 9453 y = 9591 a = 9591 y = 9730 a = 9730 y = 9870 a = 9870 y = 10011 a = 10011 y = 10153 a = 10153 y = 10296 a = 10296 y = 10440 a = 10440 y = 10585 a = 10585 y = 10731 a = 10731 y = 10878 a = 10878 y = 11026 a = 11026 y = 11175 a = 11175 y = 11325 a = 11325 y = 11476 a = 11476 y = 11628 a = 11628 y = 11781 a = 11781 y = 11935 a = 11935 y = 12090 a = 12090 y = 12246 a = 12246 y = 12403 a = 12403 y = 12561 a = 12561 y = 12720 a = 12720 y = 12880 a = 12880 y = 13041 a = 13041 y = 13203 a = 13203 y = 13366 a = 13366 y = 13530 a = 13530 y = 13695 a = 13695 y = 13861 a = 13861 y = 14028 a = 14028 y = 14196 a = 14196 y = 14365 a = 14365 y = 14535 a = 14535 y = 14706 a = 14706 y = 14878 a = 14878 y = 15051 a = 15051 y = 15225 a = 15225 y = 15400 a = 15400 y = 15576 a = 15576 y = 15753 a = 15753 y = 15931 a = 15931 y = 16110 a = 16110 y = 16290 a = 16290 y = 16471 a = 16471 y = 16653 a = 16653 y = 16836 a = 16836 y = 17020 a = 17020 y = 17205 a = 17205 y = 17391 a = 17391 y = 17578 a = 17578 y = 17766 a = 17766 y = 17955 a = 17955 y = 18145 a = 18145 y = 18336 a = 18336 y = 18528 a = 18528 y = 18721 a = 18721 y = 18915 a = 18915 y = 19110 a = 19110 y = 19306 a = 19306 y = 19503 a = 19503 y = 19701 a = 19701 y = 19900 a = 19900 y = 20100 a = 20100 y = 20301 a = 20301 y = 20503 a = 20503 y = 20706 a = 20706 y = 20910 a = 20910 y = 21115 a = 21115 y = 21321 a = 21321 y = 21528 a = 21528 y = 21736 a = 21736 y = 21945 a = 21945 y = 22155 a = 22155 y = 22366 a = 22366 y = 22578 a = 22578 y = 22791 a = 22791 y = 23005 a = 23005 y = 23220 a = 23220 y = 23436 a = 23436 y = 23653 a = 23653 y = 23871 a = 23871 y = 24090 a = 24090 y = 24310 a = 24310 y = 24531 a = 24531 y = 24753 a = 24753 y = 24976 a = 24976 y = 25200 a = 25200 y = 25425 a = 25425 y = 25651 a = 25651 y = 25878 a = 25878 y = 26106 a = 26106 y = 26335 a = 26335 y = 26565 a = 26565 y = 26796 a = 26796 y = 27028 a = 27028 y = 27261 a = 27261 y = 27495 a = 27495 y = 27730 a = 27730 y = 27966 a = 27966 y = 28203 a = 28203 y = 28441 a = 28441 y = 28680 a = 28680 y = 28920 a = 28920 y = 29161 a = 29161 y = 29403 a = 29403 y = 29646 a = 29646 y = 29890 a = 29890 y = 30135 a = 30135 y = 30381 a = 30381 y = 30628 a = 30628 y = 30876 a = 30876 y = 31125 a = 31125 y = 31375 a = 31375 y = 31626 a = 31626 y = 31878 a = 31878 y = 32131 a = 32131 y = 32385 a = 32385 y = 32640 a = 32640 y = 32896 a = 32896 y = 33153 a = 33153 y = 33411 a = 33411 y = 33670 a = 33670 y = 33930 a = 33930 y = 34191 a = 34191 y = 34453 a = 34453 y = 34716 ...