Cody

Problem 44337. Sums of Distinct Powers

Solution 1389169

Submitted on 21 Dec 2017
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
base=4;nstart=2;nend=6;y_correct=62; assert(isequal(sum_distinct_powers(base,nstart,nend),y_correct))

s = 10 v = 0 v = 4 y = 4 s = 11 v = 1 v = 5 y = 9 s = 100 v = 0 v = 0 v = 16 y = 25 s = 101 v = 1 v = 1 v = 17 y = 42 s = 110 v = 0 v = 4 v = 20 y = 62

2   Fail
base=5;nstart=1;nend=1000;y_correct=1193853250; assert(isequal(sum_distinct_powers(base,nstart,nend),y_correct))

s = 1 v = 1 y = 1 s = 10 v = 0 v = 4 y = 5 s = 11 v = 1 v = 5 y = 10 s = 100 v = 0 v = 0 v = 16 y = 26 s = 101 v = 1 v = 1 v = 17 y = 43 s = 110 v = 0 v = 4 v = 20 y = 63 s = 111 v = 1 v = 5 v = 21 y = 84 s = 1000 v = 0 v = 0 v = 0 v = 64 y = 148 s = 1001 v = 1 v = 1 v = 1 v = 65 y = 213 s = 1010 v = 0 v = 4 v = 4 v = 68 y = 281 s = 1011 v = 1 v = 5 v = 5 v = 69 y = 350 s = 1100 v = 0 v = 0 v = 16 v = 80 y = 430 s = 1101 v = 1 v = 1 v = 17 v = 81 y = 511 s = 1110 v = 0 v = 4 v = 20 v = 84 y = 595 s = 1111 v = 1 v = 5 v = 21 v = 85 y = 680 s = 10000 v = 0 v = 0 v = 0 v = 0 v = 256 y = 936 s = 10001 v = 1 v = 1 v = 1 v = 1 v = 257 y = 1193 s = 10010 v = 0 v = 4 v = 4 v = 4 v = 260 y = 1453 s = 10011 v = 1 v = 5 v = 5 v = 5 v = 261 y = 1714 s = 10100 v = 0 v = 0 v = 16 v = 16 v = 272 y = 1986 s = 10101 v = 1 v = 1 v = 17 v = 17 v = 273 y = 2259 s = 10110 v = 0 v = 4 v = 20 v = 20 v = 276 y = 2535 s = 10111 v = 1 v = 5 v = 21 v = 21 v = 277 y = 2812 s = 11000 v = 0 v = 0 v = 0 v = 64 v = 320 y = 3132 s = 11001 v = 1 v = 1 v = 1 v = 65 v = 321 y = 3453 s = 11010 v = 0 v = 4 v = 4 v = 68 v = 324 y = 3777 s = 11011 v = 1 v = 5 v = 5 v = 69 v = 325 y = 4102 s = 11100 v = 0 v = 0 v = 16 v = 80 v = 336 y = 4438 s = 11101 v = 1 v = 1 v = 17 v = 81 v = 337 y = 4775 s = 11110 v = 0 v = 4 v = 20 v = 84 v = 340 y = 5115 s = 11111 v = 1 v = 5 v = 21 v = 85 v = 341 y = 5456 s = 100000 v = 0 v = 0 v = 0 v = 0 v = 0 v = 1024 y = 6480 s = 100001 v = 1 v = 1 v = 1 v = 1 v = 1 v = 1025 y = 7505 s = 100010 v = 0 v = 4 v = 4 v = 4 v = 4 v = 1028 y = 8533 s = 100011 v = 1 v = 5 v = 5 v = 5 v = 5 v = 1029 y = 9562 s = 100100 v = 0 v = 0 v = 16 v = 16 v = 16 v = 1040 y = 10602 s = 100101 v = 1 v = 1 v = 17 v = 17 v = 17 v = 1041 y = 11643 s = 100110 v = 0 v = 4 v = 20 v = 20 v = 20 v = 1044 y = 12687 s = 100111 v = 1 v = 5 v = 21 v = 21 v = 21 v = 1045 y = 13732 s = 101000 v = 0 v = 0 v = 0 v = 64 v = 64 v = 1088 y = 14820 s = 101001 v = 1 v = 1 v = 1 v = 65 v = 65 v = 1089 y = 15909 s = 101010 v = 0 v = 4 v = 4 v = 68 v = 68 v = 1092 y = 17001 s = 101011 v = 1 v = 5 v = 5 v = 69 v = 69 v = 1093 y = 18094 s = 101100 v = 0 v = 0 v = 16 v = 80 v = 80 v = 1104 y = 19198 s = 101101 v = 1 v = 1 v = 17 v = 81 v = 81 v = 1105 y = 20303 s = 101110 v = 0 v = 4 v = 20 v = 84 v = 84 v = 1108 y = 21411 s = 101111 v = 1 v = 5 v = 21 v = 85 v = 85 v = 1109 y = 22520 s = 110000 v = 0 v = 0 v = 0 v = 0 v = 256 v = 1280 y = 23800 s = 110001 v = 1 v = 1 v = 1 v = 1 v = 257 v = 1281 y = 25081 s = 110010 v = 0 v = 4 v = 4 v = 4 v = 260 v = 1284 y = 26365 s = 110011 v = 1 v = 5 v = 5 v = 5 v = 261 v = 1285 y = 27650 s = 110100 v = 0 v = 0 v = 16 v = 16 v = 272 v = 1296 y = 28946 s = 110101 v = 1 v = 1 v = 17 v = 17 v = 273 v = 1297 y = 30243 s = 110110 v = 0 v = 4 v = 20 v = 20 v = 276 v = 1300 y = 31543 s = 110111 v = 1 v = 5 v = 21 v = 21 v = 277 v = 1301 y = 32844 s = 111000 v = 0 v = 0 v = 0 v = 64 v = 320 v = 1344 y = 34188 s = 111001 v = 1 v = 1 v = 1 v = 65 v = 321 v = 1345 y = 35533 s = 111010 v = 0 v = 4 v = 4 v = 68 v = 324 v = 1348 y = 36881 s = 111011 v = 1 v = 5 v = 5 v = 69 v = 325 v = 1349 y = 38230 s = 111100 v = 0 v = 0 v = 16 v = 80 v = 336 v = 1360 y = 39590 s = 111101 v = 1 v = 1 v = 17 v = 81 v = 337 v = 1361 y = 40951 s = 111110 v = 0 v = 4 v = 20 v = 84 v = 340 v = 1364 y = 42315 s = 111111 v = 1 v = 5 v = 21 v = 85 v = 341 v = 1365 y = 43680 s = 1000000 v = 0 v = 0 v = 0 v = 0 v = 0 v = 0 v = 4096 y = 47776 s = 1000001 v = 1 v = 1 v = 1 v = 1 v = 1 v = 1 v = 4097 y = 51873 s = 1000010 v = 0 v = 4 v = 4 v = 4 v = 4 v = 4 v = 4100 y = 55973 s = 1000011 v = 1 v = 5 v = 5 v = 5 v = 5 v = 5 v = 4101 y = 60074 s = 1000100 v = 0 v = 0 v = 16 v = 16 v = 16 v = 16 v = 4112 y = 64186 s = 1000101 v = 1 v = 1 v = 17 v = 17 v = 17 v = 17 v = 4113 y = 68299 s = 1000110 v = 0 v = 4 v = 20 v = 20 v = 20 v = 20 v = 4116 y = 72415 s = 1000111 v = 1 v = 5 v = 21 v = 21 v = 21 v = 21 v = 4117 y = 76532 s = 1001000 v = 0 v = 0 v = 0 v = 64 v = 64 v = 64 v = 4160 y = 80692 s = 1001001 v = 1 v = 1 v = 1 v = 65 v = 65 v = 65 v = 4161 y = 84853 s = 1001010 v = 0 v = 4 v = 4 v = 68 v = 68 v = 68 v = 4164 y = 89017 s = 1001011 v = 1 v = 5 v = 5 v = 69 v = 69 v = 69 v = 4165 y = 93182 s = 1001100 v = 0 v = 0 v = 16 v = 80 v = 80 v = 80 v = 4176 y = 97358 s = 1001101 v = 1 v = 1 v = 17 v = 81 v = 81 v = 81 v = 4177 y = 101535 s = 1001110 v = 0 v = 4 v = 20 v = 84 v = 84 v = 84 v = 4180 y = 105715 s = 1001111 v = 1 v = 5 v = 21 v = 85 v = 85 v = 85 v = 4181 y = 109896 s = 1010000 v = 0 v = 0 v = 0 v = 0 v = 256 v = 256 v = 4352 y = 114248 s = 1010001 v = 1 v = 1 v = 1 v = 1 v = 257 v = 257 v = 4353 y = 118601 s = 1010010 v = 0 v = 4 v = 4 v = 4 v = 260 v = 260 v = 4356 y = 122957 s = 1010011 v = 1 v = 5 v = 5 v = 5 v = 261 v = 261 v = 4357 y = 127314 s = 1010100 v = 0 v = 0 v = ...

