Cody

Solution 1360037

Submitted on 28 Nov 2017 by Svyatoslav Golousov
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))

t = '10' y = 4 t = '11' y = 9 t = '100' y = 25 t = '101' y = 42 t = '110' y = 62

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

t = '1' y = 1 t = '10' y = 6 t = '11' y = 12 t = '100' y = 37 t = '101' y = 63 t = '110' y = 93 t = '111' y = 124 t = '1000' y = 249 t = '1001' y = 375 t = '1010' y = 505 t = '1011' y = 636 t = '1100' y = 786 t = '1101' y = 937 t = '1110' y = 1092 t = '1111' y = 1248 t = '10000' y = 1873 t = '10001' y = 2499 t = '10010' y = 3129 t = '10011' y = 3760 t = '10100' y = 4410 t = '10101' y = 5061 t = '10110' y = 5716 t = '10111' y = 6372 t = '11000' y = 7122 t = '11001' y = 7873 t = '11010' y = 8628 t = '11011' y = 9384 t = '11100' y = 10159 t = '11101' y = 10935 t = '11110' y = 11715 t = '11111' y = 12496 t = '100000' y = 15621 t = '100001' y = 18747 t = '100010' y = 21877 t = '100011' y = 25008 t = '100100' y = 28158 t = '100101' y = 31309 t = '100110' y = 34464 t = '100111' y = 37620 t = '101000' y = 40870 t = '101001' y = 44121 t = '101010' y = 47376 t = '101011' y = 50632 t = '101100' y = 53907 t = '101101' y = 57183 t = '101110' y = 60463 t = '101111' y = 63744 t = '110000' y = 67494 t = '110001' y = 71245 t = '110010' y = 75000 t = '110011' y = 78756 t = '110100' y = 82531 t = '110101' y = 86307 t = '110110' y = 90087 t = '110111' y = 93868 t = '111000' y = 97743 t = '111001' y = 101619 t = '111010' y = 105499 t = '111011' y = 109380 t = '111100' y = 113280 t = '111101' y = 117181 t = '111110' y = 121086 t = '111111' y = 124992 t = '1000000' y = 140617 t = '1000001' y = 156243 t = '1000010' y = 171873 t = '1000011' y = 187504 t = '1000100' y = 203154 t = '1000101' y = 218805 t = '1000110' y = 234460 t = '1000111' y = 250116 t = '1001000' y = 265866 t = '1001001' y = 281617 t = '1001010' y = 297372 t = '1001011' y = 313128 t = '1001100' y = 328903 t = '1001101' y = 344679 t = '1001110' y = 360459 t = '1001111' y = 376240 t = '1010000' y = 392490 t = '1010001' y = 408741 t = '1010010' y = 424996 t = '1010011' y = 441252 t = '1010100' y = 457527 t = '1010101' y = 473803 t = '1010110' y = 490083 t = '1010111' y = 506364 t = '1011000' y = 522739 t = '1011001' y = 539115 t = '1011010' y = 555495 t = '1011011' y = 571876 t = '1011100' y = 588276 t = '1011101' y = 604677 t = '1011110' y = 621082 t = '1011111' y = 637488 t = '1100000' y = 656238 t = '1100001' y = 674989 t = '1100010' y = 693744 t = '1100011' y = 712500 t = '1100100' y = 731275 t = '1100101' y = 750051 t = '1100110' y = 768831 t = '1100111' y = 787612 t = '1101000' y = 806487 t = '1101001' y = 825363 t = '1101010' y = 844243 t = '1101011' y = 863124 t = '1101100' y = 882024 t = '1101101' y = 900925 t = '1101110' y = 919830 t = '1101111' y = 938736 t = '1110000' y = 958111 t = '1110001' y = 977487 t = '1110010' y = 996867 t = '1110011' y = 1016248 t = '1110100' y = 1035648 t = '1110101' y = 1055049 t = '1110110' y = 1074454 t = '1110111' y = 1093860 t = '1111000' y = 1113360 t = '1111001' y = 1132861 t = '1111010' y = 1152366 t = '1111011' y = 1171872 t = '1111100' y = 1191397 t = '1111101' y = 1210923 t = '1111110' y = 1230453 t = '1111111' y = 1249984 t = '10000000' y = 1328109 t = '10000001' y = 1406235 t = '10000010' y = 1484365 t = '10000011' y = 1562496 t = '10000100' y = 1640646 t = '10000101' y = 1718797 t = '10000110' y = 1796952 t = '10000111' y = 1875108 t = '10001000' y = 1953358 t = '10001001' y = 2031609 t = '10001010' y = 2109864 t = '10001011' y = 2188120 t = '10001100' y = 2266395 t = '10001101' y = 2344671 t = '10001110' y = 2422951 t = '10001111' y = 2501232 t = '10010000' y = 2579982 t = '10010001' y = 2658733 t = '10010010' y = 2737488 t = '10010011' y = 2816244 t = '10010100' y = 2895019 t = '10010101' y = 2973795 t = '10010110' y = 3052575 t = '10010111' y = 3131356 t = '10011000' y = 3210231 t = '10011001' y = 3289107 t = '10011010' y = 3367987 t = '10011011' y = 3446868 t = '10011100' y = 3525768 t = '10011101' y = 3604669 t = '10011110' y = 3683574 t = '10011111' y = 3762480 t = '10100000' y = 3843730 t = '10100001' y = 3924981 t = '10100010' y = 4006236 t = '10100011' y = 4087492 t = '10100100' y = 4168767 t = '10100101' y = 4250043 t = '10100110' y = 4331323 t = '10100111' y = 4412604 t = '10101000' y = 4493979 t = '10101001' y = 4575355 t = '10101010' y = 4656735 t = '10101011' y = 4738116 t = '10101100' y = 4819516 t = '10101101' y = 4900917 t = '10101110' y = 4982322 t = '10101111' y = 5063728 t = '10110000' y = 5145603 t = '10110001' y = 5227479 t = '10110010' y = 5309359 t = '10110011' y = 5391240 t = '10110100' y = 5473140 t = '10110101' y = 5555041 t = '10110110' y = 5636946 t = '10110111' y = 5718852 t = '10111000' y = 5800852 t = '10111001' y = 5882853 t = '10111010' y = 5964858 t = '10111011' y = 6046864 t = '10111100' y = 6128889 t = '10111101' y = 6210915 t = '10111110' y = 6292945 t = '10111111' y = 6374976 t = '11000000' y = 6468726 t = '11000001' y = 6562477 t = '11000010' y = 6656232 t = '11000011' y = 6749988 t = '11000100' y = 6843763 t = '11000101' y = 6937539 t = '11000110' y = 7031319 t = '11000111' y = 7125100 t = '11001000' y = 7218975 t = '11001001' y = 7312851 t = '11001010' y = 7406731 t = '11001011' y = 7500612 t = '11001100' y = 7594512 t = '11001101' y = 7688413 t = '11001110' y = 7782318 t = '11001111' y = 7876224 t = '11010000' y = 7970599 t = '11010001' y = 8064975 t = '11010010' y = 8159355 t = '11010011' y = 8253736 t = '11010100' y = 8348136 t = '11010101' y = 8442537 t = '11010110' y = 8536942 t = '11010111' y = 8631348 t = '11011000' y = 8725848 t = '11011001' y = 8820349 t = '11011010' y = 8914854 t = '11011011' y = 9009360 t = '11011100' y = 9103885 t = '11011101' y = 9198411 t = '11011110' y = 9292941 t = '11011111' y = 9387472 t = '11100000' y = 9484347 t = '11100001' y = 9581223 t = '11100010' y = 9678103 t = '11100011' y = 9774984 t = '11100100' y = 9871884 t = '11100101' y = 9968785 t = '11100110' y = 10065690 t = '11100111' y = 10162596 t = '11101000' y = 10259596 t = '11101001' y = 10356597 t = '11101010' y = 10453602 t = '11101011' y = 10550608 t = '11101100' y = 10647633 t = '11101101' y = 10744659 t = '11101110' y = 10841689 t = '11101111' y = 10938720 t = '11110000' y = 11036220 t = '11110001' y = 11133721 t = '11110010' y = 11231226 t = '11110011' y = 11328732 t = '11110100' y = 11426257 t = '11110101' y = 11523783 t = '11110110' y = 1162...

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

