Cody

Problem 44337. Sums of Distinct Powers

Solution 1389162

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   Fail
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 = 20 v = 84 y = 88 s = 100 v = 84 v = 84 v = 4180 y = 4268 s = 101 v = 20564 v = 20564 v = 282708 y = 286976 s = 110 v = 282708 v = 4477012 v = 21254228 y = 21541204

Assertion failed.

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 = 1 v = 17 y = 18 s = 11 v = 81 v = 337 y = 355 s = 100 v = 337 v = 337 v = 16721 y = 17076 s = 101 v = 82257 v = 82257 v = 1130833 y = 1147909 s = 110 v = 1130833 v = 17908049 v = 85016913 y = 86164822 s = 111 v = 353452369 v = 1.4272e+09 v = 5.7222e+09 y = 5.8083e+09 s = 1000 v = 5.7222e+09 v = 5.7222e+09 v = 5.7222e+09 v = 1.1052e+12 y = 1.1110e+12 s = 1001 v = 5.5033e+12 v = 5.5033e+12 v = 5.5033e+12 v = 2.8698e+14 y = 2.8809e+14 s = 1010 v = 2.8698e+14 v = 4.7906e+15 v = 4.7906e+15 v = 7.6848e+16 y = 7.7136e+16 s = 1011 v = 3.6508e+17 v = 1.5180e+18 v = 1.5180e+18 v = 1.9965e+19 y = 2.0042e+19 s = 1100 v = 1.9965e+19 v = 1.9965e+19 v = 1.2006e+21 v = 5.9229e+21 y = 5.9430e+21 s = 1101 v = 2.4812e+22 v = 2.4812e+22 v = 3.2704e+23 v = 1.5360e+24 y = 1.5419e+24 s = 1110 v = 1.5360e+24 v = 2.0879e+25 v = 9.8250e+25 v = 4.0774e+26 y = 4.0928e+26 s = 1111 v = 1.6457e+27 v = 6.5974e+27 v = 2.6404e+28 v = 1.0563e+29 y = 1.0604e+29 s = 10000 v = 1.0563e+29 v = 1.0563e+29 v = 1.0563e+29 v = 1.0563e+29 v = 8.1235e+31 y = 8.1341e+31 s = 10001 v = 4.0575e+32 v = 4.0575e+32 v = 4.0575e+32 v = 4.0575e+32 v = 8.3483e+34 y = 8.3564e+34 s = 10010 v = 8.3483e+34 v = 1.4127e+36 v = 1.4127e+36 v = 1.4127e+36 v = 8.6483e+37 y = 8.6567e+37 s = 10011 v = 4.2677e+38 v = 1.7879e+39 v = 1.7879e+39 v = 1.7879e+39 v = 8.8900e+40 y = 8.8987e+40 s = 10100 v = 8.8900e+40 v = 8.8900e+40 v = 5.6641e+42 v = 5.6641e+42 v = 9.4867e+43 y = 9.4956e+43 s = 10101 v = 4.5168e+44 v = 4.5168e+44 v = 6.1607e+45 v = 6.1607e+45 v = 9.7505e+46 y = 9.7599e+46 s = 10110 v = 9.7505e+46 v = 1.5590e+48 v = 7.4050e+48 v = 7.4050e+48 v = 1.0094e+50 y = 1.0104e+50 s = 10111 v = 4.7509e+50 v = 1.9717e+51 v = 7.9580e+51 v = 7.9580e+51 v = 1.0374e+53 y = 1.0384e+53 s = 11000 v = 1.0374e+53 v = 1.0374e+53 v = 1.0374e+53 v = 2.4624e+55 v = 1.2270e+56 y = 1.2281e+56 s = 11001 v = 5.1502e+56 v = 5.1502e+56 v = 5.1502e+56 v = 2.5623e+58 v = 1.2606e+59 y = 1.2618e+59 s = 11010 v = 1.2606e+59 v = 1.7330e+60 v = 1.7330e+60 v = 2.7444e+61 v = 1.3029e+62 y = 1.3041e+62 s = 11011 v = 5.4166e+62 v = 2.1872e+63 v = 2.1872e+63 v = 2.8515e+64 v = 1.3383e+65 y = 1.3396e+65 s = 11100 v = 1.3383e+65 v = 1.3383e+65 v = 6.8738e+66 v = 3.3834e+67 v = 1.4167e+68 y = 1.4181e+68 s = 11101 v = 5.7303e+68 v = 5.7303e+68 v = 7.4748e+69 v = 3.5082e+70 v = 1.4551e+71 y = 1.4565e+71 s = 11110 v = 1.4551e+71 v = 1.9124e+72 v = 8.9797e+72 v = 3.7249e+73 v = 1.5033e+74 y = 1.5047e+74 s = 11111 v = 6.0264e+74 v = 2.4119e+75 v = 9.6489e+75 v = 3.8597e+76 v = 1.5439e+77 y = 1.5454e+77 s = 100000 v = 1.5439e+77 v = 1.5439e+77 v = 1.5439e+77 v = 1.5439e+77 v = 1.5439e+77 v = 4.7444e+80 y = 4.7459e+80 s = 100001 v = 2.3716e+81 v = 2.3716e+81 v = 2.3716e+81 v = 2.3716e+81 v = 2.3716e+81 v = 1.9450e+84 y = 1.9455e+84 s = 100010 v = 1.9450e+84 v = 3.3028e+85 v = 3.3028e+85 v = 3.3028e+85 v = 3.3028e+85 v = 7.9902e+87 y = 7.9921e+87 s = 100011 v = 3.9819e+88 v = 1.6713e+89 v = 1.6713e+89 v = 1.6713e+89 v = 1.6713e+89 v = 3.2760e+91 y = 3.2768e+91 s = 100100 v = 3.2760e+91 v = 3.2760e+91 v = 2.1187e+93 v = 2.1187e+93 v = 2.1187e+93 v = 1.3562e+95 y = 1.3565e+95 s = 100101 v = 6.6961e+95 v = 6.6961e+95 v = 9.2136e+96 v = 9.2136e+96 v = 9.2136e+96 v = 5.5603e+98 y = 5.5616e+98 s = 100110 v = 5.5603e+98 v = 9.3050e+99 v = 4.4301e+100 v = 4.4301e+100 v = 4.4301e+100 v = 2.2840e+102 y = 2.2846e+102 s = 100111 v = 1.1243e+103 v = 4.7079e+103 v = 1.9042e+104 v = 1.9042e+104 v = 1.9042e+104 v = 9.3644e+105 y = 9.3667e+105 s = 101000 v = 9.3644e+105 v = 9.3644e+105 v = 9.3644e+105 v = 2.3579e+108 v = 2.3579e+108 v = 3.9935e+109 y = 3.9944e+109 s = 101001 v = 1.9024e+110 v = 1.9024e+110 v = 1.9024e+110 v = 9.8099e+111 v = 9.8099e+111 v = 1.6372e+113 y = 1.6376e+113 s = 101010 v = 1.6372e+113 v = 2.6263e+114 v = 2.6263e+114 v = 4.2028e+115 v = 4.2028e+115 v = 6.7246e+116 y = 6.7262e+116 s = 101011 v = 3.1942e+117 v = 1.3281e+118 v = 1.3281e+118 v = 1.7467e+119 v = 1.7467e+119 v = 2.7569e+120 y = 2.7576e+120 s = 101100 v = 2.7569e+120 v = 2.7569e+120 v = 1.6802e+122 v = 8.2908e+122 v = 8.2908e+122 v = 1.1406e+124 y = 1.1409e+124 s = 101101 v = 5.3714e+124 v = 5.3714e+124 v = 7.3063e+125 v = 3.4383e+126 v = 3.4383e+126 v = 4.6761e+127 y = 4.6773e+127 s = 101110 v = 4.6761e+127 v = 7.3993e+128 v = 3.5126e+129 v = 1.4603e+130 v = 1.4603e+130 v = 1.9205e+131 y = 1.9210e+131 s = 101111 v = 9.0186e+131 v = 3.7411e+132 v = 1.5098e+133 v = 6.0525e+133 v = 6.0525e+133 v = 7.8736e+134 y = 7.8756e+134 s = 110000 v = 7.8736e+134 v = 7.8736e+134 v = 7.8736e+134 v = 7.8736e+134 v = 7.4507e+137 v = 3.7222e+138 y = 3.7230e+138 s = 110001 v = 1.5631e+139 v = 1.5631e+139 v = 1.5631e+139 v = 1.5631e+139 v = 3.0642e+141 v = 1.5259e+142 y = 1.5262e+142 s = 110010 v = 1.5259e+142 v = 2.1037e+143 v = 2.1037e+143 v = 2.1037e+143 v = 1.2697e+145 v = 6.2645e+145 y = 6.2661e+145 s = 110011 v = 2.6244e+146 v = 1.0616e+147 v = 1.0616e+147 v = 1.0616e+147 v = 5.2208e+148 v = 2.5680e+149 y = 2.5686e+149 s = 110100 v = 2.5680e+149 v = 2.5680e+149 v = 1.3350e+151 v = 1.3350e+151 v = 2.2285e+152 v = 1.0608e+153 y = 1.0611e+153 s = 110101 v = 4.4128e+153 v = 4.4128e+153 v = 5.8044e+154 v = 5.8044e+154 v = 9.1614e+155 v = 4.3485e+156 y = 4.3496e+156 s = 110110 v = 4.3485e+156 v = 5.9267e+157 v = 2.7894e+158 v = 2.7894e+158 v = 3.7937e+159 v = 1.7853e+160 y = 1.7857e+160 s = 110111 v = 7.4089e+160 v = 2.9903e+161 v = 1.1988e+162 v = 1.1988e+162 v = 1.5595e+163 v = 7.3181e+163 y = 7.3199e+163 s = 111000 v = 7.3181e+163 v = 7.3181e+163 v = 7.3181e+163 v = 1.4815e+166 v = 7.3783e+166 v = 3.0966e+167 y = 3.0973e+167 s = 111001 v = 1.2531e+168 v = 1.2531e+168 v = 1.2531e+168 v = 6.1637e+169 v = 3.0317e+170 v = 1.2693e+171 y = 1.2696e+171 s = 111010 v = 1.2693e+171 v = 1.6727e+172 v = 1.6727e+172 v = 2.6406e+173 v = 1.2534e+174 v = 5.2107e+174 y = 5.2119e+174 s = 111011 v = 2.1040e+175 v = 8.4356e+175 v = 8.4356e+175 v = 1.0974e+177 v = 5.1497e+177 v = 2.1359e+178 y = 2.1364e+178 s = 111100 v = 2.1359e+178 v = 2.1359e+178 v = 1.0587e+180 v = 5.2083e+180 v = 2.1806e+181 v = 8.8199e+181 y = 8.8220e+181 s = 111101 v = 3.5377e+182 v = 3.5377e+182 v = 4.6029e+183 v = 2.1599e+184 v = 8.9585e+184 v = 3.6153e+185 y = 3.6162e+185 s = 111110 v = 3.6153e+185 v = 4.7126e+186 v = 2.2117e+187 v = 9.1734e+187 v = 3.7020e+188 v = 1.4841e+189 y = 1.4844e+189 s = 111111 v = 5.9396e+189 v = 2.3762e+190 v = 9.5050e+190 v = 3.8020e+191 v = 1.5208e+192 v = 6.0833e+192 y = 6.0847e+192 s = 1000000 v = 6.0833e+192 v = 6.0833e+192 v = 6.0833e+192 v = 6.0833e+192 v = 6.0833e+192 v = 6.0833e+192 v = 7.4757e+196 y = 7.4763e+196 s = 1000001 v = 3.7376e+197 v = 3.7376e+197 v = 3.7376e+197 v = 3.7376e+197 v = 3.7376e+197 v = 3.7376e+197 v = 1.2251e+201 y = 1.2252e+201 s = 1000010 v = 1.2251e+201 v = 2.0821e+202 v = 2.0821e+202 v = 2.0821e+202 v = 2.0821e+202 v = 2.0821e+202 v = 2.0087e+205 y = 2.0088e+205 s = 1000011 v = 1.0035e+206 v = 4.2140e+206 v = 4.2140e+206 v = 4.2140e+206 v = 4.2140e+206 v = 4.2140e+206 v = 3.2918e+209 y = 3.2920e+209 s = 1000100 v = 3.2918e+209 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 = 1 v = 17 y = 18 s = 11 v = 81 v = 337 y = 355 s = 100 v = 337 v = 337 v = 16721 y = 17076 s = 101 v = 82257 v = 82257 v = 1130833 y = 1147909 s = 110 v = 1130833 v = 17908049 v = 85016913 y = 86164822 s = 111 v = 353452369 v = 1.4272e+09 v = 5.7222e+09 y = 5.8083e+09 s = 1000 v = 5.7222e+09 v = 5.7222e+09 v = 5.7222e+09 v = 1.1052e+12 y = 1.1110e+12 s = 1001 v = 5.5033e+12 v = 5.5033e+12 v = 5.5033e+12 v = 2.8698e+14 y = 2.8809e+14 s = 1010 v = 2.8698e+14 v = 4.7906e+15 v = 4.7906e+15 v = 7.6848e+16 y = 7.7136e+16 s = 1011 v = 3.6508e+17 v = 1.5180e+18 v = 1.5180e+18 v = 1.9965e+19 y = 2.0042e+19 s = 1100 v = 1.9965e+19 v = 1.9965e+19 v = 1.2006e+21 v = 5.9229e+21 y = 5.9430e+21 s = 1101 v = 2.4812e+22 v = 2.4812e+22 v = 3.2704e+23 v = 1.5360e+24 y = 1.5419e+24 s = 1110 v = 1.5360e+24 v = 2.0879e+25 v = 9.8250e+25 v = 4.0774e+26 y = 4.0928e+26 s = 1111 v = 1.6457e+27 v = 6.5974e+27 v = 2.6404e+28 v = 1.0563e+29 y = 1.0604e+29 s = 10000 v = 1.0563e+29 v = 1.0563e+29 v = 1.0563e+29 v = 1.0563e+29 v = 8.1235e+31 y = 8.1341e+31 s = 10001 v = 4.0575e+32 v = 4.0575e+32 v = 4.0575e+32 v = 4.0575e+32 v = 8.3483e+34 y = 8.3564e+34 s = 10010 v = 8.3483e+34 v = 1.4127e+36 v = 1.4127e+36 v = 1.4127e+36 v = 8.6483e+37 y = 8.6567e+37 s = 10011 v = 4.2677e+38 v = 1.7879e+39 v = 1.7879e+39 v = 1.7879e+39 v = 8.8900e+40 y = 8.8987e+40 s = 10100 v = 8.8900e+40 v = 8.8900e+40 v = 5.6641e+42 v = 5.6641e+42 v = 9.4867e+43 y = 9.4956e+43 s = 10101 v = 4.5168e+44 v = 4.5168e+44 v = 6.1607e+45 v = 6.1607e+45 v = 9.7505e+46 y = 9.7599e+46 s = 10110 v = 9.7505e+46 v = 1.5590e+48 v = 7.4050e+48 v = 7.4050e+48 v = 1.0094e+50 y = 1.0104e+50 s = 10111 v = 4.7509e+50 v = 1.9717e+51 v = 7.9580e+51 v = 7.9580e+51 v = 1.0374e+53 y = 1.0384e+53 s = 11000 v = 1.0374e+53 v = 1.0374e+53 v = 1.0374e+53 v = 2.4624e+55 v = 1.2270e+56 y = 1.2281e+56 s = 11001 v = 5.1502e+56 v = 5.1502e+56 v = 5.1502e+56 v = 2.5623e+58 v = 1.2606e+59 y = 1.2618e+59 s = 11010 v = 1.2606e+59 v = 1.7330e+60 v = 1.7330e+60 v = 2.7444e+61 v = 1.3029e+62 y = 1.3041e+62 s = 11011 v = 5.4166e+62 v = 2.1872e+63 v = 2.1872e+63 v = 2.8515e+64 v = 1.3383e+65 y = 1.3396e+65 s = 11100 v = 1.3383e+65 v = 1.3383e+65 v = 6.8738e+66 v = 3.3834e+67 v = 1.4167e+68 y = 1.4181e+68 s = 11101 v = 5.7303e+68 v = 5.7303e+68 v = 7.4748e+69 v = 3.5082e+70 v = 1.4551e+71 y = 1.4565e+71 s = 11110 v = 1.4551e+71 v = 1.9124e+72 v = 8.9797e+72 v = 3.7249e+73 v = 1.5033e+74 y = 1.5047e+74 s = 11111 v = 6.0264e+74 v = 2.4119e+75 v = 9.6489e+75 v = 3.8597e+76 v = 1.5439e+77 y = 1.5454e+77 s = 100000 v = 1.5439e+77 v = 1.5439e+77 v = 1.5439e+77 v = 1.5439e+77 v = 1.5439e+77 v = 4.7444e+80 y = 4.7459e+80 s = 100001 v = 2.3716e+81 v = 2.3716e+81 v = 2.3716e+81 v = 2.3716e+81 v = 2.3716e+81 v = 1.9450e+84 y = 1.9455e+84 s = 100010 v = 1.9450e+84 v = 3.3028e+85 v = 3.3028e+85 v = 3.3028e+85 v = 3.3028e+85 v = 7.9902e+87 y = 7.9921e+87 s = 100011 v = 3.9819e+88 v = 1.6713e+89 v = 1.6713e+89 v = 1.6713e+89 v = 1.6713e+89 v = 3.2760e+91 y = 3.2768e+91 s = 100100 v = 3.2760e+91 v = 3.2760e+91 v = 2.1187e+93 v = 2.1187e+93 v = 2.1187e+93 v = 1.3562e+95 y = 1.3565e+95 s = 100101 v = 6.6961e+95 v = 6.6961e+95 v = 9.2136e+96 v = 9.2136e+96 v = 9.2136e+96 v = 5.5603e+98 y = 5.5616e+98 s = 100110 v = 5.5603e+98 v = 9.3050e+99 v = 4.4301e+100 v = 4.4301e+100 v = 4.4301e+100 v = 2.2840e+102 y = 2.2846e+102 s = 100111 v = 1.1243e+103 v = 4.7079e+103 v = 1.9042e+104 v = 1.9042e+104 v = 1.9042e+104 v = 9.3644e+105 y = 9.3667e+105 s = 101000 v = 9.3644e+105 v = 9.3644e+105 v = 9.3644e+105 v = 2.3579e+108 v = 2.3579e+108 v = 3.9935e+109 y = 3.9944e+109 s = 101001 v = 1.9024e+110 v = 1.9024e+110 v = 1.9024e+110 v = 9.8099e+111 v = 9.8099e+111 v = 1.6372e+113 y = 1.6376e+113 s = 101010 v = 1.6372e+113 v = 2.6263e+114 v = 2.6263e+114 v = 4.2028e+115 v = 4.2028e+115 v = 6.7246e+116 y = 6.7262e+116 s = 101011 v = 3.1942e+117 v = 1.3281e+118 v = 1.3281e+118 v = 1.7467e+119 v = 1.7467e+119 v = 2.7569e+120 y = 2.7576e+120 s = 101100 v = 2.7569e+120 v = 2.7569e+120 v = 1.6802e+122 v = 8.2908e+122 v = 8.2908e+122 v = 1.1406e+124 y = 1.1409e+124 s = 101101 v = 5.3714e+124 v = 5.3714e+124 v = 7.3063e+125 v = 3.4383e+126 v = 3.4383e+126 v = 4.6761e+127 y = 4.6773e+127 s = 101110 v = 4.6761e+127 v = 7.3993e+128 v = 3.5126e+129 v = 1.4603e+130 v = 1.4603e+130 v = 1.9205e+131 y = 1.9210e+131 s = 101111 v = 9.0186e+131 v = 3.7411e+132 v = 1.5098e+133 v = 6.0525e+133 v = 6.0525e+133 v = 7.8736e+134 y = 7.8756e+134 s = 110000 v = 7.8736e+134 v = 7.8736e+134 v = 7.8736e+134 v = 7.8736e+134 v = 7.4507e+137 v = 3.7222e+138 y = 3.7230e+138 s = 110001 v = 1.5631e+139 v = 1.5631e+139 v = 1.5631e+139 v = 1.5631e+139 v = 3.0642e+141 v = 1.5259e+142 y = 1.5262e+142 s = 110010 v = 1.5259e+142 v = 2.1037e+143 v = 2.1037e+143 v = 2.1037e+143 v = 1.2697e+145 v = 6.2645e+145 y = 6.2661e+145 s = 110011 v = 2.6244e+146 v = 1.0616e+147 v = 1.0616e+147 v = 1.0616e+147 v = 5.2208e+148 v = 2.5680e+149 y = 2.5686e+149 s = 110100 v = 2.5680e+149 v = 2.5680e+149 v = 1.3350e+151 v = 1.3350e+151 v = 2.2285e+152 v = 1.0608e+153 y = 1.0611e+153 s = 110101 v = 4.4128e+153 v = 4.4128e+153 v = 5.8044e+154 v = 5.8044e+154 v = 9.1614e+155 v = 4.3485e+156 y = 4.3496e+156 s = 110110 v = 4.3485e+156 v = 5.9267e+157 v = 2.7894e+158 v = 2.7894e+158 v = 3.7937e+159 v = 1.7853e+160 y = 1.7857e+160 s = 110111 v = 7.4089e+160 v = 2.9903e+161 v = 1.1988e+162 v = 1.1988e+162 v = 1.5595e+163 v = 7.3181e+163 y = 7.3199e+163 s = 111000 v = 7.3181e+163 v = 7.3181e+163 v = 7.3181e+163 v = 1.4815e+166 v = 7.3783e+166 v = 3.0966e+167 y = 3.0973e+167 s = 111001 v = 1.2531e+168 v = 1.2531e+168 v = 1.2531e+168 v = 6.1637e+169 v = 3.0317e+170 v = 1.2693e+171 y = 1.2696e+171 s = 111010 v = 1.2693e+171 v = 1.6727e+172 v = 1.6727e+172 v = 2.6406e+173 v = 1.2534e+174 v = 5.2107e+174 y = 5.2119e+174 s = 111011 v = 2.1040e+175 v = 8.4356e+175 v = 8.4356e+175 v = 1.0974e+177 v = 5.1497e+177 v = 2.1359e+178 y = 2.1364e+178 s = 111100 v = 2.1359e+178 v = 2.1359e+178 v = 1.0587e+180 v = 5.2083e+180 v = 2.1806e+181 v = 8.8199e+181 y = 8.8220e+181 s = 111101 v = 3.5377e+182 v = 3.5377e+182 v = 4.6029e+183 v = 2.1599e+184 v = 8.9585e+184 v = 3.6153e+185 y = 3.6162e+185 s = 111110 v = 3.6153e+185 v = 4.7126e+186 v = 2.2117e+187 v = 9.1734e+187 v = 3.7020e+188 v = 1.4841e+189 y = 1.4844e+189 s = 111111 v = 5.9396e+189 v = 2.3762e+190 v = 9.5050e+190 v = 3.8020e+191 v = 1.5208e+192 v = 6.0833e+192 y = 6.0847e+192 s = 1000000 v = 6.0833e+192 v = 6.0833e+192 v = 6.0833e+192 v = 6.0833e+192 v = 6.0833e+192 v = 6.0833e+192 v = 7.4757e+196 y = 7.4763e+196 s = 1000001 v = 3.7376e+197 v = 3.7376e+197 v = 3.7376e+197 v = 3.7376e+197 v = 3.7376e+197 v = 3.7376e+197 v = 1.2251e+201 y = 1.2252e+201 s = 1000010 v = 1.2251e+201 v = 2.0821e+202 v = 2.0821e+202 v = 2.0821e+202 v = 2.0821e+202 v = 2.0821e+202 v = 2.0087e+205 y = 2.0088e+205 s = 1000011 v = 1.0035e+206 v = 4.2140e+206 v = 4.2140e+206 v = 4.2140e+206 v = 4.2140e+206 v = 4.2140e+206 v = 3.2918e+209 y = 3.2920e+209 s = 1000100 v = 3.2918e+209 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 = 21520 v = 21520 v = 283664 v = 283664 v = 283664 v = 17060880 v = 84169744 y = 84174880 s = 1100110 v = 84169744 v = 1.1579e+09 v = 5.4529e+09 v = 5.4529e+09 v = 5.4529e+09 v = 2.8033e+11 v = 1.3798e+12 y = 1.3799e+12 s = 1100111 v = 5.7779e+12 v = 2.3370e+13 v = 9.3739e+13 v = 9.3739e+13 v = 9.3739e+13 v = 4.5973e+15 v = 2.2612e+16 y = 2.2613e+16 s = 1101000 v = 2.2612e+16 v = 2.2612e+16 v = 2.2612e+16 v = 4.6343e+18 v = 4.6343e+18 v = 7.8421e+19 v = 3.7357e+20 y = 3.7359e+20 s = 1101001 v = 1.5542e+21 v = 1.5542e+21 v = 1.5542e+21 v = 7.7112e+22 v = 7.7112e+22 v = 1.2860e+24 v = 6.1217e+24 y = 6.1221e+24 s = 1101010 v = 6.1217e+24 v = 8.3493e+25 v = 8.3493e+25 v = 1.3214e+27 v = 1.3214e+27 v = 2.1128e+28 v = 1.0036e+29 y = 1.0036e+29 s = 1101011 v = 4.1727e+29 v = 1.6849e+30 v = 1.6849e+30 v = 2.1967e+31 v = 2.1967e+31 v = 3.4649e+32 v = 1.6446e+33 y = 1.6447e+33 s = 1101100 v = 1.6446e+33 v = 1.6446e+33 v = 8.4721e+34 v = 4.1703e+35 v = 4.1703e+35 v = 5.7339e+36 v = 2.7002e+37 y = 2.7003e+37 s = 1101101 v = 1.1207e+38 v = 1.1207e+38 v = 1.4732e+39 v = 6.9177e+39 v = 6.9177e+39 v = 9.4030e+40 v = 4.4248e+41 y = 4.4251e+41 s = 1101110 v = 4.4248e+41 v = 6.0177e+42 v = 2.8318e+43 v = 1.1752e+44 v = 1.1752e+44 v = 1.5448e+45 v = 7.2538e+45 y = 7.2542e+45 s = 1101111 v = 3.0090e+46 v = 1.2143e+47 v = 4.8681e+47 v = 1.9483e+48 v = 1.9483e+48 v = 2.5332e+49 v = 1.1887e+50 y = 1.1888e+50 s = 1110000 v = 1.1887e+50 v = 1.1887e+50 v = 1.1887e+50 v = 1.1887e+50 v = 9.5900e+52 v = 4.7902e+53 v = 2.0115e+54 y = 2.0116e+54 s = 1110001 v = 8.1415e+54 v = 8.1415e+54 v = 8.1415e+54 v = 8.1415e+54 v = 1.5774e+57 v = 7.8545e+57 v = 3.2963e+58 y = 3.2965e+58 s = 1110010 v = 3.2963e+58 v = 4.3470e+59 v = 4.3470e+59 v = 4.3470e+59 v = 2.6146e+61 v = 1.2899e+62 v = 5.4037e+62 y = 5.4040e+62 s = 1110011 v = 2.1859e+63 v = 8.7679e+63 v = 8.7679e+63 v = 8.7679e+63 v = 4.3002e+65 v = 2.1150e+66 v = 8.8550e+66 y = 8.8555e+66 s = 1110100 v = 8.8550e+66 v = 8.8550e+66 v = 4.4021e+68 v = 4.4021e+68 v = 7.3420e+69 v = 3.4949e+70 v = 1.4538e+71 y = 1.4539e+71 s = 1110101 v = 5.8709e+71 v = 5.8709e+71 v = 7.6545e+72 v = 7.6545e+72 v = 1.2073e+74 v = 5.7305e+74 v = 2.3823e+75 y = 2.3824e+75 s = 1110110 v = 2.3823e+75 v = 3.1330e+76 v = 1.4712e+77 v = 1.4712e+77 v = 1.9998e+78 v = 9.4105e+78 v = 3.9053e+79 y = 3.9056e+79 s = 1110111 v = 1.5762e+80 v = 6.3191e+80 v = 2.5290e+81 v = 2.5290e+81 v = 3.2883e+82 v = 1.5430e+83 v = 6.3997e+83 y = 6.4001e+83 s = 1111000 v = 6.3997e+83 v = 6.3997e+83 v = 6.3997e+83 v = 1.2497e+86 v = 6.2229e+86 v = 2.6116e+87 v = 1.0569e+88 y = 1.0569e+88 s = 1111001 v = 4.2397e+88 v = 4.2397e+88 v = 4.2397e+88 v = 2.0794e+90 v = 1.0228e+91 v = 4.2820e+91 v = 1.7319e+92 y = 1.7320e+92 s = 1111010 v = 1.7319e+92 v = 2.2591e+93 v = 2.2591e+93 v = 3.5634e+94 v = 1.6913e+95 v = 7.0313e+95 v = 2.8391e+96 y = 2.8393e+96 s = 1111011 v = 1.1383e+97 v = 4.5559e+97 v = 4.5559e+97 v = 5.9237e+98 v = 2.7796e+99 v = 1.1529e+100 v = 4.6525e+100 y = 4.6527e+100 s = 1111100 v = 4.6525e+100 v = 4.6525e+100 v = 2.2863e+102 v = 1.1245e+103 v = 4.7081e+103 v = 1.9042e+104 v = 7.6380e+104 y = 7.6385e+104 s = 1111101 v = 3.0573e+105 v = 3.0573e+105 v = 3.9753e+106 v = 1.8654e+107 v = 7.7367e+107 v = 3.1222e+108 v = 1.2516e+109 y = 1.2517e+109 s = 1111110 v = 1.2516e+109 v = 1.6282e+110 v = 7.6405e+110 v = 3.1690e+111 v = 1.2789e+112 v = 5.1267e+112 v = 2.0518e+113 y = 2.0519e+113 s = 1111111 v = 8.2084e+113 v = 3.2835e+114 v = 1.3134e+115 v = 5.2536e+115 v = 2.1014e+116 v = 8.4058e+116 v = 3.3623e+117 y = 3.3625e+117 s = 10000000 v = 3.3623e+117 v = 3.3623e+117 v = 3.3623e+117 v = 3.3623e+117 v = 3.3623e+117 v = 3.3623e+117 v = 3.3623e+117 v = 1.6527e+122 y = 1.6527e+122 s = 10000001 v = 8.2632e+122 v = 8.2632e+122 v = 8.2632e+122 v = 8.2632e+122 v = 8.2632e+122 v = 8.2632e+122 v = 8.2632e+122 v = 1.0832e+127 y = 1.0832e+127 s = 10000010 v = 1.0832e+127 v = 1.8412e+128 v = 1.8412e+128 v = 1.8412e+128 v = 1.8412e+128 v = 1.8412e+128 v = 1.8412e+128 v = 7.0999e+131 y = 7.1000e+131 s = 10000011 v = 3.5492e+132 v = 1.4906e+133 v = 1.4906e+133 v = 1.4906e+133 v = 1.4906e+133 v = 1.4906e+133 v = 1.4906e+133 v = 4.6533e+136 y = 4.6533e+136 s = 10000100 v = 4.6533e+136 v = 4.6533e+136 v = 3.0237e+138 v = 3.0237e+138 v = 3.0237e+138 v = 3.0237e+138 v = 3.0237e+138 v = 3.0516e+141 y = 3.0517e+141 s = 10000101 v = 1.5246e+142 v = 1.5246e+142 v = 2.1036e+143 v = 2.1036e+143 v = 2.1036e+143 v = 2.1036e+143 v = 2.1036e+143 v = 2.0000e+146 y = 2.0001e+146 s = 10000110 v = 2.0000e+146 v = 3.3967e+147 v = 1.6183e+148 v = 1.6183e+148 v = 1.6183e+148 v = 1.6183e+148 v = 1.6183e+148 v = 1.3110e+151 y = 1.3110e+151 s = 10000111 v = 6.5484e+151 v = 2.7498e+152 v = 1.1130e+153 v = 1.1130e+153 v = 1.1130e+153 v = 1.1130e+153 v = 1.1130e+153 v = 8.5921e+155 y = 8.5923e+155 s = 10001000 v = 8.5921e+155 v = 8.5921e+155 v = 8.5921e+155 v = 2.2053e+158 v = 2.2053e+158 v = 2.2053e+158 v = 2.2053e+158 v = 5.6457e+160 y = 5.6458e+160 s = 10001001 v = 2.8140e+161 v = 2.8140e+161 v = 2.8140e+161 v = 1.4678e+163 v = 1.4678e+163 v = 1.4678e+163 v = 1.4678e+163 v = 3.7002e+165 y = 3.7002e+165 s = 10001010 v = 3.7002e+165 v = 6.2668e+166 v = 6.2668e+166 v = 1.0062e+168 v = 1.0062e+168 v = 1.0062e+168 v = 1.0062e+168 v = 2.4254e+170 y = 2.4254e+170 s = 10001011 v = 1.2087e+171 v = 5.0732e+171 v = 5.0732e+171 v = 6.6906e+172 v = 6.6906e+172 v = 6.6906e+172 v = 6.6906e+172 v = 1.5896e+175 y = 1.5896e+175 s = 10001100 v = 1.5896e+175 v = 1.5896e+175 v = 1.0290e+177 v = 5.0812e+177 v = 5.0812e+177 v = 5.0812e+177 v = 5.0812e+177 v = 1.0425e+180 y = 1.0425e+180 s = 10001101 v = 5.1920e+180 v = 5.1920e+180 v = 7.1584e+181 v = 3.3715e+182 v = 3.3715e+182 v = 3.3715e+182 v = 3.3715e+182 v = 6.8323e+184 y = 6.8324e+184 s = 10001110 v = 6.8323e+184 v = 1.1561e+186 v = 5.5072e+186 v = 2.2912e+187 v = 2.2912e+187 v = 2.2912e+187 v = 2.2912e+187 v = 4.4784e+189 y = 4.4785e+189 s = 10001111 v = 2.2300e+190 v = 9.3589e+190 v = 3.7874e+191 v = 1.5194e+192 v = 1.5194e+192 v = 1.5194e+192 v = 1.5194e+192 v = 2.9352e+194 y = 2.9352e+194 s = 10010000 v = 2.9352e+194 v = 2.9352e+194 v = 2.9352e+194 v = 2.9352e+194 v = 2.9930e+197 v = 2.9930e+197 v = 2.9930e+197 v = 1.9436e+199 y = 1.9436e+199 s = 10010001 v = 9.5981e+199 v = 9.5981e+199 v = 9.5981e+199 v = 9.5981e+199 v = 1.9692e+202 v = 1.9692e+202 v = 1.9692e+202 v = 1.2738e+204 y = 1.2738e+204 s = 10010010 v = 1.2738e+204 v = 2.1340e+205 v = 2.1340e+205 v = 2.1340e+205 v = 1.3056e+207 v = 1.3056e+207 v = 1.3056e+207 v = 8.3495e+208 y = 8.3496e+208 s = 10010011 v = 4.1225e+209 v = 1.7273e+210 v = 1.7273e+210 v = 1.7273e+210 v = 8.5889e+211 v = 8.5889e+211 v = 8.5889e+211 v = 5.4723e+213 y = 5.4724e+213 s = 10010100 v = 5.4723e+213 v = 5.4723e+213 v = 3.5020e+215 v = 3.5020e+215 v = 5.8659e+216 v = 5.8659e+216 v = 5.8659e+216 v = 3.5887e+218 y = 3.5887e+218 s = 10010101 v = 1.7709e+219 v = 1.7709e+219 v = 2.4363e+220 v = 2.4363e+220 v = 3.8584e+221 v = 3.8584e+221 v = 3.8584e+221 v = 2.3520e+223 y = 2.3521e+223 s = 10010110 v = 2.3520e+223 v = 3.9367e+224 v = 1.8743e+225 v = 1.8743e+225 v = 2.5564e+226 v = 2.5564e+226 v = 2.5564e+226 v = 1.5417e+228...

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 = 1 v = 17 y = 18 s = 11 v = 81 v = 337 y = 355 s = 100 v = 337 v = 337 v = 16721 y = 17076 s = 101 v = 82257 v = 82257 v = 1130833 y = 1147909 s = 110 v = 1130833 v = 17908049 v = 85016913 y = 86164822 s = 111 v = 353452369 v = 1.4272e+09 v = 5.7222e+09 y = 5.8083e+09 s = 1000 v = 5.7222e+09 v = 5.7222e+09 v = 5.7222e+09 v = 1.1052e+12 y = 1.1110e+12 s = 1001 v = 5.5033e+12 v = 5.5033e+12 v = 5.5033e+12 v = 2.8698e+14 y = 2.8809e+14 s = 1010 v = 2.8698e+14 v = 4.7906e+15 v = 4.7906e+15 v = 7.6848e+16 y = 7.7136e+16 s = 1011 v = 3.6508e+17 v = 1.5180e+18 v = 1.5180e+18 v = 1.9965e+19 y = 2.0042e+19 s = 1100 v = 1.9965e+19 v = 1.9965e+19 v = 1.2006e+21 v = 5.9229e+21 y = 5.9430e+21 s = 1101 v = 2.4812e+22 v = 2.4812e+22 v = 3.2704e+23 v = 1.5360e+24 y = 1.5419e+24 s = 1110 v = 1.5360e+24 v = 2.0879e+25 v = 9.8250e+25 v = 4.0774e+26 y = 4.0928e+26 s = 1111 v = 1.6457e+27 v = 6.5974e+27 v = 2.6404e+28 v = 1.0563e+29 y = 1.0604e+29 s = 10000 v = 1.0563e+29 v = 1.0563e+29 v = 1.0563e+29 v = 1.0563e+29 v = 8.1235e+31 y = 8.1341e+31 s = 10001 v = 4.0575e+32 v = 4.0575e+32 v = 4.0575e+32 v = 4.0575e+32 v = 8.3483e+34 y = 8.3564e+34 s = 10010 v = 8.3483e+34 v = 1.4127e+36 v = 1.4127e+36 v = 1.4127e+36 v = 8.6483e+37 y = 8.6567e+37 s = 10011 v = 4.2677e+38 v = 1.7879e+39 v = 1.7879e+39 v = 1.7879e+39 v = 8.8900e+40 y = 8.8987e+40 s = 10100 v = 8.8900e+40 v = 8.8900e+40 v = 5.6641e+42 v = 5.6641e+42 v = 9.4867e+43 y = 9.4956e+43 s = 10101 v = 4.5168e+44 v = 4.5168e+44 v = 6.1607e+45 v = 6.1607e+45 v = 9.7505e+46 y = 9.7599e+46 s = 10110 v = 9.7505e+46 v = 1.5590e+48 v = 7.4050e+48 v = 7.4050e+48 v = 1.0094e+50 y = 1.0104e+50 s = 10111 v = 4.7509e+50 v = 1.9717e+51 v = 7.9580e+51 v = 7.9580e+51 v = 1.0374e+53 y = 1.0384e+53 s = 11000 v = 1.0374e+53 v = 1.0374e+53 v = 1.0374e+53 v = 2.4624e+55 v = 1.2270e+56 y = 1.2281e+56 s = 11001 v = 5.1502e+56 v = 5.1502e+56 v = 5.1502e+56 v = 2.5623e+58 v = 1.2606e+59 y = 1.2618e+59 s = 11010 v = 1.2606e+59 v = 1.7330e+60 v = 1.7330e+60 v = 2.7444e+61 v = 1.3029e+62 y = 1.3041e+62 s = 11011 v = 5.4166e+62 v = 2.1872e+63 v = 2.1872e+63 v = 2.8515e+64 v = 1.3383e+65 y = 1.3396e+65 s = 11100 v = 1.3383e+65 v = 1.3383e+65 v = 6.8738e+66 v = 3.3834e+67 v = 1.4167e+68 y = 1.4181e+68 s = 11101 v = 5.7303e+68 v = 5.7303e+68 v = 7.4748e+69 v = 3.5082e+70 v = 1.4551e+71 y = 1.4565e+71 s = 11110 v = 1.4551e+71 v = 1.9124e+72 v = 8.9797e+72 v = 3.7249e+73 v = 1.5033e+74 y = 1.5047e+74 s = 11111 v = 6.0264e+74 v = 2.4119e+75 v = 9.6489e+75 v = 3.8597e+76 v = 1.5439e+77 y = 1.5454e+77 s = 100000 v = 1.5439e+77 v = 1.5439e+77 v = 1.5439e+77 v = 1.5439e+77 v = 1.5439e+77 v = 4.7444e+80 y = 4.7459e+80 s = 100001 v = 2.3716e+81 v = 2.3716e+81 v = 2.3716e+81 v = 2.3716e+81 v = 2.3716e+81 v = 1.9450e+84 y = 1.9455e+84 s = 100010 v = 1.9450e+84 v = 3.3028e+85 v = 3.3028e+85 v = 3.3028e+85 v = 3.3028e+85 v = 7.9902e+87 y = 7.9921e+87 s = 100011 v = 3.9819e+88 v = 1.6713e+89 v = 1.6713e+89 v = 1.6713e+89 v = 1.6713e+89 v = 3.2760e+91 y = 3.2768e+91 s = 100100 v = 3.2760e+91 v = 3.2760e+91 v = 2.1187e+93 v = 2.1187e+93 v = 2.1187e+93 v = 1.3562e+95 y = 1.3565e+95 s = 100101 v = 6.6961e+95 v = 6.6961e+95 v = 9.2136e+96 v = 9.2136e+96 v = 9.2136e+96 v = 5.5603e+98 y = 5.5616e+98 s = 100110 v = 5.5603e+98 v = 9.3050e+99 v = 4.4301e+100 v = 4.4301e+100 v = 4.4301e+100 v = 2.2840e+102 y = 2.2846e+102 s = 100111 v = 1.1243e+103 v = 4.7079e+103 v = 1.9042e+104 v = 1.9042e+104 v = 1.9042e+104 v = 9.3644e+105 y = 9.3667e+105 s = 101000 v = 9.3644e+105 v = 9.3644e+105 v = 9.3644e+105 v = 2.3579e+108 v = 2.3579e+108 v = 3.9935e+109 y = 3.9944e+109 s = 101001 v = 1.9024e+110 v = 1.9024e+110 v = 1.9024e+110 v = 9.8099e+111 v = 9.8099e+111 v = 1.6372e+113 y = 1.6376e+113 s = 101010 v = 1.6372e+113 v = 2.6263e+114 v = 2.6263e+114 v = 4.2028e+115 v = 4.2028e+115 v = 6.7246e+116 y = 6.7262e+116 s = 101011 v = 3.1942e+117 v = 1.3281e+118 v = 1.3281e+118 v = 1.7467e+119 v = 1.7467e+119 v = 2.7569e+120 y = 2.7576e+120 s = 101100 v = 2.7569e+120 v = 2.7569e+120 v = 1.6802e+122 v = 8.2908e+122 v = 8.2908e+122 v = 1.1406e+124 y = 1.1409e+124 s = 101101 v = 5.3714e+124 v = 5.3714e+124 v = 7.3063e+125 v = 3.4383e+126 v = 3.4383e+126 v = 4.6761e+127 y = 4.6773e+127 s = 101110 v = 4.6761e+127 v = 7.3993e+128 v = 3.5126e+129 v = 1.4603e+130 v = 1.4603e+130 v = 1.9205e+131 y = 1.9210e+131 s = 101111 v = 9.0186e+131 v = 3.7411e+132 v = 1.5098e+133 v = 6.0525e+133 v = 6.0525e+133 v = 7.8736e+134 y = 7.8756e+134 s = 110000 v = 7.8736e+134 v = 7.8736e+134 v = 7.8736e+134 v = 7.8736e+134 v = 7.4507e+137 v = 3.7222e+138 y = 3.7230e+138 s = 110001 v = 1.5631e+139 v = 1.5631e+139 v = 1.5631e+139 v = 1.5631e+139 v = 3.0642e+141 v = 1.5259e+142 y = 1.5262e+142 s = 110010 v = 1.5259e+142 v = 2.1037e+143 v = 2.1037e+143 v = 2.1037e+143 v = 1.2697e+145 v = 6.2645e+145 y = 6.2661e+145 s = 110011 v = 2.6244e+146 v = 1.0616e+147 v = 1.0616e+147 v = 1.0616e+147 v = 5.2208e+148 v = 2.5680e+149 y = 2.5686e+149 s = 110100 v = 2.5680e+149 v = 2.5680e+149 v = 1.3350e+151 v = 1.3350e+151 v = 2.2285e+152 v = 1.0608e+153 y = 1.0611e+153 s = 110101 v = 4.4128e+153 v = 4.4128e+153 v = 5.8044e+154 v = 5.8044e+154 v = 9.1614e+155 v = 4.3485e+156 y = 4.3496e+156 s = 110110 v = 4.3485e+156 v = 5.9267e+157 v = 2.7894e+158 v = 2.7894e+158 v = 3.7937e+159 v = 1.7853e+160 y = 1.7857e+160 s = 110111 v = 7.4089e+160 v = 2.9903e+161 v = 1.1988e+162 v = 1.1988e+162 v = 1.5595e+163 v = 7.3181e+163 y = 7.3199e+163 s = 111000 v = 7.3181e+163 v = 7.3181e+163 v = 7.3181e+163 v = 1.4815e+166 v = 7.3783e+166 v = 3.0966e+167 y = 3.0973e+167 s = 111001 v = 1.2531e+168 v = 1.2531e+168 v = 1.2531e+168 v = 6.1637e+169 v = 3.0317e+170 v = 1.2693e+171 y = 1.2696e+171 s = 111010 v = 1.2693e+171 v = 1.6727e+172 v = 1.6727e+172 v = 2.6406e+173 v = 1.2534e+174 v = 5.2107e+174 y = 5.2119e+174 s = 111011 v = 2.1040e+175 v = 8.4356e+175 v = 8.4356e+175 v = 1.0974e+177 v = 5.1497e+177 v = 2.1359e+178 y = 2.1364e+178 s = 111100 v = 2.1359e+178 v = 2.1359e+178 v = 1.0587e+180 v = 5.2083e+180 v = 2.1806e+181 v = 8.8199e+181 y = 8.8220e+181 s = 111101 v = 3.5377e+182 v = 3.5377e+182 v = 4.6029e+183 v = 2.1599e+184 v = 8.9585e+184 v = 3.6153e+185 y = 3.6162e+185 s = 111110 v = 3.6153e+185 v = 4.7126e+186 v = 2.2117e+187 v = 9.1734e+187 v = 3.7020e+188 v = 1.4841e+189 y = 1.4844e+189 s = 111111 v = 5.9396e+189 v = 2.3762e+190 v = 9.5050e+190 v = 3.8020e+191 v = 1.5208e+192 v = 6.0833e+192 y = 6.0847e+192 s = 1000000 v = 6.0833e+192 v = 6.0833e+192 v = 6.0833e+192 v = 6.0833e+192 v = 6.0833e+192 v = 6.0833e+192 v = 7.4757e+196 y = 7.4763e+196 s = 1000001 v = 3.7376e+197 v = 3.7376e+197 v = 3.7376e+197 v = 3.7376e+197 v = 3.7376e+197 v = 3.7376e+197 v = 1.2251e+201 y = 1.2252e+201 s = 1000010 v = 1.2251e+201 v = 2.0821e+202 v = 2.0821e+202 v = 2.0821e+202 v = 2.0821e+202 v = 2.0821e+202 v = 2.0087e+205 y = 2.0088e+205 s = 1000011 v = 1.0035e+206 v = 4.2140e+206 v = 4.2140e+206 v = 4.2140e+206 v = 4.2140e+206 v = 4.2140e+206 v = 3.2918e+209 y = 3.2920e+209 s = 1000100 v = 3.2918e+209 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 = 5263620 v = 22040836 v = 22040836 v = 22040836 v = 1.0958e+09 v = 1.0958e+09 v = 1.8276e+10 v = 8.6995e+10 v = 8.6995e+10 v = 8.6995e+10 v = 4.4850e+12 y = 4.4850e+12 s = 1.0011e+10 v = 4.4850e+12 v = 4.4850e+12 v = 2.8596e+14 v = 2.8596e+14 v = 4.7896e+15 v = 4.7896e+15 v = 7.6847e+16 v = 3.6508e+17 v = 3.6508e+17 v = 3.6508e+17 v = 1.8812e+19 y = 1.8812e+19 s = 1.0011e+10 v = 9.2599e+19 v = 9.2599e+19 v = 1.2732e+21 v = 1.2732e+21 v = 2.0163e+22 v = 2.0163e+22 v = 3.2239e+23 v = 1.5313e+24 v = 1.5313e+24 v = 1.5313e+24 v = 7.8903e+25 y = 7.8903e+25 s = 1.0011e+10 v = 7.8903e+25 v = 1.3168e+27 v = 6.2686e+27 v = 6.2686e+27 v = 8.5497e+28 v = 8.5497e+28 v = 1.3531e+30 v = 6.4237e+30 v = 6.4237e+30 v = 6.4237e+30 v = 3.3094e+32 y = 3.3094e+32 s = 1.0011e+10 v = 1.6290e+33 v = 6.8213e+33 v = 2.7591e+34 v = 2.7591e+34 v = 3.5990e+35 v = 3.5990e+35 v = 5.6768e+36 v = 2.6944e+37 v = 2.6944e+37 v = 2.6944e+37 v = 1.3881e+39 y = 1.3881e+39 s = 1.0011e+10 v = 1.3881e+39 v = 1.3881e+39 v = 1.3881e+39 v = 3.4984e+41 v = 1.7436e+42 v = 1.7436e+42 v = 2.4044e+43 v = 1.1325e+44 v = 1.1325e+44 v = 1.1325e+44 v = 5.8222e+45 y = 5.8222e+45 s = 1.0011e+10 v = 2.8658e+46 v = 2.8658e+46 v = 2.8658e+46 v = 1.4902e+48 v = 7.3362e+48 v = 7.3362e+48 v = 1.0087e+50 v = 4.7502e+50 v = 4.7502e+50 v = 4.7502e+50 v = 2.4420e+52 y = 2.4420e+52 s = 1.0011e+10 v = 2.4420e+52 v = 4.0754e+53 v = 4.0754e+53 v = 6.5375e+54 v = 3.1057e+55 v = 3.1057e+55 v = 4.2338e+56 v = 1.9927e+57 v = 1.9927e+57 v = 1.9927e+57 v = 1.0243e+59 y = 1.0243e+59 s = 1.0011e+10 v = 5.0416e+59 v = 2.1111e+60 v = 2.1111e+60 v = 2.7822e+61 v = 1.3067e+62 v = 1.3067e+62 v = 1.7762e+63 v = 8.3582e+63 v = 8.3582e+63 v = 8.3582e+63 v = 4.2961e+65 y = 4.2961e+65 s = 1.0011e+10 v = 4.2961e+65 v = 4.2961e+65 v = 2.7390e+67 v = 1.3523e+68 v = 5.6659e+68 v = 5.6659e+68 v = 7.4683e+69 v = 3.5075e+70 v = 3.5075e+70 v = 3.5075e+70 v = 1.8019e+72 y = 1.8019e+72 s = 1.0011e+10 v = 8.8693e+72 v = 8.8693e+72 v = 1.2195e+74 v = 5.7426e+74 v = 2.3835e+75 v = 2.3835e+75 v = 3.1332e+76 v = 1.4712e+77 v = 1.4712e+77 v = 1.4712e+77 v = 7.5578e+78 y = 7.5578e+78 s = 1.0011e+10 v = 7.5578e+78 v = 1.2613e+80 v = 6.0041e+80 v = 2.4976e+81 v = 1.0086e+82 v = 1.0086e+82 v = 1.3150e+83 v = 6.1717e+83 v = 6.1717e+83 v = 6.1717e+83 v = 3.1700e+85 y = 3.1700e+85 s = 1.0011e+10 v = 1.5603e+86 v = 6.5335e+86 v = 2.6426e+87 v = 1.0600e+88 v = 4.2429e+88 v = 4.2429e+88 v = 5.5169e+89 v = 2.5887e+90 v = 2.5887e+90 v = 2.5887e+90 v = 1.3296e+92 y = 1.3296e+92 s = 1.0011e+10 v = 1.3296e+92 v = 1.3296e+92 v = 1.3296e+92 v = 1.3296e+92 v = 1.3296e+92 v = 5.3413e+95 v = 2.6701e+96 v = 1.1214e+97 v = 1.1214e+97 v = 1.1214e+97 v = 5.5803e+98 y = 5.5803e+98 s = 1.0011e+10 v = 2.7453e+99 v = 2.7453e+99 v = 2.7453e+99 v = 2.7453e+99 v = 2.7453e+99 v = 2.2425e+102 v = 1.1201e+103 v = 4.7037e+103 v = 4.7037e+103 v = 4.7037e+103 v = 2.3405e+105 y = 2.3405e+105 s = 1.0011e+10 v = 2.3405e+105 v = 3.9037e+106 v = 3.9037e+106 v = 3.9037e+106 v = 3.9037e+106 v = 9.4332e+108 v = 4.7010e+109 v = 1.9732e+110 v = 1.9732e+110 v = 1.9732e+110 v = 9.8169e+111 y = 9.8169e+111 s = 1.0011e+10 v = 4.8295e+112 v = 2.0221e+113 v = 2.0221e+113 v = 2.0221e+113 v = 2.0221e+113 v = 3.9604e+115 v = 1.9721e+116 v = 8.2764e+116 v = 8.2764e+116 v = 8.2764e+116 v = 4.1175e+118 y = 4.1175e+118 s = 1.0011e+10 v = 4.1175e+118 v = 4.1175e+118 v = 2.6234e+120 v = 2.6234e+120 v = 2.6234e+120 v = 1.6789e+122 v = 8.2894e+122 v = 3.4732e+123 v = 3.4732e+123 v = 3.4732e+123 v = 1.7270e+125 y = 1.7270e+125 s = 1.0011e+10 v = 8.4962e+125 v = 8.4962e+125 v = 1.1680e+127 v = 1.1680e+127 v = 1.1680e+127 v = 7.0485e+128 v = 3.4775e+129 v = 1.4568e+130 v = 1.4568e+130 v = 1.4568e+130 v = 7.2437e+131 y = 7.2437e+131 s = 1.0011e+10 v = 7.2437e+131 v = 1.2081e+133 v = 5.7509e+133 v = 5.7509e+133 v = 5.7509e+133 v = 2.9649e+135 v = 1.4594e+136 v = 6.1112e+136 v = 6.1112e+136 v = 6.1112e+136 v = 3.0382e+138 y = 3.0382e+138 s = 1.0011e+10 v = 1.4947e+139 v = 6.2581e+139 v = 2.5312e+140 v = 2.5312e+140 v = 2.5312e+140 v = 1.2447e+142 v = 6.1225e+142 v = 2.5633e+143 v = 2.5633e+143 v = 2.5633e+143 v = 1.2743e+145 y = 1.2743e+145 s = 1.0011e+10 v = 1.2743e+145 v = 1.2743e+145 v = 1.2743e+145 v = 3.2094e+147 v = 3.2094e+147 v = 5.4356e+148 v = 2.5894e+149 v = 1.0773e+150 v = 1.0773e+150 v = 1.0773e+150 v = 5.3452e+151 y = 5.3452e+151 s = 1.0011e+10 v = 2.6295e+152 v = 2.6295e+152 v = 2.6295e+152 v = 1.3671e+154 v = 1.3671e+154 v = 2.2820e+155 v = 1.0863e+156 v = 4.5187e+156 v = 4.5187e+156 v = 4.5187e+156 v = 2.2419e+158 y = 2.2419e+158 s = 1.0011e+10 v = 2.2419e+158 v = 3.7390e+159 v = 3.7390e+159 v = 5.9975e+160 v = 5.9975e+160 v = 9.5976e+161 v = 4.5589e+162 v = 1.8955e+163 v = 1.8955e+163 v = 1.8955e+163 v = 9.4033e+164 y = 9.4033e+164 s = 1.0011e+10 v = 4.6258e+165 v = 1.9368e+166 v = 1.9368e+166 v = 2.5524e+167 v = 2.5524e+167 v = 4.0292e+168 v = 1.9125e+169 v = 7.9508e+169 v = 7.9508e+169 v = 7.9508e+169 v = 3.9440e+171 y = 3.9440e+171 s = 1.0011e+10 v = 3.9440e+171 v = 3.9440e+171 v = 2.5127e+173 v = 1.2406e+174 v = 1.2406e+174 v = 1.7070e+175 v = 8.0386e+175 v = 3.3365e+176 v = 3.3365e+176 v = 3.3365e+176 v = 1.6543e+178 y = 1.6543e+178 s = 1.0011e+10 v = 8.1379e+178 v = 8.1379e+178 v = 1.1188e+180 v = 5.2683e+180 v = 5.2683e+180 v = 7.1661e+181 v = 3.3723e+182 v = 1.3995e+183 v = 1.3995e+183 v = 1.3995e+183 v = 6.9385e+184 y = 6.9385e+184 s = 1.0011e+10 v = 6.9385e+184 v = 1.1572e+186 v = 5.5082e+186 v = 2.2913e+187 v = 2.2913e+187 v = 3.0138e+188 v = 1.4153e+189 v = 5.8708e+189 v = 5.8708e+189 v = 5.8708e+189 v = 2.9102e+191 y = 2.9102e+191 s = 1.0011e+10 v = 1.4316e+192 v = 5.9941e+192 v = 2.4244e+193 v = 9.7243e+193 v = 9.7243e+193 v = 1.2652e+195 v = 5.9372e+195 v = 2.4625e+196 v = 2.4625e+196 v = 2.4625e+196 v = 1.2206e+198 y = 1.2206e+198 s = 1.0011e+10 v = 1.2206e+198 v = 1.2206e+198 v = 1.2206e+198 v = 1.2206e+198 v = 1.2259e+201 v = 6.1248e+201 v = 2.5720e+202 v = 1.0410e+203 v = 1.0410e+203 v = 1.0410e+203 v = 5.1206e+204 y = 5.1206e+204 s = 1.0011e+10 v = 2.5186e+205 v = 2.5186e+205 v = 2.5186e+205 v = 2.5186e+205 v = 5.1620e+207 v = 2.5709e+208 v = 1.0790e+209 v = 4.3666e+209 v = 4.3666e+209 v = 4.3666e+209 v = 2.1477e+211 y = 2.1477e+211 s = 1.0011e+10 v = 2.1477e+211 v = 3.5813e+212 v = 3.5813e+212 v = 3.5813e+212 v = 2.1904e+214 v = 1.0809e+215 v = 4.5281e+215 v = 1.8317e+216 v = 1.8317e+216 v = 1.8317e+216 v = 9.0082e+217 y = 9.0082e+217 s = 1.0011e+10 v = 4.4308e+218 v = 1.8551e+219 v = 1.8551e+219 v = 1.8551e+219 v = 9.2224e+220 v = 4.5370e+221 v = 1.8996e+222 v = 7.6832e+222 v = 7.6832e+222 v = 7.6832e+222 v = 3.7783e+224 y = 3.7783e+224 s = 1.0011e+10 v = 3.7783e+224 v = 3.7783e+224 v = 2.4067e+226 v = 2.4067e+226 v = 4.0310e+227 v = 1.9192e+228 v = 7.9838e+228 v = 3.2242e+229 v = 3.2242e+229 v = 3.2242e+229 v = 1.5848e+231 y = 1.5848e+231 s = 1.0011e+10 v = 7.7948e+231 v = 7.7948e+231 v = 1.0716e+233 v = 1.0716e+233 v = 1.6969e+234 v = 8.0560e+234 v = 3.3493e+235 v = 1.3524e+236 v = 1.3524e+236 v = 1.3524e+236 v = 6.6470e+237 y = 6.6470e+237 s = 1.0011e+10 v = 6.6470e+237 v = 1.1083e+239 v = 5.2759e+239 v = 5.2759e+239 v = 7.1956e+240 v = 3.3868e+241 v = 1.4056e+242 v = 5.6731e+242 v = 5.6731e+242 v = 5.6731e...

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 = 1 v = 17 y = 18 s = 11 v = 81 v = 337 y = 355 s = 100 v = 337 v = 337 v = 16721 y = 17076 s = 101 v = 82257 v = 82257 v = 1130833 y = 1147909 s = 110 v = 1130833 v = 17908049 v = 85016913 y = 86164822 s = 111 v = 353452369 v = 1.4272e+09 v = 5.7222e+09 y = 5.8083e+09 s = 1000 v = 5.7222e+09 v = 5.7222e+09 v = 5.7222e+09 v = 1.1052e+12 y = 1.1110e+12 s = 1001 v = 5.5033e+12 v = 5.5033e+12 v = 5.5033e+12 v = 2.8698e+14 y = 2.8809e+14 s = 1010 v = 2.8698e+14 v = 4.7906e+15 v = 4.7906e+15 v = 7.6848e+16 y = 7.7136e+16

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 = 1 v = 17 y = 18 s = 11 v = 81 v = 337 y = 355 s = 100 v = 337 v = 337 v = 16721 y = 17076 s = 101 v = 82257 v = 82257 v = 1130833 y = 1147909 s = 110 v = 1130833 v = 17908049 v = 85016913 y = 86164822 s = 111 v = 353452369 v = 1.4272e+09 v = 5.7222e+09 y = 5.8083e+09 s = 1000 v = 5.7222e+09 v = 5.7222e+09 v = 5.7222e+09 v = 1.1052e+12 y = 1.1110e+12 s = 1001 v = 5.5033e+12 v = 5.5033e+12 v = 5.5033e+12 v = 2.8698e+14 y = 2.8809e+14 s = 1010 v = 2.8698e+14 v = 4.7906e+15 v = 4.7906e+15 v = 7.6848e+16 y = 7.7136e+16 s = 1011 v = 3.6508e+17 v = 1.5180e+18 v = 1.5180e+18 v = 1.9965e+19 y = 2.0042e+19 s = 1100 v = 1.9965e+19 v = 1.9965e+19 v = 1.2006e+21 v = 5.9229e+21 y = 5.9430e+21 s = 1101 v = 2.4812e+22 v = 2.4812e+22 v = 3.2704e+23 v = 1.5360e+24 y = 1.5419e+24 s = 1110 v = 1.5360e+24 v = 2.0879e+25 v = 9.8250e+25 v = 4.0774e+26 y = 4.0928e+26 s = 1111 v = 1.6457e+27 v = 6.5974e+27 v = 2.6404e+28 v = 1.0563e+29 y = 1.0604e+29 s = 10000 v = 1.0563e+29 v = 1.0563e+29 v = 1.0563e+29 v = 1.0563e+29 v = 8.1235e+31 y = 8.1341e+31 s = 10001 v = 4.0575e+32 v = 4.0575e+32 v = 4.0575e+32 v = 4.0575e+32 v = 8.3483e+34 y = 8.3564e+34 s = 10010 v = 8.3483e+34 v = 1.4127e+36 v = 1.4127e+36 v = 1.4127e+36 v = 8.6483e+37 y = 8.6567e+37 s = 10011 v = 4.2677e+38 v = 1.7879e+39 v = 1.7879e+39 v = 1.7879e+39 v = 8.8900e+40 y = 8.8987e+40 s = 10100 v = 8.8900e+40 v = 8.8900e+40 v = 5.6641e+42 v = 5.6641e+42 v = 9.4867e+43 y = 9.4956e+43 s = 10101 v = 4.5168e+44 v = 4.5168e+44 v = 6.1607e+45 v = 6.1607e+45 v = 9.7505e+46 y = 9.7599e+46 s = 10110 v = 9.7505e+46 v = 1.5590e+48 v = 7.4050e+48 v = 7.4050e+48 v = 1.0094e+50 y = 1.0104e+50 s = 10111 v = 4.7509e+50 v = 1.9717e+51 v = 7.9580e+51 v = 7.9580e+51 v = 1.0374e+53 y = 1.0384e+53 s = 11000 v = 1.0374e+53 v = 1.0374e+53 v = 1.0374e+53 v = 2.4624e+55 v = 1.2270e+56 y = 1.2281e+56 s = 11001 v = 5.1502e+56 v = 5.1502e+56 v = 5.1502e+56 v = 2.5623e+58 v = 1.2606e+59 y = 1.2618e+59 s = 11010 v = 1.2606e+59 v = 1.7330e+60 v = 1.7330e+60 v = 2.7444e+61 v = 1.3029e+62 y = 1.3041e+62 s = 11011 v = 5.4166e+62 v = 2.1872e+63 v = 2.1872e+63 v = 2.8515e+64 v = 1.3383e+65 y = 1.3396e+65 s = 11100 v = 1.3383e+65 v = 1.3383e+65 v = 6.8738e+66 v = 3.3834e+67 v = 1.4167e+68 y = 1.4181e+68 s = 11101 v = 5.7303e+68 v = 5.7303e+68 v = 7.4748e+69 v = 3.5082e+70 v = 1.4551e+71 y = 1.4565e+71 s = 11110 v = 1.4551e+71 v = 1.9124e+72 v = 8.9797e+72 v = 3.7249e+73 v = 1.5033e+74 y = 1.5047e+74 s = 11111 v = 6.0264e+74 v = 2.4119e+75 v = 9.6489e+75 v = 3.8597e+76 v = 1.5439e+77 y = 1.5454e+77 s = 100000 v = 1.5439e+77 v = 1.5439e+77 v = 1.5439e+77 v = 1.5439e+77 v = 1.5439e+77 v = 4.7444e+80 y = 4.7459e+80 s = 100001 v = 2.3716e+81 v = 2.3716e+81 v = 2.3716e+81 v = 2.3716e+81 v = 2.3716e+81 v = 1.9450e+84 y = 1.9455e+84 s = 100010 v = 1.9450e+84 v = 3.3028e+85 v = 3.3028e+85 v = 3.3028e+85 v = 3.3028e+85 v = 7.9902e+87 y = 7.9921e+87 s = 100011 v = 3.9819e+88 v = 1.6713e+89 v = 1.6713e+89 v = 1.6713e+89 v = 1.6713e+89 v = 3.2760e+91 y = 3.2768e+91 s = 100100 v = 3.2760e+91 v = 3.2760e+91 v = 2.1187e+93 v = 2.1187e+93 v = 2.1187e+93 v = 1.3562e+95 y = 1.3565e+95 s = 100101 v = 6.6961e+95 v = 6.6961e+95 v = 9.2136e+96 v = 9.2136e+96 v = 9.2136e+96 v = 5.5603e+98 y = 5.5616e+98 s = 100110 v = 5.5603e+98 v = 9.3050e+99 v = 4.4301e+100 v = 4.4301e+100 v = 4.4301e+100 v = 2.2840e+102 y = 2.2846e+102 s = 100111 v = 1.1243e+103 v = 4.7079e+103 v = 1.9042e+104 v = 1.9042e+104 v = 1.9042e+104 v = 9.3644e+105 y = 9.3667e+105 s = 101000 v = 9.3644e+105 v = 9.3644e+105 v = 9.3644e+105 v = 2.3579e+108 v = 2.3579e+108 v = 3.9935e+109 y = 3.9944e+109 s = 101001 v = 1.9024e+110 v = 1.9024e+110 v = 1.9024e+110 v = 9.8099e+111 v = 9.8099e+111 v = 1.6372e+113 y = 1.6376e+113 s = 101010 v = 1.6372e+113 v = 2.6263e+114 v = 2.6263e+114 v = 4.2028e+115 v = 4.2028e+115 v = 6.7246e+116 y = 6.7262e+116 s = 101011 v = 3.1942e+117 v = 1.3281e+118 v = 1.3281e+118 v = 1.7467e+119 v = 1.7467e+119 v = 2.7569e+120 y = 2.7576e+120 s = 101100 v = 2.7569e+120 v = 2.7569e+120 v = 1.6802e+122 v = 8.2908e+122 v = 8.2908e+122 v = 1.1406e+124 y = 1.1409e+124 s = 101101 v = 5.3714e+124 v = 5.3714e+124 v = 7.3063e+125 v = 3.4383e+126 v = 3.4383e+126 v = 4.6761e+127 y = 4.6773e+127 s = 101110 v = 4.6761e+127 v = 7.3993e+128 v = 3.5126e+129 v = 1.4603e+130 v = 1.4603e+130 v = 1.9205e+131 y = 1.9210e+131 s = 101111 v = 9.0186e+131 v = 3.7411e+132 v = 1.5098e+133 v = 6.0525e+133 v = 6.0525e+133 v = 7.8736e+134 y = 7.8756e+134 s = 110000 v = 7.8736e+134 v = 7.8736e+134 v = 7.8736e+134 v = 7.8736e+134 v = 7.4507e+137 v = 3.7222e+138 y = 3.7230e+138 s = 110001 v = 1.5631e+139 v = 1.5631e+139 v = 1.5631e+139 v = 1.5631e+139 v = 3.0642e+141 v = 1.5259e+142 y = 1.5262e+142 s = 110010 v = 1.5259e+142 v = 2.1037e+143 v = 2.1037e+143 v = 2.1037e+143 v = 1.2697e+145 v = 6.2645e+145 y = 6.2661e+145 s = 1 v = 1 y = 1 s = 10 v = 1 v = 17 y = 18 s = 11 v = 81 v = 337 y = 355 s = 100 v = 337 v = 337 v = 16721 y = 17076 s = 101 v = 82257 v = 82257 v = 1130833 y = 1147909 s = 110 v = 1130833 v = 17908049 v = 85016913 y = 86164822 s = 111 v = 353452369 v = 1.4272e+09 v = 5.7222e+09 y = 5.8083e+09 s = 1000 v = 5.7222e+09 v = 5.7222e+09 v = 5.7222e+09 v = 1.1052e+12 y = 1.1110e+12 s = 1001 v = 5.5033e+12 v = 5.5033e+12 v = 5.5033e+12 v = 2.8698e+14 y = 2.8809e+14 s = 1010 v = 2.8698e+14 v = 4.7906e+15 v = 4.7906e+15 v = 7.6848e+16 y = 7.7136e+16 s = 1011 v = 3.6508e+17 v = 1.5180e+18 v = 1.5180e+18 v = 1.9965e+19 y = 2.0042e+19 s = 1100 v = 1.9965e+19 v = 1.9965e+19 v = 1.2006e+21 v = 5.9229e+21 y = 5.9430e+21 s = 1101 v = 2.4812e+22 v = 2.4812e+22 v = 3.2704e+23 v = 1.5360e+24 y = 1.5419e+24 s = 1110 v = 1.5360e+24 v = 2.0879e+25 v = 9.8250e+25 v = 4.0774e+26 y = 4.0928e+26 s = 1111 v = 1.6457e+27 v = 6.5974e+27 v = 2.6404e+28 v = 1.0563e+29 y = 1.0604e+29 s = 10000 v = 1.0563e+29 v = 1.0563e+29 v = 1.0563e+29 v = 1.0563e+29 v = 8.1235e+31 y = 8.1341e+31 s = 10001 v = 4.0575e+32 v = 4.0575e+32 v = 4.0575e+32 v = 4.0575e+32 v = 8.3483e+34 y = 8.3564e+34 s = 10010 v = 8.3483e+34 v = 1.4127e+36 v = 1.4127e+36 v = 1.4127e+36 v = 8.6483e+37 y = 8.6567e+37 s = 10011 v = 4.2677e+38 v = 1.7879e+39 v = 1.7879e+39 v = 1.7879e+39 v = 8.8900e+40 y = 8.8987e+40 s = 10100 v = 8.8900e+40 v = 8.8900e+40 v = 5.6641e+42 v = 5.6641e+42 v = 9.4867e+43 y = 9.4956e+43 s = 10101 v = 4.5168e+44 v = 4.5168e+44 v = 6.1607e+45 v = 6.1607e+45 v = 9.7505e+46 y = 9.7599e+46 s = 10110 v = 9.7505e+46 v = 1.5590e+48 v = 7.4050e+48 v = 7.4050e+48 v = 1.0094e+50 y = 1.0104e+50 s = 10111 v = 4.7509e+50 v = 1.9717e+51 v = 7.9580e+51 v = 7.9580e+51 v = 1.0374e+53 y = 1.0384e+53 s = 11000 v = 1.0374e+53 v = 1.0374e+53 v = 1.0374e+53 v = 2.4624e+55 v = 1.2270e+56 y = 1.2281e+56 s = 11001 v = 5.1502e+56 v = 5.1502e+56 v = 5.1502e+56 v = 2.5623e+58 v = 1.2606e+59 y = 1....

Assertion failed.

Suggested Problems

More from this Author80

Community Treasure Hunt

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

Start Hunting!