Assertion failed.

3   Fail
base=3;nstart=1;nend=1000;y_correct=14438162; assert(isequal(sum_distinct_powers(base,nstart,nend),y_correct))

s = 1 v = 1 y = 1 s = 10 v = 0 v = 4 y = 5 s = 11 v = 1 v = 5 y = 10 s = 100 v = 0 v = 0 v = 16 y = 26 s = 101 v = 1 v = 1 v = 17 y = 43 s = 110 v = 0 v = 4 v = 20 y = 63 s = 111 v = 1 v = 5 v = 21 y = 84 s = 1000 v = 0 v = 0 v = 0 v = 64 y = 148 s = 1001 v = 1 v = 1 v = 1 v = 65 y = 213 s = 1010 v = 0 v = 4 v = 4 v = 68 y = 281 s = 1011 v = 1 v = 5 v = 5 v = 69 y = 350 s = 1100 v = 0 v = 0 v = 16 v = 80 y = 430 s = 1101 v = 1 v = 1 v = 17 v = 81 y = 511 s = 1110 v = 0 v = 4 v = 20 v = 84 y = 595 s = 1111 v = 1 v = 5 v = 21 v = 85 y = 680 s = 10000 v = 0 v = 0 v = 0 v = 0 v = 256 y = 936 s = 10001 v = 1 v = 1 v = 1 v = 1 v = 257 y = 1193 s = 10010 v = 0 v = 4 v = 4 v = 4 v = 260 y = 1453 s = 10011 v = 1 v = 5 v = 5 v = 5 v = 261 y = 1714 s = 10100 v = 0 v = 0 v = 16 v = 16 v = 272 y = 1986 s = 10101 v = 1 v = 1 v = 17 v = 17 v = 273 y = 2259 s = 10110 v = 0 v = 4 v = 20 v = 20 v = 276 y = 2535 s = 10111 v = 1 v = 5 v = 21 v = 21 v = 277 y = 2812 s = 11000 v = 0 v = 0 v = 0 v = 64 v = 320 y = 3132 s = 11001 v = 1 v = 1 v = 1 v = 65 v = 321 y = 3453 s = 11010 v = 0 v = 4 v = 4 v = 68 v = 324 y = 3777 s = 11011 v = 1 v = 5 v = 5 v = 69 v = 325 y = 4102 s = 11100 v = 0 v = 0 v = 16 v = 80 v = 336 y = 4438 s = 11101 v = 1 v = 1 v = 17 v = 81 v = 337 y = 4775 s = 11110 v = 0 v = 4 v = 20 v = 84 v = 340 y = 5115 s = 11111 v = 1 v = 5 v = 21 v = 85 v = 341 y = 5456 s = 100000 v = 0 v = 0 v = 0 v = 0 v = 0 v = 1024 y = 6480 s = 100001 v = 1 v = 1 v = 1 v = 1 v = 1 v = 1025 y = 7505 s = 100010 v = 0 v = 4 v = 4 v = 4 v = 4 v = 1028 y = 8533 s = 100011 v = 1 v = 5 v = 5 v = 5 v = 5 v = 1029 y = 9562 s = 100100 v = 0 v = 0 v = 16 v = 16 v = 16 v = 1040 y = 10602 s = 100101 v = 1 v = 1 v = 17 v = 17 v = 17 v = 1041 y = 11643 s = 100110 v = 0 v = 4 v = 20 v = 20 v = 20 v = 1044 y = 12687 s = 100111 v = 1 v = 5 v = 21 v = 21 v = 21 v = 1045 y = 13732 s = 101000 v = 0 v = 0 v = 0 v = 64 v = 64 v = 1088 y = 14820 s = 101001 v = 1 v = 1 v = 1 v = 65 v = 65 v = 1089 y = 15909 s = 101010 v = 0 v = 4 v = 4 v = 68 v = 68 v = 1092 y = 17001 s = 101011 v = 1 v = 5 v = 5 v = 69 v = 69 v = 1093 y = 18094 s = 101100 v = 0 v = 0 v = 16 v = 80 v = 80 v = 1104 y = 19198 s = 101101 v = 1 v = 1 v = 17 v = 81 v = 81 v = 1105 y = 20303 s = 101110 v = 0 v = 4 v = 20 v = 84 v = 84 v = 1108 y = 21411 s = 101111 v = 1 v = 5 v = 21 v = 85 v = 85 v = 1109 y = 22520 s = 110000 v = 0 v = 0 v = 0 v = 0 v = 256 v = 1280 y = 23800 s = 110001 v = 1 v = 1 v = 1 v = 1 v = 257 v = 1281 y = 25081 s = 110010 v = 0 v = 4 v = 4 v = 4 v = 260 v = 1284 y = 26365 s = 110011 v = 1 v = 5 v = 5 v = 5 v = 261 v = 1285 y = 27650 s = 110100 v = 0 v = 0 v = 16 v = 16 v = 272 v = 1296 y = 28946 s = 110101 v = 1 v = 1 v = 17 v = 17 v = 273 v = 1297 y = 30243 s = 110110 v = 0 v = 4 v = 20 v = 20 v = 276 v = 1300 y = 31543 s = 110111 v = 1 v = 5 v = 21 v = 21 v = 277 v = 1301 y = 32844 s = 111000 v = 0 v = 0 v = 0 v = 64 v = 320 v = 1344 y = 34188 s = 111001 v = 1 v = 1 v = 1 v = 65 v = 321 v = 1345 y = 35533 s = 111010 v = 0 v = 4 v = 4 v = 68 v = 324 v = 1348 y = 36881 s = 111011 v = 1 v = 5 v = 5 v = 69 v = 325 v = 1349 y = 38230 s = 111100 v = 0 v = 0 v = 16 v = 80 v = 336 v = 1360 y = 39590 s = 111101 v = 1 v = 1 v = 17 v = 81 v = 337 v = 1361 y = 40951 s = 111110 v = 0 v = 4 v = 20 v = 84 v = 340 v = 1364 y = 42315 s = 111111 v = 1 v = 5 v = 21 v = 85 v = 341 v = 1365 y = 43680 s = 1000000 v = 0 v = 0 v = 0 v = 0 v = 0 v = 0 v = 4096 y = 47776 s = 1000001 v = 1 v = 1 v = 1 v = 1 v = 1 v = 1 v = 4097 y = 51873 s = 1000010 v = 0 v = 4 v = 4 v = 4 v = 4 v = 4 v = 4100 y = 55973 s = 1000011 v = 1 v = 5 v = 5 v = 5 v = 5 v = 5 v = 4101 y = 60074 s = 1000100 v = 0 v = 0 v = 16 v = 16 v = 16 v = 16 v = 4112 y = 64186 s = 1000101 v = 1 v = 1 v = 17 v = 17 v = 17 v = 17 v = 4113 y = 68299 s = 1000110 v = 0 v = 4 v = 20 v = 20 v = 20 v = 20 v = 4116 y = 72415 s = 1000111 v = 1 v = 5 v = 21 v = 21 v = 21 v = 21 v = 4117 y = 76532 s = 1001000 v = 0 v = 0 v = 0 v = 64 v = 64 v = 64 v = 4160 y = 80692 s = 1001001 v = 1 v = 1 v = 1 v = 65 v = 65 v = 65 v = 4161 y = 84853 s = 1001010 v = 0 v = 4 v = 4 v = 68 v = 68 v = 68 v = 4164 y = 89017 s = 1001011 v = 1 v = 5 v = 5 v = 69 v = 69 v = 69 v = 4165 y = 93182 s = 1001100 v = 0 v = 0 v = 16 v = 80 v = 80 v = 80 v = 4176 y = 97358 s = 1001101 v = 1 v = 1 v = 17 v = 81 v = 81 v = 81 v = 4177 y = 101535 s = 1001110 v = 0 v = 4 v = 20 v = 84 v = 84 v = 84 v = 4180 y = 105715 s = 1001111 v = 1 v = 5 v = 21 v = 85 v = 85 v = 85 v = 4181 y = 109896 s = 1010000 v = 0 v = 0 v = 0 v = 0 v = 256 v = 256 v = 4352 y = 114248 s = 1010001 v = 1 v = 1 v = 1 v = 1 v = 257 v = 257 v = 4353 y = 118601 s = 1010010 v = 0 v = 4 v = 4 v = 4 v = 260 v = 260 v = 4356 y = 122957 s = 1010011 v = 1 v = 5 v = 5 v = 5 v = 261 v = 261 v = 4357 y = 127314 s = 1010100 v = 0 v = 0 v = ...