t = '1' y = 1 t = '10' y = 4 t = '11' y = 8 t = '100' y = 17 t = '101' y = 27 t = '110' y = 39 t = '111' y = 52 t = '1000' y = 79 t = '1001' y = 107 t = '1010' y = 137 t = '1011' y = 168 t = '1100' y = 204 t = '1101' y = 241 t = '1110' y = 280 t = '1111' y = 320 t = '10000' y = 401 t = '10001' y = 483 t = '10010' y = 567 t = '10011' y = 652 t = '10100' y = 742 t = '10101' y = 833 t = '10110' y = 926 t = '10111' y = 1020 t = '11000' y = 1128 t = '11001' y = 1237 t = '11010' y = 1348 t = '11011' y = 1460 t = '11100' y = 1577 t = '11101' y = 1695 t = '11110' y = 1815 t = '11111' y = 1936 t = '100000' y = 2179 t = '100001' y = 2423 t = '100010' y = 2669 t = '100011' y = 2916 t = '100100' y = 3168 t = '100101' y = 3421 t = '100110' y = 3676 t = '100111' y = 3932 t = '101000' y = 4202 t = '101001' y = 4473 t = '101010' y = 4746 t = '101011' y = 5020 t = '101100' y = 5299 t = '101101' y = 5579 t = '101110' y = 5861 t = '101111' y = 6144 t = '110000' y = 6468 t = '110001' y = 6793 t = '110010' y = 7120 t = '110011' y = 7448 t = '110100' y = 7781 t = '110101' y = 8115 t = '110110' y = 8451 t = '110111' y = 8788 t = '111000' y = 9139 t = '111001' y = 9491 t = '111010' y = 9845 t = '111011' y = 10200 t = '111100' y = 10560 t = '111101' y = 10921 t = '111110' y = 11284 t = '111111' y = 11648 t = '1000000' y = 12377 t = '1000001' y = 13107 t = '1000010' y = 13839 t = '1000011' y = 14572 t = '1000100' y = 15310 t = '1000101' y = 16049 t = '1000110' y = 16790 t = '1000111' y = 17532 t = '1001000' y = 18288 t = '1001001' y = 19045 t = '1001010' y = 19804 t = '1001011' y = 20564 t = '1001100' y = 21329 t = '1001101' y = 22095 t = '1001110' y = 22863 t = '1001111' y = 23632 t = '1010000' y = 24442 t = '1010001' y = 25253 t = '1010010' y = 26066 t = '1010011' y = 26880 t = '1010100' y = 27699 t = '1010101' y = 28519 t = '1010110' y = 29341 t = '1010111' y = 30164 t = '1011000' y = 31001 t = '1011001' y = 31839 t = '1011010' y = 32679 t = '1011011' y = 33520 t = '1011100' y = 34366 t = '1011101' y = 35213 t = '1011110' y = 36062 t = '1011111' y = 36912 t = '1100000' y = 37884 t = '1100001' y = 38857 t = '1100010' y = 39832 t = '1100011' y = 40808 t = '1100100' y = 41789 t = '1100101' y = 42771 t = '1100110' y = 43755 t = '1100111' y = 44740 t = '1101000' y = 45739 t = '1101001' y = 46739 t = '1101010' y = 47741 t = '1101011' y = 48744 t = '1101100' y = 49752 t = '1101101' y = 50761 t = '1101110' y = 51772 t = '1101111' y = 52784 t = '1110000' y = 53837 t = '1110001' y = 54891 t = '1110010' y = 55947 t = '1110011' y = 57004 t = '1110100' y = 58066 t = '1110101' y = 59129 t = '1110110' y = 60194 t = '1110111' y = 61260 t = '1111000' y = 62340 t = '1111001' y = 63421 t = '1111010' y = 64504 t = '1111011' y = 65588 t = '1111100' y = 66677 t = '1111101' y = 67767 t = '1111110' y = 68859 t = '1111111' y = 69952 t = '10000000' y = 72139 t = '10000001' y = 74327 t = '10000010' y = 76517 t = '10000011' y = 78708 t = '10000100' y = 80904 t = '10000101' y = 83101 t = '10000110' y = 85300 t = '10000111' y = 87500 t = '10001000' y = 89714 t = '10001001' y = 91929 t = '10001010' y = 94146 t = '10001011' y = 96364 t = '10001100' y = 98587 t = '10001101' y = 100811 t = '10001110' y = 103037 t = '10001111' y = 105264 t = '10010000' y = 107532 t = '10010001' y = 109801 t = '10010010' y = 112072 t = '10010011' y = 114344 t = '10010100' y = 116621 t = '10010101' y = 118899 t = '10010110' y = 121179 t = '10010111' y = 123460 t = '10011000' y = 125755 t = '10011001' y = 128051 t = '10011010' y = 130349 t = '10011011' y = 132648 t = '10011100' y = 134952 t = '10011101' y = 137257 t = '10011110' y = 139564 t = '10011111' y = 141872 t = '10100000' y = 144302 t = '10100001' y = 146733 t = '10100010' y = 149166 t = '10100011' y = 151600 t = '10100100' y = 154039 t = '10100101' y = 156479 t = '10100110' y = 158921 t = '10100111' y = 161364 t = '10101000' y = 163821 t = '10101001' y = 166279 t = '10101010' y = 168739 t = '10101011' y = 171200 t = '10101100' y = 173666 t = '10101101' y = 176133 t = '10101110' y = 178602 t = '10101111' y = 181072 t = '10110000' y = 183583 t = '10110001' y = 186095 t = '10110010' y = 188609 t = '10110011' y = 191124 t = '10110100' y = 193644 t = '10110101' y = 196165 t = '10110110' y = 198688 t = '10110111' y = 201212 t = '10111000' y = 203750 t = '10111001' y = 206289 t = '10111010' y = 208830 t = '10111011' y = 211372 t = '10111100' y = 213919 t = '10111101' y = 216467 t = '10111110' y = 219017 t = '10111111' y = 221568 t = '11000000' y = 224484 t = '11000001' y = 227401 t = '11000010' y = 230320 t = '11000011' y = 233240 t = '11000100' y = 236165 t = '11000101' y = 239091 t = '11000110' y = 242019 t = '11000111' y = 244948 t = '11001000' y = 247891 t = '11001001' y = 250835 t = '11001010' y = 253781 t = '11001011' y = 256728 t = '11001100' y = 259680 t = '11001101' y = 262633 t = '11001110' y = 265588 t = '11001111' y = 268544 t = '11010000' y = 271541 t = '11010001' y = 274539 t = '11010010' y = 277539 t = '11010011' y = 280540 t = '11010100' y = 283546 t = '11010101' y = 286553 t = '11010110' y = 289562 t = '11010111' y = 292572 t = '11011000' y = 295596 t = '11011001' y = 298621 t = '11011010' y = 301648 t = '11011011' y = 304676 t = '11011100' y = 307709 t = '11011101' y = 310743 t = '11011110' y = 313779 t = '11011111' y = 316816 t = '11100000' y = 319975 t = '11100001' y = 323135 t = '11100010' y = 326297 t = '11100011' y = 329460 t = '11100100' y = 332628 t = '11100101' y = 335797 t = '11100110' y = 338968 t = '11100111' y = 342140 t = '11101000' y = 345326 t = '11101001' y = 348513 t = '11101010' y = 351702 t = '11101011' y = 354892 t = '11101100' y = 358087 t = '11101101' y = 361283 t = '11101110' y = 364481 t = '11101111' y = 367680 t = '11110000' y = 370920 t = '11110001' y = 374161 t = '11110010' y = 377404 t = '11110011' y = 380648 t = '11110100' y = 383897 t = '11110101' y = 387147 t = '11110110' y = 390399 t = '11110111' y = 393652 t = ...

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

t = '1100100' y = 981 t = '1100101' y = 1963 t = '1100110' y = 2947 t = '1100111' y = 3932 t = '1101000' y = 4931 t = '1101001' y = 5931 t = '1101010' y = 6933 t = '1101011' y = 7936 t = '1101100' y = 8944 t = '1101101' y = 9953 t = '1101110' y = 10964 t = '1101111' y = 11976 t = '1110000' y = 13029 t = '1110001' y = 14083 t = '1110010' y = 15139 t = '1110011' y = 16196 t = '1110100' y = 17258 t = '1110101' y = 18321 t = '1110110' y = 19386 t = '1110111' y = 20452 t = '1111000' y = 21532 t = '1111001' y = 22613 t = '1111010' y = 23696 t = '1111011' y = 24780 t = '1111100' y = 25869 t = '1111101' y = 26959 t = '1111110' y = 28051 t = '1111111' y = 29144 t = '10000000' y = 31331 t = '10000001' y = 33519 t = '10000010' y = 35709 t = '10000011' y = 37900 t = '10000100' y = 40096 t = '10000101' y = 42293 t = '10000110' y = 44492 t = '10000111' y = 46692 t = '10001000' y = 48906 t = '10001001' y = 51121 t = '10001010' y = 53338 t = '10001011' y = 55556 t = '10001100' y = 57779 t = '10001101' y = 60003 t = '10001110' y = 62229 t = '10001111' y = 64456 t = '10010000' y = 66724 t = '10010001' y = 68993 t = '10010010' y = 71264 t = '10010011' y = 73536 t = '10010100' y = 75813 t = '10010101' y = 78091 t = '10010110' y = 80371 t = '10010111' y = 82652 t = '10011000' y = 84947 t = '10011001' y = 87243 t = '10011010' y = 89541 t = '10011011' y = 91840 t = '10011100' y = 94144 t = '10011101' y = 96449 t = '10011110' y = 98756 t = '10011111' y = 101064 t = '10100000' y = 103494 t = '10100001' y = 105925 t = '10100010' y = 108358 t = '10100011' y = 110792 t = '10100100' y = 113231 t = '10100101' y = 115671 t = '10100110' y = 118113 t = '10100111' y = 120556 t = '10101000' y = 123013 t = '10101001' y = 125471 t = '10101010' y = 127931 t = '10101011' y = 130392 t = '10101100' y = 132858 t = '10101101' y = 135325 t = '10101110' y = 137794 t = '10101111' y = 140264 t = '10110000' y = 142775 t = '10110001' y = 145287 t = '10110010' y = 147801 t = '10110011' y = 150316 t = '10110100' y = 152836 t = '10110101' y = 155357 t = '10110110' y = 157880 t = '10110111' y = 160404 t = '10111000' y = 162942 t = '10111001' y = 165481 t = '10111010' y = 168022 t = '10111011' y = 170564 t = '10111100' y = 173111 t = '10111101' y = 175659 t = '10111110' y = 178209 t = '10111111' y = 180760 t = '11000000' y = 183676 t = '11000001' y = 186593 t = '11000010' y = 189512 t = '11000011' y = 192432 t = '11000100' y = 195357 t = '11000101' y = 198283 t = '11000110' y = 201211 t = '11000111' y = 204140 t = '11001000' y = 207083 t = '11001001' y = 210027 t = '11001010' y = 212973 t = '11001011' y = 215920 t = '11001100' y = 218872 t = '11001101' y = 221825 t = '11001110' y = 224780 t = '11001111' y = 227736 t = '11010000' y = 230733 t = '11010001' y = 233731 t = '11010010' y = 236731 t = '11010011' y = 239732 t = '11010100' y = 242738 t = '11010101' y = 245745 t = '11010110' y = 248754 t = '11010111' y = 251764 t = '11011000' y = 254788 t = '11011001' y = 257813 t = '11011010' y = 260840 t = '11011011' y = 263868 t = '11011100' y = 266901 t = '11011101' y = 269935 t = '11011110' y = 272971 t = '11011111' y = 276008 t = '11100000' y = 279167 t = '11100001' y = 282327 t = '11100010' y = 285489 t = '11100011' y = 288652 t = '11100100' y = 291820 t = '11100101' y = 294989 t = '11100110' y = 298160 t = '11100111' y = 301332 t = '11101000' y = 304518 t = '11101001' y = 307705 t = '11101010' y = 310894 t = '11101011' y = 314084 t = '11101100' y = 317279 t = '11101101' y = 320475 t = '11101110' y = 323673 t = '11101111' y = 326872 t = '11110000' y = 330112 t = '11110001' y = 333353 t = '11110010' y = 336596 t = '11110011' y = 339840 t = '11110100' y = 343089 t = '11110101' y = 346339 t = '11110110' y = 349591 t = '11110111' y = 352844 t = '11111000' y = 356111 t = '11111001' y = 359379 t = '11111010' y = 362649 t = '11111011' y = 365920 t = '11111100' y = 369196 t = '11111101' y = 372473 t = '11111110' y = 375752 t = '11111111' y = 379032 t = '100000000' y = 385593 t = '100000001' y = 392155 t = '100000010' y = 398719 t = '100000011' y = 405284 t = '100000100' y = 411854 t = '100000101' y = 418425 t = '100000110' y = 424998 t = '100000111' y = 431572 t = '100001000' y = 438160 t = '100001001' y = 444749 t = '100001010' y = 451340 t = '100001011' y = 457932 t = '100001100' y = 464529 t = '100001101' y = 471127 t = '100001110' y = 477727 t = '100001111' y = 484328 t = '100010000' y = 490970 t = '100010001' y = 497613 t = '100010010' y = 504258 t = '100010011' y = 510904 t = '100010100' y = 517555 t = '100010101' y = 524207 t = '100010110' y = 530861 t = '100010111' y = 537516 t = '100011000' y = 544185 t = '100011001' y = 550855 t = '100011010' y = 557527 t = '100011011' y = 564200 t = '100011100' y = 570878 t = '100011101' y = 577557 t = '100011110' y = 584238 t = '100011111' y = 590920 t = '100100000' y = 597724 t = '100100001' y = 604529 t = '100100010' y = 611336 t = '100100011' y = 618144 t = '100100100' y = 624957 t = '100100101' y = 631771 t = '100100110' y = 638587 t = '100100111' y = 645404 t = '100101000' y = 652235 t = '100101001' y = 659067 t = '100101010' y = 665901 t = '100101011' y = 672736 t = '100101100' y = 679576 t = '100101101' y = 686417 t = '100101110' y = 693260 t = '100101111' y = 700104 t = '100110000' y = 706989 t = '100110001' y = 713875 t = '100110010' y = 720763 t = '100110011' y = 727652 t = '100110100' y = 734546 t = '100110101' y = 741441 t = '100110110' y = 748338 t = '100110111' y = 755236 t = '100111000' y = 762148 t = '100111001' y = 769061 t = '100111010' y = 775976 t = '100111011' y = 782892 t = '100111100' y = 789813 t = '100111101' y = 796735 t = '100111110' y = 803659 t = '100111111' y = 810584 t = '101000000' y = 817874 t = '101000001' y = 825165 t = '101000010' y = 832458 t = '101000011' y = 839752 t = '101000100' y = 847051 t = '101000101' y = 854351 t = '101000110' y = 861653 t = '101000111' y = 868956 t = '101001000' y = 876273 t = '101001001' y = 883591 t = '101001010' y = 890911 t = '101001011' y = 898232 t = '101001100' y = 905558 t = '101001101' y = 912885 t = '101001110' y = 920214 t = '101001111' y = 927544 t = '101010000' y = 934915 ...

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