Assertion failed.

4   Fail
base=3;nstart=100;nend=1000;y_correct=14397354; assert(isequal(sum_distinct_powers(base,nstart,nend),y_correct))

s = 1100100 v = 0 v = 0 v = 16 v = 16 v = 16 v = 1040 v = 5136 y = 5136 s = 1100101 v = 1 v = 1 v = 17 v = 17 v = 17 v = 1041 v = 5137 y = 10273 s = 1100110 v = 0 v = 4 v = 20 v = 20 v = 20 v = 1044 v = 5140 y = 15413 s = 1100111 v = 1 v = 5 v = 21 v = 21 v = 21 v = 1045 v = 5141 y = 20554 s = 1101000 v = 0 v = 0 v = 0 v = 64 v = 64 v = 1088 v = 5184 y = 25738 s = 1101001 v = 1 v = 1 v = 1 v = 65 v = 65 v = 1089 v = 5185 y = 30923 s = 1101010 v = 0 v = 4 v = 4 v = 68 v = 68 v = 1092 v = 5188 y = 36111 s = 1101011 v = 1 v = 5 v = 5 v = 69 v = 69 v = 1093 v = 5189 y = 41300 s = 1101100 v = 0 v = 0 v = 16 v = 80 v = 80 v = 1104 v = 5200 y = 46500 s = 1101101 v = 1 v = 1 v = 17 v = 81 v = 81 v = 1105 v = 5201 y = 51701 s = 1101110 v = 0 v = 4 v = 20 v = 84 v = 84 v = 1108 v = 5204 y = 56905 s = 1101111 v = 1 v = 5 v = 21 v = 85 v = 85 v = 1109 v = 5205 y = 62110 s = 1110000 v = 0 v = 0 v = 0 v = 0 v = 256 v = 1280 v = 5376 y = 67486 s = 1110001 v = 1 v = 1 v = 1 v = 1 v = 257 v = 1281 v = 5377 y = 72863 s = 1110010 v = 0 v = 4 v = 4 v = 4 v = 260 v = 1284 v = 5380 y = 78243 s = 1110011 v = 1 v = 5 v = 5 v = 5 v = 261 v = 1285 v = 5381 y = 83624 s = 1110100 v = 0 v = 0 v = 16 v = 16 v = 272 v = 1296 v = 5392 y = 89016 s = 1110101 v = 1 v = 1 v = 17 v = 17 v = 273 v = 1297 v = 5393 y = 94409 s = 1110110 v = 0 v = 4 v = 20 v = 20 v = 276 v = 1300 v = 5396 y = 99805 s = 1110111 v = 1 v = 5 v = 21 v = 21 v = 277 v = 1301 v = 5397 y = 105202 s = 1111000 v = 0 v = 0 v = 0 v = 64 v = 320 v = 1344 v = 5440 y = 110642 s = 1111001 v = 1 v = 1 v = 1 v = 65 v = 321 v = 1345 v = 5441 y = 116083 s = 1111010 v = 0 v = 4 v = 4 v = 68 v = 324 v = 1348 v = 5444 y = 121527 s = 1111011 v = 1 v = 5 v = 5 v = 69 v = 325 v = 1349 v = 5445 y = 126972 s = 1111100 v = 0 v = 0 v = 16 v = 80 v = 336 v = 1360 v = 5456 y = 132428 s = 1111101 v = 1 v = 1 v = 17 v = 81 v = 337 v = 1361 v = 5457 y = 137885 s = 1111110 v = 0 v = 4 v = 20 v = 84 v = 340 v = 1364 v = 5460 y = 143345 s = 1111111 v = 1 v = 5 v = 21 v = 85 v = 341 v = 1365 v = 5461 y = 148806 s = 10000000 v = 0 v = 0 v = 0 v = 0 v = 0 v = 0 v = 0 v = 16384 y = 165190 s = 10000001 v = 1 v = 1 v = 1 v = 1 v = 1 v = 1 v = 1 v = 16385 y = 181575 s = 10000010 v = 0 v = 4 v = 4 v = 4 v = 4 v = 4 v = 4 v = 16388 y = 197963 s = 10000011 v = 1 v = 5 v = 5 v = 5 v = 5 v = 5 v = 5 v = 16389 y = 214352 s = 10000100 v = 0 v = 0 v = 16 v = 16 v = 16 v = 16 v = 16 v = 16400 y = 230752 s = 10000101 v = 1 v = 1 v = 17 v = 17 v = 17 v = 17 v = 17 v = 16401 y = 247153 s = 10000110 v = 0 v = 4 v = 20 v = 20 v = 20 v = 20 v = 20 v = 16404 y = 263557 s = 10000111 v = 1 v = 5 v = 21 v = 21 v = 21 v = 21 v = 21 v = 16405 y = 279962 s = 10001000 v = 0 v = 0 v = 0 v = 64 v = 64 v = 64 v = 64 v = 16448 y = 296410 s = 10001001 v = 1 v = 1 v = 1 v = 65 v = 65 v = 65 v = 65 v = 16449 y = 312859 s = 10001010 v = 0 v = 4 v = 4 v = 68 v = 68 v = 68 v = 68 v = 16452 y = 329311 s = 10001011 v = 1 v = 5 v = 5 v = 69 v = 69 v = 69 v = 69 v = 16453 y = 345764 s = 10001100 v = 0 v = 0 v = 16 v = 80 v = 80 v = 80 v = 80 v = 16464 y = 362228 s = 10001101 v = 1 v = 1 v = 17 v = 81 v = 81 v = 81 v = 81 v = 16465 y = 378693 s = 10001110 v = 0 v = 4 v = 20 v = 84 v = 84 v = 84 v = 84 v = 16468 y = 395161 s = 10001111 v = 1 v = 5 v = 21 v = 85 v = 85 v = 85 v = 85 v = 16469 y = 411630 s = 10010000 v = 0 v = 0 v = 0 v = 0 v = 256 v = 256 v = 256 v = 16640 y = 428270 s = 10010001 v = 1 v = 1 v = 1 v = 1 v = 257 v = 257 v = 257 v = 16641 y = 444911 s = 10010010 v = 0 v = 4 v = 4 v = 4 v = 260 v = 260 v = 260 v = 16644 y = 461555 s = 10010011 v = 1 v = 5 v = 5 v = 5 v = 261 v = 261 v = 261 v = 16645 y = 478200 s = 10010100 v = 0 v = 0 v = 16 v = 16 v = 272 v = 272 v = 272 v = 16656 y = 494856 s = 10010101 v = 1 v = 1 v = 17 v = 17 v = 273 v = 273 v = 273 v = 16657 y = 511513 s = 10010110 v = 0 v = 4 v = 20 v = 20 v = 276 v = 276 v = 276 v = 16660 y = 528173 s = 10010111 v = 1 v = 5 v = 21 v = 21 v = 277 v = 277 v = 277 v = 16661 y = 544834 s = 10011000 v = 0 v = 0 v = 0 v = 64 v = 320 v = 320 v = 320 v = 16704 y = 561538 s = 10011001 v = 1 v = 1 v = 1 v = 65 v = 321 v = 321 v = 321 v = 16705 y = 578243 s = 10011010 v = 0 v = 4 v = 4 v = 68 v = 324 v = 324 v = 324 v = 16708 y = 594951 s = 10011011 v = 1 v = 5 v = 5 v = 69 v = 325 v = 325 v = 325 v = 16709 y = 611660 s = 10011100 v = 0 v = 0 v = 16 v = 80 v = 336 v = 336 v = 336 v = 16720 y = 628380 s = 10011101 v = 1 v = 1 v = 17 v = 81 v = 337 v = 337 v = 337 v = 16721 y = 645101 s = 10011110 v = 0 v = 4 v = 20 v = 84 v = 340 v = 340 v = 340 v = 16724 y = 661825 s = 10011111 v = 1 v = 5 v = 21 v = 85 v = 341 v = 341 v = 341 v = 16725 y = 678550 s = 10100000 v = 0 v = 0 v = 0 v = 0 v = 0 v = 1024 v = 1024 v = 17408 y = 695958 s = 10100001 v = 1 v = 1 v = 1 v = 1 v = 1 v = 1025 v = 1025 v = 17409 y = 713367 s = 10100010 v = 0 v = 4 v = 4 v = 4 v = 4 v = 1028 v = 1028 v = 17412 y = 730779 s = 10100011 v = 1 v = 5 v = 5 v = 5 v = 5 v = 1029 v = 1029 v = 17413 y = 748192 s = 10100100 v = 0 v = 0 v = 16 v ...

Assertion failed.

5   Fail
base=2;nstart=1;nend=2017;y_correct=2035153; assert(isequal(sum_distinct_powers(base,nstart,nend),y_correct))

s = 1 v = 1 y = 1 s = 10 v = 0 v = 4 y = 5 s = 11 v = 1 v = 5 y = 10 s = 100 v = 0 v = 0 v = 16 y = 26 s = 101 v = 1 v = 1 v = 17 y = 43 s = 110 v = 0 v = 4 v = 20 y = 63 s = 111 v = 1 v = 5 v = 21 y = 84 s = 1000 v = 0 v = 0 v = 0 v = 64 y = 148 s = 1001 v = 1 v = 1 v = 1 v = 65 y = 213 s = 1010 v = 0 v = 4 v = 4 v = 68 y = 281 s = 1011 v = 1 v = 5 v = 5 v = 69 y = 350 s = 1100 v = 0 v = 0 v = 16 v = 80 y = 430 s = 1101 v = 1 v = 1 v = 17 v = 81 y = 511 s = 1110 v = 0 v = 4 v = 20 v = 84 y = 595 s = 1111 v = 1 v = 5 v = 21 v = 85 y = 680 s = 10000 v = 0 v = 0 v = 0 v = 0 v = 256 y = 936 s = 10001 v = 1 v = 1 v = 1 v = 1 v = 257 y = 1193 s = 10010 v = 0 v = 4 v = 4 v = 4 v = 260 y = 1453 s = 10011 v = 1 v = 5 v = 5 v = 5 v = 261 y = 1714 s = 10100 v = 0 v = 0 v = 16 v = 16 v = 272 y = 1986 s = 10101 v = 1 v = 1 v = 17 v = 17 v = 273 y = 2259 s = 10110 v = 0 v = 4 v = 20 v = 20 v = 276 y = 2535 s = 10111 v = 1 v = 5 v = 21 v = 21 v = 277 y = 2812 s = 11000 v = 0 v = 0 v = 0 v = 64 v = 320 y = 3132 s = 11001 v = 1 v = 1 v = 1 v = 65 v = 321 y = 3453 s = 11010 v = 0 v = 4 v = 4 v = 68 v = 324 y = 3777 s = 11011 v = 1 v = 5 v = 5 v = 69 v = 325 y = 4102 s = 11100 v = 0 v = 0 v = 16 v = 80 v = 336 y = 4438 s = 11101 v = 1 v = 1 v = 17 v = 81 v = 337 y = 4775 s = 11110 v = 0 v = 4 v = 20 v = 84 v = 340 y = 5115 s = 11111 v = 1 v = 5 v = 21 v = 85 v = 341 y = 5456 s = 100000 v = 0 v = 0 v = 0 v = 0 v = 0 v = 1024 y = 6480 s = 100001 v = 1 v = 1 v = 1 v = 1 v = 1 v = 1025 y = 7505 s = 100010 v = 0 v = 4 v = 4 v = 4 v = 4 v = 1028 y = 8533 s = 100011 v = 1 v = 5 v = 5 v = 5 v = 5 v = 1029 y = 9562 s = 100100 v = 0 v = 0 v = 16 v = 16 v = 16 v = 1040 y = 10602 s = 100101 v = 1 v = 1 v = 17 v = 17 v = 17 v = 1041 y = 11643 s = 100110 v = 0 v = 4 v = 20 v = 20 v = 20 v = 1044 y = 12687 s = 100111 v = 1 v = 5 v = 21 v = 21 v = 21 v = 1045 y = 13732 s = 101000 v = 0 v = 0 v = 0 v = 64 v = 64 v = 1088 y = 14820 s = 101001 v = 1 v = 1 v = 1 v = 65 v = 65 v = 1089 y = 15909 s = 101010 v = 0 v = 4 v = 4 v = 68 v = 68 v = 1092 y = 17001 s = 101011 v = 1 v = 5 v = 5 v = 69 v = 69 v = 1093 y = 18094 s = 101100 v = 0 v = 0 v = 16 v = 80 v = 80 v = 1104 y = 19198 s = 101101 v = 1 v = 1 v = 17 v = 81 v = 81 v = 1105 y = 20303 s = 101110 v = 0 v = 4 v = 20 v = 84 v = 84 v = 1108 y = 21411 s = 101111 v = 1 v = 5 v = 21 v = 85 v = 85 v = 1109 y = 22520 s = 110000 v = 0 v = 0 v = 0 v = 0 v = 256 v = 1280 y = 23800 s = 110001 v = 1 v = 1 v = 1 v = 1 v = 257 v = 1281 y = 25081 s = 110010 v = 0 v = 4 v = 4 v = 4 v = 260 v = 1284 y = 26365 s = 110011 v = 1 v = 5 v = 5 v = 5 v = 261 v = 1285 y = 27650 s = 110100 v = 0 v = 0 v = 16 v = 16 v = 272 v = 1296 y = 28946 s = 110101 v = 1 v = 1 v = 17 v = 17 v = 273 v = 1297 y = 30243 s = 110110 v = 0 v = 4 v = 20 v = 20 v = 276 v = 1300 y = 31543 s = 110111 v = 1 v = 5 v = 21 v = 21 v = 277 v = 1301 y = 32844 s = 111000 v = 0 v = 0 v = 0 v = 64 v = 320 v = 1344 y = 34188 s = 111001 v = 1 v = 1 v = 1 v = 65 v = 321 v = 1345 y = 35533 s = 111010 v = 0 v = 4 v = 4 v = 68 v = 324 v = 1348 y = 36881 s = 111011 v = 1 v = 5 v = 5 v = 69 v = 325 v = 1349 y = 38230 s = 111100 v = 0 v = 0 v = 16 v = 80 v = 336 v = 1360 y = 39590 s = 111101 v = 1 v = 1 v = 17 v = 81 v = 337 v = 1361 y = 40951 s = 111110 v = 0 v = 4 v = 20 v = 84 v = 340 v = 1364 y = 42315 s = 111111 v = 1 v = 5 v = 21 v = 85 v = 341 v = 1365 y = 43680 s = 1000000 v = 0 v = 0 v = 0 v = 0 v = 0 v = 0 v = 4096 y = 47776 s = 1000001 v = 1 v = 1 v = 1 v = 1 v = 1 v = 1 v = 4097 y = 51873 s = 1000010 v = 0 v = 4 v = 4 v = 4 v = 4 v = 4 v = 4100 y = 55973 s = 1000011 v = 1 v = 5 v = 5 v = 5 v = 5 v = 5 v = 4101 y = 60074 s = 1000100 v = 0 v = 0 v = 16 v = 16 v = 16 v = 16 v = 4112 y = 64186 s = 1000101 v = 1 v = 1 v = 17 v = 17 v = 17 v = 17 v = 4113 y = 68299 s = 1000110 v = 0 v = 4 v = 20 v = 20 v = 20 v = 20 v = 4116 y = 72415 s = 1000111 v = 1 v = 5 v = 21 v = 21 v = 21 v = 21 v = 4117 y = 76532 s = 1001000 v = 0 v = 0 v = 0 v = 64 v = 64 v = 64 v = 4160 y = 80692 s = 1001001 v = 1 v = 1 v = 1 v = 65 v = 65 v = 65 v = 4161 y = 84853 s = 1001010 v = 0 v = 4 v = 4 v = 68 v = 68 v = 68 v = 4164 y = 89017 s = 1001011 v = 1 v = 5 v = 5 v = 69 v = 69 v = 69 v = 4165 y = 93182 s = 1001100 v = 0 v = 0 v = 16 v = 80 v = 80 v = 80 v = 4176 y = 97358 s = 1001101 v = 1 v = 1 v = 17 v = 81 v = 81 v = 81 v = 4177 y = 101535 s = 1001110 v = 0 v = 4 v = 20 v = 84 v = 84 v = 84 v = 4180 y = 105715 s = 1001111 v = 1 v = 5 v = 21 v = 85 v = 85 v = 85 v = 4181 y = 109896 s = 1010000 v = 0 v = 0 v = 0 v = 0 v = 256 v = 256 v = 4352 y = 114248 s = 1010001 v = 1 v = 1 v = 1 v = 1 v = 257 v = 257 v = 4353 y = 118601 s = 1010010 v = 0 v = 4 v = 4 v = 4 v = 260 v = 260 v = 4356 y = 122957 s = 1010011 v = 1 v = 5 v = 5 v = 5 v = 261 v = 261 v = 4357 y = 127314 s = 1010100 v = 0 v = 0 v = ...