t = '1' y = 1 t = '10' y = 3 t = '11' y = 6 t = '100' y = 10 t = '101' y = 15 t = '110' y = 21 t = '111' y = 28 t = '1000' y = 36 t = '1001' y = 45 t = '1010' y = 55 t = '1011' y = 66 t = '1100' y = 78 t = '1101' y = 91 t = '1110' y = 105 t = '1111' y = 120 t = '10000' y = 136 t = '10001' y = 153 t = '10010' y = 171 t = '10011' y = 190 t = '10100' y = 210 t = '10101' y = 231 t = '10110' y = 253 t = '10111' y = 276 t = '11000' y = 300 t = '11001' y = 325 t = '11010' y = 351 t = '11011' y = 378 t = '11100' y = 406 t = '11101' y = 435 t = '11110' y = 465 t = '11111' y = 496 t = '100000' y = 528 t = '100001' y = 561 t = '100010' y = 595 t = '100011' y = 630 t = '100100' y = 666 t = '100101' y = 703 t = '100110' y = 741 t = '100111' y = 780 t = '101000' y = 820 t = '101001' y = 861 t = '101010' y = 903 t = '101011' y = 946 t = '101100' y = 990 t = '101101' y = 1035 t = '101110' y = 1081 t = '101111' y = 1128 t = '110000' y = 1176 t = '110001' y = 1225 t = '110010' y = 1275 t = '110011' y = 1326 t = '110100' y = 1378 t = '110101' y = 1431 t = '110110' y = 1485 t = '110111' y = 1540 t = '111000' y = 1596 t = '111001' y = 1653 t = '111010' y = 1711 t = '111011' y = 1770 t = '111100' y = 1830 t = '111101' y = 1891 t = '111110' y = 1953 t = '111111' y = 2016 t = '1000000' y = 2080 t = '1000001' y = 2145 t = '1000010' y = 2211 t = '1000011' y = 2278 t = '1000100' y = 2346 t = '1000101' y = 2415 t = '1000110' y = 2485 t = '1000111' y = 2556 t = '1001000' y = 2628 t = '1001001' y = 2701 t = '1001010' y = 2775 t = '1001011' y = 2850 t = '1001100' y = 2926 t = '1001101' y = 3003 t = '1001110' y = 3081 t = '1001111' y = 3160 t = '1010000' y = 3240 t = '1010001' y = 3321 t = '1010010' y = 3403 t = '1010011' y = 3486 t = '1010100' y = 3570 t = '1010101' y = 3655 t = '1010110' y = 3741 t = '1010111' y = 3828 t = '1011000' y = 3916 t = '1011001' y = 4005 t = '1011010' y = 4095 t = '1011011' y = 4186 t = '1011100' y = 4278 t = '1011101' y = 4371 t = '1011110' y = 4465 t = '1011111' y = 4560 t = '1100000' y = 4656 t = '1100001' y = 4753 t = '1100010' y = 4851 t = '1100011' y = 4950 t = '1100100' y = 5050 t = '1100101' y = 5151 t = '1100110' y = 5253 t = '1100111' y = 5356 t = '1101000' y = 5460 t = '1101001' y = 5565 t = '1101010' y = 5671 t = '1101011' y = 5778 t = '1101100' y = 5886 t = '1101101' y = 5995 t = '1101110' y = 6105 t = '1101111' y = 6216 t = '1110000' y = 6328 t = '1110001' y = 6441 t = '1110010' y = 6555 t = '1110011' y = 6670 t = '1110100' y = 6786 t = '1110101' y = 6903 t = '1110110' y = 7021 t = '1110111' y = 7140 t = '1111000' y = 7260 t = '1111001' y = 7381 t = '1111010' y = 7503 t = '1111011' y = 7626 t = '1111100' y = 7750 t = '1111101' y = 7875 t = '1111110' y = 8001 t = '1111111' y = 8128 t = '10000000' y = 8256 t = '10000001' y = 8385 t = '10000010' y = 8515 t = '10000011' y = 8646 t = '10000100' y = 8778 t = '10000101' y = 8911 t = '10000110' y = 9045 t = '10000111' y = 9180 t = '10001000' y = 9316 t = '10001001' y = 9453 t = '10001010' y = 9591 t = '10001011' y = 9730 t = '10001100' y = 9870 t = '10001101' y = 10011 t = '10001110' y = 10153 t = '10001111' y = 10296 t = '10010000' y = 10440 t = '10010001' y = 10585 t = '10010010' y = 10731 t = '10010011' y = 10878 t = '10010100' y = 11026 t = '10010101' y = 11175 t = '10010110' y = 11325 t = '10010111' y = 11476 t = '10011000' y = 11628 t = '10011001' y = 11781 t = '10011010' y = 11935 t = '10011011' y = 12090 t = '10011100' y = 12246 t = '10011101' y = 12403 t = '10011110' y = 12561 t = '10011111' y = 12720 t = '10100000' y = 12880 t = '10100001' y = 13041 t = '10100010' y = 13203 t = '10100011' y = 13366 t = '10100100' y = 13530 t = '10100101' y = 13695 t = '10100110' y = 13861 t = '10100111' y = 14028 t = '10101000' y = 14196 t = '10101001' y = 14365 t = '10101010' y = 14535 t = '10101011' y = 14706 t = '10101100' y = 14878 t = '10101101' y = 15051 t = '10101110' y = 15225 t = '10101111' y = 15400 t = '10110000' y = 15576 t = '10110001' y = 15753 t = '10110010' y = 15931 t = '10110011' y = 16110 t = '10110100' y = 16290 t = '10110101' y = 16471 t = '10110110' y = 16653 t = '10110111' y = 16836 t = '10111000' y = 17020 t = '10111001' y = 17205 t = '10111010' y = 17391 t = '10111011' y = 17578 t = '10111100' y = 17766 t = '10111101' y = 17955 t = '10111110' y = 18145 t = '10111111' y = 18336 t = '11000000' y = 18528 t = '11000001' y = 18721 t = '11000010' y = 18915 t = '11000011' y = 19110 t = '11000100' y = 19306 t = '11000101' y = 19503 t = '11000110' y = 19701 t = '11000111' y = 19900 t = '11001000' y = 20100 t = '11001001' y = 20301 t = '11001010' y = 20503 t = '11001011' y = 20706 t = '11001100' y = 20910 t = '11001101' y = 21115 t = '11001110' y = 21321 t = '11001111' y = 21528 t = '11010000' y = 21736 t = '11010001' y = 21945 t = '11010010' y = 22155 t = '11010011' y = 22366 t = '11010100' y = 22578 t = '11010101' y = 22791 t = '11010110' y = 23005 t = '11010111' y = 23220 t = '11011000' y = 23436 t = '11011001' y = 23653 t = '11011010' y = 23871 t = '11011011' y = 24090 t = '11011100' y = 24310 t = '11011101' y = 24531 t = '11011110' y = 24753 t = '11011111' y = 24976 t = '11100000' y = 25200 t = '11100001' y = 25425 t = '11100010' y = 25651 t = '11100011' y = 25878 t = '11100100' y = 26106 t = '11100101' y = 26335 t = '11100110' y = 26565 t = '11100111' y = 26796 t = '11101000' y = 27028 t = '11101001' y = 27261 t = '11101010' y = 27495 t = '11101011' y = 27730 t = '11101100' y = 27966 t = '11101101' y = 28203 t = '11101110' y = 28441 t = '11101111' y = 28680 t = '11110000' y = 28920 t = '11110001' y = 29161 t = '11110010' y = 29403 t = '11110011' y = 29646 t = '11110100' y = 29890 t = '11110101' y = 30135 t = '11110110' y = 30381 t = '11110111' y = 30628 t = '11111000' y = 30876 t = '11111001' y = 31125 t = '11111010' y = 31375 t = '1...

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

t = '10011010010' y = 283418849 t = '10011010011' y = 566837699 t = '10011010100' y = 850256590 t = '10011010101' y = 1.1337e+09 t = '10011010110' y = 1.4171e+09 t = '10011010111' y = 1.7005e+09 t = '10011011000' y = 1.9839e+09 t = '10011011001' y = 2.2674e+09 t = '10011011010' y = 2.5508e+09 t = '10011011011' y = 2.8342e+09 t = '10011011100' y = 3.1176e+09 t = '10011011101' y = 3.4010e+09 t = '10011011110' y = 3.6844e+09 t = '10011011111' y = 3.9679e+09 t = '10011100000' y = 4.2513e+09 t = '10011100001' y = 4.5347e+09 t = '10011100010' y = 4.8182e+09 t = '10011100011' y = 5.1016e+09 t = '10011100100' y = 5.3850e+09 t = '10011100101' y = 5.6685e+09 t = '10011100110' y = 5.9519e+09 t = '10011100111' y = 6.2353e+09 t = '10011101000' y = 6.5188e+09 t = '10011101001' y = 6.8022e+09 t = '10011101010' y = 7.0856e+09 t = '10011101011' y = 7.3691e+09 t = '10011101100' y = 7.6525e+09 t = '10011101101' y = 7.9359e+09 t = '10011101110' y = 8.2194e+09 t = '10011101111' y = 8.5028e+09 t = '10011110000' y = 8.7862e+09 t = '10011110001' y = 9.0697e+09 t = '10011110010' y = 9.3531e+09 t = '10011110011' y = 9.6365e+09 t = '10011110100' y = 9.9200e+09 t = '10011110101' y = 1.0203e+10 t = '10011110110' y = 1.0487e+10 t = '10011110111' y = 1.0770e+10 t = '10011111000' y = 1.1054e+10 t = '10011111001' y = 1.1337e+10 t = '10011111010' y = 1.1621e+10 t = '10011111011' y = 1.1904e+10 t = '10011111100' y = 1.2187e+10 t = '10011111101' y = 1.2471e+10 t = '10011111110' y = 1.2754e+10 t = '10011111111' y = 1.3038e+10 t = '10100000000' y = 1.3326e+10 t = '10100000001' y = 1.3614e+10 t = '10100000010' y = 1.3902e+10 t = '10100000011' y = 1.4191e+10 t = '10100000100' y = 1.4479e+10 t = '10100000101' y = 1.4767e+10 t = '10100000110' y = 1.5055e+10 t = '10100000111' y = 1.5344e+10 t = '10100001000' y = 1.5632e+10 t = '10100001001' y = 1.5920e+10 t = '10100001010' y = 1.6208e+10 t = '10100001011' y = 1.6497e+10 t = '10100001100' y = 1.6785e+10 t = '10100001101' y = 1.7073e+10 t = '10100001110' y = 1.7361e+10 t = '10100001111' y = 1.7650e+10 t = '10100010000' y = 1.7938e+10 t = '10100010001' y = 1.8226e+10 t = '10100010010' y = 1.8514e+10 t = '10100010011' y = 1.8803e+10 t = '10100010100' y = 1.9091e+10 t = '10100010101' y = 1.9379e+10 t = '10100010110' y = 1.9667e+10 t = '10100010111' y = 1.9956e+10 t = '10100011000' y = 2.0244e+10 t = '10100011001' y = 2.0532e+10 t = '10100011010' y = 2.0820e+10 t = '10100011011' y = 2.1109e+10 t = '10100011100' y = 2.1397e+10 t = '10100011101' y = 2.1685e+10 t = '10100011110' y = 2.1973e+10 t = '10100011111' y = 2.2262e+10 t = '10100100000' y = 2.2550e+10 t = '10100100001' y = 2.2838e+10 t = '10100100010' y = 2.3126e+10 t = '10100100011' y = 2.3415e+10 t = '10100100100' y = 2.3703e+10 t = '10100100101' y = 2.3991e+10 t = '10100100110' y = 2.4279e+10 t = '10100100111' y = 2.4568e+10 t = '10100101000' y = 2.4856e+10 t = '10100101001' y = 2.5144e+10 t = '10100101010' y = 2.5432e+10 t = '10100101011' y = 2.5721e+10 t = '10100101100' y = 2.6009e+10 t = '10100101101' y = 2.6297e+10 t = '10100101110' y = 2.6585e+10 t = '10100101111' y = 2.6874e+10 t = '10100110000' y = 2.7162e+10 t = '10100110001' y = 2.7450e+10 t = '10100110010' y = 2.7738e+10 t = '10100110011' y = 2.8027e+10 t = '10100110100' y = 2.8315e+10 t = '10100110101' y = 2.8603e+10 t = '10100110110' y = 2.8891e+10 t = '10100110111' y = 2.9180e+10 t = '10100111000' y = 2.9468e+10 t = '10100111001' y = 2.9756e+10 t = '10100111010' y = 3.0044e+10 t = '10100111011' y = 3.0333e+10 t = '10100111100' y = 3.0621e+10 t = '10100111101' y = 3.0909e+10 t = '10100111110' y = 3.1198e+10 t = '10100111111' y = 3.1486e+10 t = '10101000000' y = 3.1774e+10 t = '10101000001' y = 3.2062e+10 t = '10101000010' y = 3.2351e+10 t = '10101000011' y = 3.2639e+10 t = '10101000100' y = 3.2928e+10 t = '10101000101' y = 3.3216e+10 t = '10101000110' y = 3.3504e+10 t = '10101000111' y = 3.3793e+10 t = '10101001000' y = 3.4081e+10 t = '10101001001' y = 3.4369e+10 t = '10101001010' y = 3.4658e+10 t = '10101001011' y = 3.4946e+10 t = '10101001100' y = 3.5234e+10 t = '10101001101' y = 3.5523e+10 t = '10101001110' y = 3.5811e+10 t = '10101001111' y = 3.6099e+10 t = '10101010000' y = 3.6388e+10 t = '10101010001' y = 3.6676e+10 t = '10101010010' y = 3.6965e+10 t = '10101010011' y = 3.7253e+10 t = '10101010100' y = 3.7541e+10 t = '10101010101' y = 3.7830e+10 t = '10101010110' y = 3.8118e+10 t = '10101010111' y = 3.8406e+10 t = '10101011000' y = 3.8695e+10 t = '10101011001' y = 3.8983e+10 t = '10101011010' y = 3.9271e+10 t = '10101011011' y = 3.9560e+10 t = '10101011100' y = 3.9848e+10 t = '10101011101' y = 4.0137e+10 t = '10101011110' y = 4.0425e+10 t = '10101011111' y = 4.0713e+10 t = '10101100000' y = 4.1002e+10 t = '10101100001' y = 4.1290e+10 t = '10101100010' y = 4.1578e+10 t = '10101100011' y = 4.1867e+10 t = '10101100100' y = 4.2155e+10 t = '10101100101' y = 4.2444e+10 t = '10101100110' y = 4.2732e+10 t = '10101100111' y = 4.3020e+10 t = '10101101000' y = 4.3309e+10 t = '10101101001' y = 4.3597e+10 t = '10101101010' y = 4.3885e+10 t = '10101101011' y = 4.4174e+10 t = '10101101100' y = 4.4462e+10 t = '10101101101' y = 4.4751e+10 t = '10101101110' y = 4.5039e+10 t = '10101101111' y = 4.5327e+10 t = '10101110000' y = 4.5616e+10 t = '10101110001' y = 4.5904e+10 t = '10101110010' y = 4.6192e+10 t = '10101110011' y = 4.6481e+10 t = '10101110100' y = 4.6769e+10 t = '10101110101' y = 4.7058e+10 t = '10101110110' y = 4.7346e+10 t = '10101110111' y = 4.7634e+10 t = '10101111000' y = 4.7923e+10 t = '10101111001' y = 4.8211e+10 t = '10101111010' y = 4.8499e+10 t = '10101111011' y = 4.8788e+10 t = '10101111100' y = 4.9076e+10 t = '10101111101' y = 4.9365e+10 t = '10101111110' y = 4.9653e+10 t = '10101111111' y = 4.9941e+10 t = '10110000000' y = 5.0230e+10 t = '10110000001' y = 5.0519e+10 t = '10110000010' y = 5.0808e+10 t = '10110000011' y = 5.1098e+10 t = '10110000100' y = 5.1387e+10 t = '10110000101' y = 5.1676e+10 t = '10110000110' y = 5.1965e+10 t = '10110000111' y = 5.2254e+10 t = '10110001000' y = 5.2543e+10 t = '10110001001' y = 5.2832e+10 t = '10110001010' y = 5.3121e+10 t = '10110001011' y = 5.3410e+10 t = '10110001100' y = 5.3699e+10 t = '10110001101' y = 5.3988e+10 t = '10110001110' y = 5.4277e+10 t = '10110001111' y = 5.4566e+10 t = '10110010000' y = 5.4855e+10 t = '10110010001' y = 5.5144e+10 t = '10110010010' y = 5.5434e+10 t = '10110010011' y = 5.5723e+10 t = '10110010100' y = 5.6012e+10 t = '10110010101' y = 5.6301e+10 t = '10110010110' y = 5.6590e+10 t = '10110010111' y = 5.6879e+10 t = '10110011000' y = 5.7168e+10 t = '10110011001' y = 5.7457e+10 t = '10110011010' y = 5.7746e+10 t = '10110011011' y = 5.8035e+10 t = '10110011100' y = 5.8324e+10 t = '10110011101' y = 5.8613e+10 t = '10110011110' y = 5.8902e+10 t = '10110011111' y = 5.9191e+10 t = '10110100000' y = 5.9480e+10 t = '10110100001' y = 5.9770e+10 t = '10110100010' y = 6.0059e+10 t = '10110100011' y = 6.0348e+10 t = '10110100100' y = 6.0637e+10 t = '10110100101' y = 6.0926e+10 t = '10110100110' y = 6.1215e+10 t = '10110100111' y = 6.1504e+10 t = '10110101000' y = 6.1793e+10 t = '10110101001' y = 6.2082e+10 t = '10110101010' y = 6.2371e+10 t = '10110101011...

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