Assertion failed.

6   Fail
base=7;nstart=1234;nend=2345;y_correct=843569026324; assert(isequal(sum_distinct_powers(base,nstart,nend),y_correct))

s = 1.0011e+10 v = 0 v = 4 v = 4 v = 4 v = 260 v = 260 v = 4356 v = 20740 v = 20740 v = 20740 v = 1069316 y = 1069316 s = 1.0011e+10 v = 1 v = 5 v = 5 v = 5 v = 261 v = 261 v = 4357 v = 20741 v = 20741 v = 20741 v = 1069317 y = 2138633 s = 1.0011e+10 v = 0 v = 0 v = 16 v = 16 v = 272 v = 272 v = 4368 v = 20752 v = 20752 v = 20752 v = 1069328 y = 3207961 s = 1.0011e+10 v = 1 v = 1 v = 17 v = 17 v = 273 v = 273 v = 4369 v = 20753 v = 20753 v = 20753 v = 1069329 y = 4277290 s = 1.0011e+10 v = 0 v = 4 v = 20 v = 20 v = 276 v = 276 v = 4372 v = 20756 v = 20756 v = 20756 v = 1069332 y = 5346622 s = 1.0011e+10 v = 1 v = 5 v = 21 v = 21 v = 277 v = 277 v = 4373 v = 20757 v = 20757 v = 20757 v = 1069333 y = 6415955 s = 1.0011e+10 v = 0 v = 0 v = 0 v = 64 v = 320 v = 320 v = 4416 v = 20800 v = 20800 v = 20800 v = 1069376 y = 7485331 s = 1.0011e+10 v = 1 v = 1 v = 1 v = 65 v = 321 v = 321 v = 4417 v = 20801 v = 20801 v = 20801 v = 1069377 y = 8554708 s = 1.0011e+10 v = 0 v = 4 v = 4 v = 68 v = 324 v = 324 v = 4420 v = 20804 v = 20804 v = 20804 v = 1069380 y = 9624088 s = 1.0011e+10 v = 1 v = 5 v = 5 v = 69 v = 325 v = 325 v = 4421 v = 20805 v = 20805 v = 20805 v = 1069381 y = 10693469 s = 1.0011e+10 v = 0 v = 0 v = 16 v = 80 v = 336 v = 336 v = 4432 v = 20816 v = 20816 v = 20816 v = 1069392 y = 11762861 s = 1.0011e+10 v = 1 v = 1 v = 17 v = 81 v = 337 v = 337 v = 4433 v = 20817 v = 20817 v = 20817 v = 1069393 y = 12832254 s = 1.0011e+10 v = 0 v = 4 v = 20 v = 84 v = 340 v = 340 v = 4436 v = 20820 v = 20820 v = 20820 v = 1069396 y = 13901650 s = 1.0011e+10 v = 1 v = 5 v = 21 v = 85 v = 341 v = 341 v = 4437 v = 20821 v = 20821 v = 20821 v = 1069397 y = 14971047 s = 1.0011e+10 v = 0 v = 0 v = 0 v = 0 v = 0 v = 1024 v = 5120 v = 21504 v = 21504 v = 21504 v = 1070080 y = 16041127 s = 1.0011e+10 v = 1 v = 1 v = 1 v = 1 v = 1 v = 1025 v = 5121 v = 21505 v = 21505 v = 21505 v = 1070081 y = 17111208 s = 1.0011e+10 v = 0 v = 4 v = 4 v = 4 v = 4 v = 1028 v = 5124 v = 21508 v = 21508 v = 21508 v = 1070084 y = 18181292 s = 1.0011e+10 v = 1 v = 5 v = 5 v = 5 v = 5 v = 1029 v = 5125 v = 21509 v = 21509 v = 21509 v = 1070085 y = 19251377 s = 1.0011e+10 v = 0 v = 0 v = 16 v = 16 v = 16 v = 1040 v = 5136 v = 21520 v = 21520 v = 21520 v = 1070096 y = 20321473 s = 1.0011e+10 v = 1 v = 1 v = 17 v = 17 v = 17 v = 1041 v = 5137 v = 21521 v = 21521 v = 21521 v = 1070097 y = 21391570 s = 1.0011e+10 v = 0 v = 4 v = 20 v = 20 v = 20 v = 1044 v = 5140 v = 21524 v = 21524 v = 21524 v = 1070100 y = 22461670 s = 1.0011e+10 v = 1 v = 5 v = 21 v = 21 v = 21 v = 1045 v = 5141 v = 21525 v = 21525 v = 21525 v = 1070101 y = 23531771 s = 1.0011e+10 v = 0 v = 0 v = 0 v = 64 v = 64 v = 1088 v = 5184 v = 21568 v = 21568 v = 21568 v = 1070144 y = 24601915 s = 1.0011e+10 v = 1 v = 1 v = 1 v = 65 v = 65 v = 1089 v = 5185 v = 21569 v = 21569 v = 21569 v = 1070145 y = 25672060 s = 1.0011e+10 v = 0 v = 4 v = 4 v = 68 v = 68 v = 1092 v = 5188 v = 21572 v = 21572 v = 21572 v = 1070148 y = 26742208 s = 1.0011e+10 v = 1 v = 5 v = 5 v = 69 v = 69 v = 1093 v = 5189 v = 21573 v = 21573 v = 21573 v = 1070149 y = 27812357 s = 1.0011e+10 v = 0 v = 0 v = 16 v = 80 v = 80 v = 1104 v = 5200 v = 21584 v = 21584 v = 21584 v = 1070160 y = 28882517 s = 1.0011e+10 v = 1 v = 1 v = 17 v = 81 v = 81 v = 1105 v = 5201 v = 21585 v = 21585 v = 21585 v = 1070161 y = 29952678 s = 1.0011e+10 v = 0 v = 4 v = 20 v = 84 v = 84 v = 1108 v = 5204 v = 21588 v = 21588 v = 21588 v = 1070164 y = 31022842 s = 1.0011e+10 v = 1 v = 5 v = 21 v = 85 v = 85 v = 1109 v = 5205 v = 21589 v = 21589 v = 21589 v = 1070165 y = 32093007 s = 1.0011e+10 v = 0 v = 0 v = 0 v = 0 v = 256 v = 1280 v = 5376 v = 21760 v = 21760 v = 21760 v = 1070336 y = 33163343 s = 1.0011e+10 v = 1 v = 1 v = 1 v = 1 v = 257 v = 1281 v = 5377 v = 21761 v = 21761 v = 21761 v = 1070337 y = 34233680 s = 1.0011e+10 v = 0 v = 4 v = 4 v = 4 v = 260 v = 1284 v = 5380 v = 21764 v = 21764 v = 21764 v = 1070340 y = 35304020 s = 1.0011e+10 v = 1 v = 5 v = 5 v = 5 v = 261 v = 1285 v = 5381 v = 21765 v = 21765 v = 21765 v = 1070341 y = 36374361 s = 1.0011e+10 v = 0 v = 0 v = 16 v = 16 v = 272 v = 1296 v = 5392 v = 21776 v = 21776 v = 21776 v = 1070352 y = 37444713 s = 1.0011e+10 v = 1 v = 1 v = 17 v = 17 v = 273 v = 1297 v = 5393 v = 21777 v = 21777 v = 21777 v = 1070353 y = 38515066 s = 1.0011e+10 v = 0 v = 4 v = 20 v = 20 v = 276 v = 1300 v = 5396 v = 21780 v = 21780 v = 21780 v = 1070356 y = 39585422 s = 1.0011e+10 v = 1 v = 5 v = 21 v = 21 v = 277 v = 1301 v = 5397 v = 21781 v = 21781 v = 21781 v = 1070357 y = 40655779 s = 1.0011e+10 v = 0 v = 0 v = 0 v = 64 v = 320 v = 1344 v = 5440 v = 21824 v = 21824 v = 21824 v = 1070400 y = 41726179 s = 1.0011e+10 v = 1 v = 1 v = 1 v = 65 v = 321 v = 1345 v = 5441 v = 21825 v = 21825 v = 21825 v = 1070401 y = 42796580 s = 1.0011e+10 v = 0 v = 4 v = 4 v = 68 v = 324 v = 1348 v = 5444 v = 21828 v = 21828 v = 21828 v = 1070404 y = 43866984 s = 1.0011e+10 v = 1 v = 5 v = 5 v = 69 v = 325 v = 1349 v = 5445 v = 21829 v = 21829 v = 21829 v = 1070405 y = 44937389 s = 1.0011e+10 v = 0 v = 0 v = 16 v = 80 v = 336 v = 1360 v = 5456 v = 21840 v = 21840 v = 21840 v = 1070416 y = 46007805 s = 1.0011e+10 v = 1 v = 1 v = 17 v = 81 v = 337 v = 1361 v = 5457 v = 21841 ...

Assertion failed.

7   Fail
base=7;nstart=1;nend=10;y_correct=1265; assert(isequal(sum_distinct_powers(base,nstart,nend),y_correct))

s = 1 v = 1 y = 1 s = 10 v = 0 v = 4 y = 5 s = 11 v = 1 v = 5 y = 10 s = 100 v = 0 v = 0 v = 16 y = 26 s = 101 v = 1 v = 1 v = 17 y = 43 s = 110 v = 0 v = 4 v = 20 y = 63 s = 111 v = 1 v = 5 v = 21 y = 84 s = 1000 v = 0 v = 0 v = 0 v = 64 y = 148 s = 1001 v = 1 v = 1 v = 1 v = 65 y = 213 s = 1010 v = 0 v = 4 v = 4 v = 68 y = 281

Assertion failed.

8   Fail
nstart=1;nend=50; junk=arrayfun(@(base) sum_distinct_powers(base,nstart,nend),2:10); y_correct=[1275 7120 26365 75000 178591 374560 714465 1266280 2116675]; assert(isequal(junk,y_correct))

s = 1 v = 1 y = 1 s = 10 v = 0 v = 4 y = 5 s = 11 v = 1 v = 5 y = 10 s = 100 v = 0 v = 0 v = 16 y = 26 s = 101 v = 1 v = 1 v = 17 y = 43 s = 110 v = 0 v = 4 v = 20 y = 63 s = 111 v = 1 v = 5 v = 21 y = 84 s = 1000 v = 0 v = 0 v = 0 v = 64 y = 148 s = 1001 v = 1 v = 1 v = 1 v = 65 y = 213 s = 1010 v = 0 v = 4 v = 4 v = 68 y = 281 s = 1011 v = 1 v = 5 v = 5 v = 69 y = 350 s = 1100 v = 0 v = 0 v = 16 v = 80 y = 430 s = 1101 v = 1 v = 1 v = 17 v = 81 y = 511 s = 1110 v = 0 v = 4 v = 20 v = 84 y = 595 s = 1111 v = 1 v = 5 v = 21 v = 85 y = 680 s = 10000 v = 0 v = 0 v = 0 v = 0 v = 256 y = 936 s = 10001 v = 1 v = 1 v = 1 v = 1 v = 257 y = 1193 s = 10010 v = 0 v = 4 v = 4 v = 4 v = 260 y = 1453 s = 10011 v = 1 v = 5 v = 5 v = 5 v = 261 y = 1714 s = 10100 v = 0 v = 0 v = 16 v = 16 v = 272 y = 1986 s = 10101 v = 1 v = 1 v = 17 v = 17 v = 273 y = 2259 s = 10110 v = 0 v = 4 v = 20 v = 20 v = 276 y = 2535 s = 10111 v = 1 v = 5 v = 21 v = 21 v = 277 y = 2812 s = 11000 v = 0 v = 0 v = 0 v = 64 v = 320 y = 3132 s = 11001 v = 1 v = 1 v = 1 v = 65 v = 321 y = 3453 s = 11010 v = 0 v = 4 v = 4 v = 68 v = 324 y = 3777 s = 11011 v = 1 v = 5 v = 5 v = 69 v = 325 y = 4102 s = 11100 v = 0 v = 0 v = 16 v = 80 v = 336 y = 4438 s = 11101 v = 1 v = 1 v = 17 v = 81 v = 337 y = 4775 s = 11110 v = 0 v = 4 v = 20 v = 84 v = 340 y = 5115 s = 11111 v = 1 v = 5 v = 21 v = 85 v = 341 y = 5456 s = 100000 v = 0 v = 0 v = 0 v = 0 v = 0 v = 1024 y = 6480 s = 100001 v = 1 v = 1 v = 1 v = 1 v = 1 v = 1025 y = 7505 s = 100010 v = 0 v = 4 v = 4 v = 4 v = 4 v = 1028 y = 8533 s = 100011 v = 1 v = 5 v = 5 v = 5 v = 5 v = 1029 y = 9562 s = 100100 v = 0 v = 0 v = 16 v = 16 v = 16 v = 1040 y = 10602 s = 100101 v = 1 v = 1 v = 17 v = 17 v = 17 v = 1041 y = 11643 s = 100110 v = 0 v = 4 v = 20 v = 20 v = 20 v = 1044 y = 12687 s = 100111 v = 1 v = 5 v = 21 v = 21 v = 21 v = 1045 y = 13732 s = 101000 v = 0 v = 0 v = 0 v = 64 v = 64 v = 1088 y = 14820 s = 101001 v = 1 v = 1 v = 1 v = 65 v = 65 v = 1089 y = 15909 s = 101010 v = 0 v = 4 v = 4 v = 68 v = 68 v = 1092 y = 17001 s = 101011 v = 1 v = 5 v = 5 v = 69 v = 69 v = 1093 y = 18094 s = 101100 v = 0 v = 0 v = 16 v = 80 v = 80 v = 1104 y = 19198 s = 101101 v = 1 v = 1 v = 17 v = 81 v = 81 v = 1105 y = 20303 s = 101110 v = 0 v = 4 v = 20 v = 84 v = 84 v = 1108 y = 21411 s = 101111 v = 1 v = 5 v = 21 v = 85 v = 85 v = 1109 y = 22520 s = 110000 v = 0 v = 0 v = 0 v = 0 v = 256 v = 1280 y = 23800 s = 110001 v = 1 v = 1 v = 1 v = 1 v = 257 v = 1281 y = 25081 s = 110010 v = 0 v = 4 v = 4 v = 4 v = 260 v = 1284 y = 26365 s = 1 v = 1 y = 1 s = 10 v = 0 v = 4 y = 5 s = 11 v = 1 v = 5 y = 10 s = 100 v = 0 v = 0 v = 16 y = 26 s = 101 v = 1 v = 1 v = 17 y = 43 s = 110 v = 0 v = 4 v = 20 y = 63 s = 111 v = 1 v = 5 v = 21 y = 84 s = 1000 v = 0 v = 0 v = 0 v = 64 y = 148 s = 1001 v = 1 v = 1 v = 1 v = 65 y = 213 s = 1010 v = 0 v = 4 v = 4 v = 68 y = 281 s = 1011 v = 1 v = 5 v = 5 v = 69 y = 350 s = 1100 v = 0 v = 0 v = 16 v = 80 y = 430 s = 1101 v = 1 v = 1 v = 17 v = 81 y = 511 s = 1110 v = 0 v = 4 v = 20 v = 84 y = 595 s = 1111 v = 1 v = 5 v = 21 v = 85 y = 680 s = 10000 v = 0 v = 0 v = 0 v = 0 v = 256 y = 936 s = 10001 v = 1 v = 1 v = 1 v = 1 v = 257 y = 1193 s = 10010 v = 0 v = 4 v = 4 v = 4 v = 260 y = 1453 s = 10011 v = 1 v = 5 v = 5 v = 5 v = 261 y = 1714 s = 10100 v = 0 v = 0 v = 16 v = 16 v = 272 y = 1986 s = 10101 v = 1 v = 1 v = 17 v = 17 v = 273 y = 2259 s = 10110 v = 0 v = 4 v = 20 v = 20 v = 276 y = 2535 s = 10111 v = 1 v = 5 v = 21 v = 21 v = 277 y = 2812 s = 11000 v = 0 v = 0 v = 0 v = 64 v = 320 y = 3132 s = 11001 v = 1 v = 1 v = 1 v = 65 v = 321 y = 3453 s = 11010 v = 0 v = 4 v = 4 v = 68 v = 324 y = 3777 s = 11011 v = 1 v = 5 v = 5 v = 69 v = 325 y = 4102 s = 11100 v = 0 v = 0 v = 16 v = 80 v = 336 y = 4438 s = 11101 v = 1 v = 1 v = 17 v = 81 v = 337 y = 4775 s = 11110 v = 0 v = 4 v = 20 v = 84 v = 340 y = 5115 s = 11111 v = 1 v = 5 v = 21 v = 85 v = 341 y = 5456 s = 100000 v = 0 v = 0 v = 0 v = 0 v = 0 v = 1024 y = 6480 s = 100001 v = 1 v = 1 v = 1 v = 1 v = 1 v = 1025 y = 7505 s = 100010 v = 0 v = 4 v = 4 v = 4 v = 4 v = 1028 y = 8533 s = 100011 v = 1 v = 5 v = 5 v = 5 v = 5 v = 1029 y = 9562 s = 100100 v = 0 v = 0 v = 16 v = 16 v = 16 v = 1040 y = 10602 s = 100101 v = 1 v = 1 v = 17 v = 17 v = 17 v = 1041 y = 11643 s = 100110 v = 0 v = 4 v = 20 v = 20 v = 20 v = 1044 y = 12687 s = 100111 v = 1 v = 5 v = 21 v = 21 v = 21 v = 1045 y = 13732 s = 101000 v = 0 v = 0 v = 0 v = 64 v = 64 v = 1088 y = 14820 s = 101001 v = 1 v = 1 v = 1 v = 65 v = 65 v = 1089 y = 15909 s = 101010 v = 0 v = 4 v = 4 v = 68 v = 68 v = 1092 y = 17001 s = 101011 v = 1 v = 5 v = 5 v = 69 v = 69 v = 1093 y = 18094 s = 101100 v = 0 v = 0 v = 16 v = 80 v = 80 v = 1104 y = 19198 s = 101101 v = ...

Assertion failed.