t = '1' y = 1 t = '10' y = 8 t = '11' y = 16 t = '100' y = 65 t = '101' y = 115 t = '110' y = 171 t = '111' y = 228 t = '1000' y = 571 t = '1001' y = 915 t = '1010' y = 1265

8   Pass
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))

t = '1' y = 1 t = '10' y = 3 t = '11' y = 6 t = '100' y = 10 t = '101' y = 15 t = '110' y = 21 t = '111' y = 28 t = '1000' y = 36 t = '1001' y = 45 t = '1010' y = 55 t = '1011' y = 66 t = '1100' y = 78 t = '1101' y = 91 t = '1110' y = 105 t = '1111' y = 120 t = '10000' y = 136 t = '10001' y = 153 t = '10010' y = 171 t = '10011' y = 190 t = '10100' y = 210 t = '10101' y = 231 t = '10110' y = 253 t = '10111' y = 276 t = '11000' y = 300 t = '11001' y = 325 t = '11010' y = 351 t = '11011' y = 378 t = '11100' y = 406 t = '11101' y = 435 t = '11110' y = 465 t = '11111' y = 496 t = '100000' y = 528 t = '100001' y = 561 t = '100010' y = 595 t = '100011' y = 630 t = '100100' y = 666 t = '100101' y = 703 t = '100110' y = 741 t = '100111' y = 780 t = '101000' y = 820 t = '101001' y = 861 t = '101010' y = 903 t = '101011' y = 946 t = '101100' y = 990 t = '101101' y = 1035 t = '101110' y = 1081 t = '101111' y = 1128 t = '110000' y = 1176 t = '110001' y = 1225 t = '110010' y = 1275 t = '1' y = 1 t = '10' y = 4 t = '11' y = 8 t = '100' y = 17 t = '101' y = 27 t = '110' y = 39 t = '111' y = 52 t = '1000' y = 79 t = '1001' y = 107 t = '1010' y = 137 t = '1011' y = 168 t = '1100' y = 204 t = '1101' y = 241 t = '1110' y = 280 t = '1111' y = 320 t = '10000' y = 401 t = '10001' y = 483 t = '10010' y = 567 t = '10011' y = 652 t = '10100' y = 742 t = '10101' y = 833 t = '10110' y = 926 t = '10111' y = 1020 t = '11000' y = 1128 t = '11001' y = 1237 t = '11010' y = 1348 t = '11011' y = 1460 t = '11100' y = 1577 t = '11101' y = 1695 t = '11110' y = 1815 t = '11111' y = 1936 t = '100000' y = 2179 t = '100001' y = 2423 t = '100010' y = 2669 t = '100011' y = 2916 t = '100100' y = 3168 t = '100101' y = 3421 t = '100110' y = 3676 t = '100111' y = 3932 t = '101000' y = 4202 t = '101001' y = 4473 t = '101010' y = 4746 t = '101011' y = 5020 t = '101100' y = 5299 t = '101101' y = 5579 t = '101110' y = 5861 t = '101111' y = 6144 t = '110000' y = 6468 t = '110001' y = 6793 t = '110010' y = 7120 t = '1' y = 1 t = '10' y = 5 t = '11' y = 10 t = '100' y = 26 t = '101' y = 43 t = '110' y = 63 t = '111' y = 84 t = '1000' y = 148 t = '1001' y = 213 t = '1010' y = 281 t = '1011' y = 350 t = '1100' y = 430 t = '1101' y = 511 t = '1110' y = 595 t = '1111' y = 680 t = '10000' y = 936 t = '10001' y = 1193 t = '10010' y = 1453 t = '10011' y = 1714 t = '10100' y = 1986 t = '10101' y = 2259 t = '10110' y = 2535 t = '10111' y = 2812 t = '11000' y = 3132 t = '11001' y = 3453 t = '11010' y = 3777 t = '11011' y = 4102 t = '11100' y = 4438 t = '11101' y = 4775 t = '11110' y = 5115 t = '11111' y = 5456 t = '100000' y = 6480 t = '100001' y = 7505 t = '100010' y = 8533 t = '100011' y = 9562 t = '100100' y = 10602 t = '100101' y = 11643 t = '100110' y = 12687 t = '100111' y = 13732 t = '101000' y = 14820 t = '101001' y = 15909 t = '101010' y = 17001 t = '101011' y = 18094 t = '101100' y = 19198 t = '101101' y = 20303 t = '101110' y = 21411 t = '101111' y = 22520 t = '110000' y = 23800 t = '110001' y = 25081 t = '110010' y = 26365 t = '1' y = 1 t = '10' y = 6 t = '11' y = 12 t = '100' y = 37 t = '101' y = 63 t = '110' y = 93 t = '111' y = 124 t = '1000' y = 249 t = '1001' y = 375 t = '1010' y = 505 t = '1011' y = 636 t = '1100' y = 786 t = '1101' y = 937 t = '1110' y = 1092 t = '1111' y = 1248 t = '10000' y = 1873 t = '10001' y = 2499 t = '10010' y = 3129 t = '10011' y = 3760 t = '10100' y = 4410 t = '10101' y = 5061 t = '10110' y = 5716 t = '10111' y = 6372 t = '11000' y = 7122 t = '11001' y = 7873 t = '11010' y = 8628 t = '11011' y = 9384 t = '11100' y = 10159 t = '11101' y = 10935 t = '11110' y = 11715 t = '11111' y = 12496 t = '100000' y = 15621 t = '100001' y = 18747 t = '100010' y = 21877 t = '100011' y = 25008 t = '100100' y = 28158 t = '100101' y = 31309 t = '100110' y = 34464 t = '100111' y = 37620 t = '101000' y = 40870 t = '101001' y = 44121 t = '101010' y = 47376 t = '101011' y = 50632 t = '101100' y = 53907 t = '101101' y = 57183 t = '101110' y = 60463 t = '101111' y = 63744 t = '110000' y = 67494 t = '110001' y = 71245 t = '110010' y = 75000 t = '1' y = 1 t = '10' y = 7 t = '11' y = 14 t = '100' y = 50 t = '101' y = 87 t = '110' y = 129 t = '111' y = 172 t = '1000' y = 388 t = '1001' y = 605 t = '1010' y = 827 t = '1011' y = 1050 t = '1100' y = 1302 t = '1101' y = 1555 t = '1110' y = 1813 t = '1111' y = 2072 t = '10000' y = 3368 t = '10001' y = 4665 t = '10010' y = 5967 t = '10011' y = 7270 t = '10100' y = 8602 t = '10101' y = 9935 t = '10110' y = 11273 t = '10111' y = 12612 t = '11000' y = 14124 t = '11001' y = 15637 t = '11010' y = 17155 t = '11011' y = 18674 t = '11100' y = 20222 t = '11101' y = 21771 t = '11110' y = 23325 t = '11111' y = 24880 t = '100000' y = 32656 t = '100001' y = 40433 t = '100010' y = 48215 t = '100011' y = 55998 t = '100100' y = 63810 t = '100101' y = 71623 t = '100110' y = 79441 t = '100111' y = 87260 t = '101000' y = 95252 t = '101001' y = 103245 t = '101010' y = 111243 t = '101011' y = 119242 t = '101100' y = 127270 t = '101101' y = 135299 t = '101110' y = 143333 t = '101111' y = 151368 t = '110000' y = 160440 t = '110001' y = 169513 t = '110010' y = 178591 t = '1' y = 1 t = '10' y = 8 t = '11' y = 16 t = '100' y = 65 t = '101' y = 115 t = '110' y = 171 t = '111' y = 228 t = '1000' y = 571 t = '1001' y = 915 t = '1010' y = 1265 t = '1011' y = 1616 t = '1100' y = 2008 t = '1101' y = 2401 t = '1110' y = 2800 t = '1111' y = 3200 t = '10000' y = 5601 t = '10001' y = 8003 t = '10010' y = 10411 t = '10011' y = 12820 t = '10100' y = 15270 t = '10101' y = 17721 t = '10110' y = 20178 t = '10111' y = 22636 t = '11000' y = 25380 t = '11001' y = 28125 t = '11010' y...