Cody

# Problem 2869. There are 10 types of people in the world

Solution 2886416

Submitted on 28 Aug 2020 by Joe
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

### Test Suite

Test Status Code Input and Output
1   Pass
x = 1881;y_correct = 30; assert(isequal(yearraey(x),y_correct))

i = 0 b = 0 bf = 1 b = '11101011001' bf = '10011010111' x = 1882 i = 1 b = 1881 bf = 1239 b = '11101011010' bf = '01011010111' x = 1883 i = 2 b = 1882 bf = 727 b = '11101011011' bf = '11011010111' x = 1884 i = 3 b = 1883 bf = 1751 b = '11101011100' bf = '00111010111' x = 1885 i = 4 b = 1884 bf = 471 b = '11101011101' bf = '10111010111' x = 1886 i = 5 b = 1885 bf = 1495 b = '11101011110' bf = '01111010111' x = 1887 i = 6 b = 1886 bf = 983 b = '11101011111' bf = '11111010111' x = 1888 i = 7 b = 1887 bf = 2007 b = '11101100000' bf = '00000110111' x = 1889 i = 8 b = 1888 bf = 55 b = '11101100001' bf = '10000110111' x = 1890 i = 9 b = 1889 bf = 1079 b = '11101100010' bf = '01000110111' x = 1891 i = 10 b = 1890 bf = 567 b = '11101100011' bf = '11000110111' x = 1892 i = 11 b = 1891 bf = 1591 b = '11101100100' bf = '00100110111' x = 1893 i = 12 b = 1892 bf = 311 b = '11101100101' bf = '10100110111' x = 1894 i = 13 b = 1893 bf = 1335 b = '11101100110' bf = '01100110111' x = 1895 i = 14 b = 1894 bf = 823 b = '11101100111' bf = '11100110111' x = 1896 i = 15 b = 1895 bf = 1847 b = '11101101000' bf = '00010110111' x = 1897 i = 16 b = 1896 bf = 183 b = '11101101001' bf = '10010110111' x = 1898 i = 17 b = 1897 bf = 1207 b = '11101101010' bf = '01010110111' x = 1899 i = 18 b = 1898 bf = 695 b = '11101101011' bf = '11010110111' x = 1900 i = 19 b = 1899 bf = 1719 b = '11101101100' bf = '00110110111' x = 1901 i = 20 b = 1900 bf = 439 b = '11101101101' bf = '10110110111' x = 1902 i = 21 b = 1901 bf = 1463 b = '11101101110' bf = '01110110111' x = 1903 i = 22 b = 1902 bf = 951 b = '11101101111' bf = '11110110111' x = 1904 i = 23 b = 1903 bf = 1975 b = '11101110000' bf = '00001110111' x = 1905 i = 24 b = 1904 bf = 119 b = '11101110001' bf = '10001110111' x = 1906 i = 25 b = 1905 bf = 1143 b = '11101110010' bf = '01001110111' x = 1907 i = 26 b = 1906 bf = 631 b = '11101110011' bf = '11001110111' x = 1908 i = 27 b = 1907 bf = 1655 b = '11101110100' bf = '00101110111' x = 1909 i = 28 b = 1908 bf = 375 b = '11101110101' bf = '10101110111' x = 1910 i = 29 b = 1909 bf = 1399 b = '11101110110' bf = '01101110111' x = 1911 i = 30 b = 1910 bf = 887 b = '11101110111' bf = '11101110111' x = 1912 i = 31 b = 1911 bf = 1911 y = 30

2   Pass
x = 2014;y_correct = 1; assert(isequal(yearraey(x),y_correct))

i = 0 b = 0 bf = 1 b = '11111011110' bf = '01111011111' x = 2015 i = 1 b = 2014 bf = 991 b = '11111011111' bf = '11111011111' x = 2016 i = 2 b = 2015 bf = 2015 y = 1

3   Pass
x = 2015;y_correct = 0; assert(isequal(yearraey(x),y_correct))

i = 0 b = 0 bf = 1 b = '11111011111' bf = '11111011111' x = 2016 i = 1 b = 2015 bf = 2015 y = 0

4   Pass
x = 606;y_correct = 27; assert(isequal(yearraey(x),y_correct))

i = 0 b = 0 bf = 1 b = '1001011110' bf = '0111101001' x = 607 i = 1 b = 606 bf = 489 b = '1001011111' bf = '1111101001' x = 608 i = 2 b = 607 bf = 1001 b = '1001100000' bf = '0000011001' x = 609 i = 3 b = 608 bf = 25 b = '1001100001' bf = '1000011001' x = 610 i = 4 b = 609 bf = 537 b = '1001100010' bf = '0100011001' x = 611 i = 5 b = 610 bf = 281 b = '1001100011' bf = '1100011001' x = 612 i = 6 b = 611 bf = 793 b = '1001100100' bf = '0010011001' x = 613 i = 7 b = 612 bf = 153 b = '1001100101' bf = '1010011001' x = 614 i = 8 b = 613 bf = 665 b = '1001100110' bf = '0110011001' x = 615 i = 9 b = 614 bf = 409 b = '1001100111' bf = '1110011001' x = 616 i = 10 b = 615 bf = 921 b = '1001101000' bf = '0001011001' x = 617 i = 11 b = 616 bf = 89 b = '1001101001' bf = '1001011001' x = 618 i = 12 b = 617 bf = 601 b = '1001101010' bf = '0101011001' x = 619 i = 13 b = 618 bf = 345 b = '1001101011' bf = '1101011001' x = 620 i = 14 b = 619 bf = 857 b = '1001101100' bf = '0011011001' x = 621 i = 15 b = 620 bf = 217 b = '1001101101' bf = '1011011001' x = 622 i = 16 b = 621 bf = 729 b = '1001101110' bf = '0111011001' x = 623 i = 17 b = 622 bf = 473 b = '1001101111' bf = '1111011001' x = 624 i = 18 b = 623 bf = 985 b = '1001110000' bf = '0000111001' x = 625 i = 19 b = 624 bf = 57 b = '1001110001' bf = '1000111001' x = 626 i = 20 b = 625 bf = 569 b = '1001110010' bf = '0100111001' x = 627 i = 21 b = 626 bf = 313 b = '1001110011' bf = '1100111001' x = 628 i = 22 b = 627 bf = 825 b = '1001110100' bf = '0010111001' x = 629 i = 23 b = 628 bf = 185 b = '1001110101' bf = '1010111001' x = 630 i = 24 b = 629 bf = 697 b = '1001110110' bf = '0110111001' x = 631 i = 25 b = 630 bf = 441 b = '1001110111' bf = '1110111001' x = 632 i = 26 b = 631 bf = 953 b = '1001111000' bf = '0001111001' x = 633 i = 27 b = 632 bf = 121 b = '1001111001' bf = '1001111001' x = 634 i = 28 b = 633 bf = 633 y = 27

5   Pass
x = 6006;y_correct = 71; assert(isequal(yearraey(x),y_correct))

i = 0 b = 0 bf = 1 b = '1011101110110' bf = '0110111011101' x = 6007 i = 1 b = 6006 bf = 3549 b = '1011101110111' bf = '1110111011101' x = 6008 i = 2 b = 6007 bf = 7645 b = '1011101111000' bf = '0001111011101' x = 6009 i = 3 b = 6008 bf = 989 b = '1011101111001' bf = '1001111011101' x = 6010 i = 4 b = 6009 bf = 5085 b = '1011101111010' bf = '0101111011101' x = 6011 i = 5 b = 6010 bf = 3037 b = '1011101111011' bf = '1101111011101' x = 6012 i = 6 b = 6011 bf = 7133 b = '1011101111100' bf = '0011111011101' x = 6013 i = 7 b = 6012 bf = 2013 b = '1011101111101' bf = '1011111011101' x = 6014 i = 8 b = 6013 bf = 6109 b = '1011101111110' bf = '0111111011101' x = 6015 i = 9 b = 6014 bf = 4061 b = '1011101111111' bf = '1111111011101' x = 6016 i = 10 b = 6015 bf = 8157 b = '1011110000000' bf = '0000000111101' x = 6017 i = 11 b = 6016 bf = 61 b = '1011110000001' bf = '1000000111101' x = 6018 i = 12 b = 6017 bf = 4157 b = '1011110000010' bf = '0100000111101' x = 6019 i = 13 b = 6018 bf = 2109 b = '1011110000011' bf = '1100000111101' x = 6020 i = 14 b = 6019 bf = 6205 b = '1011110000100' bf = '0010000111101' x = 6021 i = 15 b = 6020 bf = 1085 b = '1011110000101' bf = '1010000111101' x = 6022 i = 16 b = 6021 bf = 5181 b = '1011110000110' bf = '0110000111101' x = 6023 i = 17 b = 6022 bf = 3133 b = '1011110000111' bf = '1110000111101' x = 6024 i = 18 b = 6023 bf = 7229 b = '1011110001000' bf = '0001000111101' x = 6025 i = 19 b = 6024 bf = 573 b = '1011110001001' bf = '1001000111101' x = 6026 i = 20 b = 6025 bf = 4669 b = '1011110001010' bf = '0101000111101' x = 6027 i = 21 b = 6026 bf = 2621 b = '1011110001011' bf = '1101000111101' x = 6028 i = 22 b = 6027 bf = 6717 b = '1011110001100' bf = '0011000111101' x = 6029 i = 23 b = 6028 bf = 1597 b = '1011110001101' bf = '1011000111101' x = 6030 i = 24 b = 6029 bf = 5693 b = '1011110001110' bf = '0111000111101' x = 6031 i = 25 b = 6030 bf = 3645 b = '1011110001111' bf = '1111000111101' x = 6032 i = 26 b = 6031 bf = 7741 b = '1011110010000' bf = '0000100111101' x = 6033 i = 27 b = 6032 bf = 317 b = '1011110010001' bf = '1000100111101' x = 6034 i = 28 b = 6033 bf = 4413 b = '1011110010010' bf = '0100100111101' x = 6035 i = 29 b = 6034 bf = 2365 b = '1011110010011' bf = '1100100111101' x = 6036 i = 30 b = 6035 bf = 6461 b = '1011110010100' bf = '0010100111101' x = 6037 i = 31 b = 6036 bf = 1341 b = '1011110010101' bf = '1010100111101' x = 6038 i = 32 b = 6037 bf = 5437 b = '1011110010110' bf = '0110100111101' x = 6039 i = 33 b = 6038 bf = 3389 b = '1011110010111' bf = '1110100111101' x = 6040 i = 34 b = 6039 bf = 7485 b = '1011110011000' bf = '0001100111101' x = 6041 i = 35 b = 6040 bf = 829 b = '1011110011001' bf = '1001100111101' x = 6042 i = 36 b = 6041 bf = 4925 b = '1011110011010' bf = '0101100111101' x = 6043 i = 37 b = 6042 bf = 2877 b = '1011110011011' bf = '1101100111101' x = 6044 i = 38 b = 6043 bf = 6973 b = '1011110011100' bf = '0011100111101' x = 6045 i = 39 b = 6044 bf = 1853 b = '1011110011101' bf = '1011100111101' x = 6046 i = 40 b = 6045 bf = 5949 b = '1011110011110' bf = '0111100111101' x = 6047 i = 41 b = 6046 bf = 3901 b = '1011110011111' bf = '1111100111101' x = 6048 i = 42 b = 6047 bf = 7997 b = '1011110100000' bf = '0000010111101' x = 6049 i = 43 b = 6048 bf = 189 b = '1011110100001' bf = '1000010111101' x = 6050 i = 44 b = 6049 bf = 4285 b = '1011110100010' bf = '0100010111101' x = 6051 i = 45 b = 6050 bf = 2237 b = '1011110100011' bf = '1100010111101' x = 6052 i = 46 b = 6051 bf = 6333 b = '1011110100100' bf = '0010010111101' x = 6053 i = 47 b = 6052 bf = 1213 b = '1011110100101' bf = '1010010111101' x = 6054 i = 48 b = 6053 bf = 5309 b = '1011110100110' bf = '0110010111101' x = 6055 i = 49 b = 6054 bf = 3261 b = '1011110100111' bf = '1110010111101' x = 6056 i = 50 b = 6055 bf = 7357 b = '1011110101000' bf = '0001010111101' x = 6057 i = 51 b = 6056 bf = 701 b = '1011110101001' bf = '1001010111101' x = 6058 i = 52 b = 6057 bf = 4797 b = '1011110101010' bf = '0101010111101' x = 6059 i = 53 b = 6058 bf = 2749 b = '1011110101011' bf = '1101010111101' x = 6060 i = 54 b = 6059 bf = 6845 b = '1011110101100' bf = '0011010111101' x = 6061 i = 55 b = 6060 bf = 1725 b = '1011110101101' bf = '1011010111101' x = 6062 i = 56 b = 6061 bf = 5821 b = '1011110101110' bf = '0111010111101' x = 6063 i = 57 b = 6062 bf = 3773 b = '1011110101111' bf = '1111010111101' x = 6064 i = 58 b = 6063 bf = 7869 b = '1011110110000' bf = '0000110111101' x = 6065 i = 59 b = 6064 bf = 445 b = '1011110110001' bf = '1000110111101' x = 6066 i = 60 b = 6065 bf = 4541 b = '1011110110010' bf = '0100110111101' x = 6067 i = 61 b = 6066 bf = 2493 b = '1011110110011' bf = '1100110111101' x = 6068 i = 62 b = 6067 bf = 6589 b = '1011110110100' bf = '0010110111101' x = 6069 i = 63 b = 6068 bf = 1469 b = '1011110110101' bf = '1010110111101' x = 6070 i = 64 b = 6069 bf = 5565 b = '1011110110110' bf = '0110110111101' x = 6071 i = 65 b = 6070 bf = 3517 b = '1011110110111' bf = '1110110111101' x = 6072 i = 66 b = 6071 bf = 7613 b = '1011110111000' bf = '0001110111101' x = 6073 i = 67 b = 6072 bf = 957 b = '1011110111001' bf = '1001110111101' x = 6074 i = 68 b = 6073 bf = 5053 b = '1011110111010' bf = '0101110111101' x = 6075 i = 69 b = 6074 bf = 3005 b = '1011110111011' bf = '1101110111101' x = 6076 i = 70 b = 6075 bf = 7101 b = '1011110111100' bf = '0011110111101' x = 6077 i = 71 b = 6076 bf = 1981 b = '1011110111101' bf = '1011110111101' x = 6078 i = 72 b = 6077 bf = 6077 y = 71

6   Pass
x = 60006;y_correct = 369; assert(isequal(yearraey(x),y_correct))

i = 0 b = 0 bf = 1 b = '1110101001100110' bf = '0110011001010111' x = 60007 i = 1 b = 60006 bf = 26199 b = '1110101001100111' bf = '1110011001010111' x = 60008 i = 2 b = 60007 bf = 58967 b = '1110101001101000' bf = '0001011001010111' x = 60009 i = 3 b = 60008 bf = 5719 b = '1110101001101001' bf = '1001011001010111' x = 60010 i = 4 b = 60009 bf = 38487 b = '1110101001101010' bf = '0101011001010111' x = 60011 i = 5 b = 60010 bf = 22103 b = '1110101001101011' bf = '1101011001010111' x = 60012 i = 6 b = 60011 bf = 54871 b = '1110101001101100' bf = '0011011001010111' x = 60013 i = 7 b = 60012 bf = 13911 b = '1110101001101101' bf = '1011011001010111' x = 60014 i = 8 b = 60013 bf = 46679 b = '1110101001101110' bf = '0111011001010111' x = 60015 i = 9 b = 60014 bf = 30295 b = '1110101001101111' bf = '1111011001010111' x = 60016 i = 10 b = 60015 bf = 63063 b = '1110101001110000' bf = '0000111001010111' x = 60017 i = 11 b = 60016 bf = 3671 b = '1110101001110001' bf = '1000111001010111' x = 60018 i = 12 b = 60017 bf = 36439 b = '1110101001110010' bf = '0100111001010111' x = 60019 i = 13 b = 60018 bf = 20055 b = '1110101001110011' bf = '1100111001010111' x = 60020 i = 14 b = 60019 bf = 52823 b = '1110101001110100' bf = '0010111001010111' x = 60021 i = 15 b = 60020 bf = 11863 b = '1110101001110101' bf = '1010111001010111' x = 60022 i = 16 b = 60021 bf = 44631 b = '1110101001110110' bf = '0110111001010111' x = 60023 i = 17 b = 60022 bf = 28247 b = '1110101001110111' bf = '1110111001010111' x = 60024 i = 18 b = 60023 bf = 61015 b = '1110101001111000' bf = '0001111001010111' x = 60025 i = 19 b = 60024 bf = 7767 b = '1110101001111001' bf = '1001111001010111' x = 60026 i = 20 b = 60025 bf = 40535 b = '1110101001111010' bf = '0101111001010111' x = 60027 i = 21 b = 60026 bf = 24151 b = '1110101001111011' bf = '1101111001010111' x = 60028 i = 22 b = 60027 bf = 56919 b = '1110101001111100' bf = '0011111001010111' x = 60029 i = 23 b = 60028 bf = 15959 b = '1110101001111101' bf = '1011111001010111' x = 60030 i = 24 b = 60029 bf = 48727 b = '1110101001111110' bf = '0111111001010111' x = 60031 i = 25 b = 60030 bf = 32343 b = '1110101001111111' bf = '1111111001010111' x = 60032 i = 26 b = 60031 bf = 65111 b = '1110101010000000' bf = '0000000101010111' x = 60033 i = 27 b = 60032 bf = 343 b = '1110101010000001' bf = '1000000101010111' x = 60034 i = 28 b = 60033 bf = 33111 b = '1110101010000010' bf = '0100000101010111' x = 60035 i = 29 b = 60034 bf = 16727 b = '1110101010000011' bf = '1100000101010111' x = 60036 i = 30 b = 60035 bf = 49495 b = '1110101010000100' bf = '0010000101010111' x = 60037 i = 31 b = 60036 bf = 8535 b = '1110101010000101' bf = '1010000101010111' x = 60038 i = 32 b = 60037 bf = 41303 b = '1110101010000110' bf = '0110000101010111' x = 60039 i = 33 b = 60038 bf = 24919 b = '1110101010000111' bf = '1110000101010111' x = 60040 i = 34 b = 60039 bf = 57687 b = '1110101010001000' bf = '0001000101010111' x = 60041 i = 35 b = 60040 bf = 4439 b = '1110101010001001' bf = '1001000101010111' x = 60042 i = 36 b = 60041 bf = 37207 b = '1110101010001010' bf = '0101000101010111' x = 60043 i = 37 b = 60042 bf = 20823 b = '1110101010001011' bf = '1101000101010111' x = 60044 i = 38 b = 60043 bf = 53591 b = '1110101010001100' bf = '0011000101010111' x = 60045 i = 39 b = 60044 bf = 12631 b = '1110101010001101' bf = '1011000101010111' x = 60046 i = 40 b = 60045 bf = 45399 b = '1110101010001110' bf = '0111000101010111' x = 60047 i = 41 b = 60046 bf = 29015 b = '1110101010001111' bf = '1111000101010111' x = 60048 i = 42 b = 60047 bf = 61783 b = '1110101010010000' bf = '0000100101010111' x = 60049 i = 43 b = 60048 bf = 2391 b = '1110101010010001' bf = '1000100101010111' x = 60050 i = 44 b = 60049 bf = 35159 b = '1110101010010010' bf = '0100100101010111' x = 60051 i = 45 b = 60050 bf = 18775 b = '1110101010010011' bf = '1100100101010111' x = 60052 i = 46 b = 60051 bf = 51543 b = '1110101010010100' bf = '0010100101010111' x = 60053 i = 47 b = 60052 bf = 10583 b = '1110101010010101' bf = '1010100101010111' x = 60054 i = 48 b = 60053 bf = 43351 b = '1110101010010110' bf = '0110100101010111' x = 60055 i = 49 b = 60054 bf = 26967 b = '1110101010010111' bf = '1110100101010111' x = 60056 i = 50 b = 60055 bf = 59735 b = '1110101010011000' bf = '0001100101010111' x = 60057 i = 51 b = 60056 bf = 6487 b = '1110101010011001' bf = '1001100101010111' x = 60058 i = 52 b = 60057 bf = 39255 b = '1110101010011010' bf = '0101100101010111' x = 60059 i = 53 b = 60058 bf = 22871 b = '1110101010011011' bf = '1101100101010111' x = 60060 i = 54 b = 60059 bf = 55639 b = '1110101010011100' bf = '0011100101010111' x = 60061 i = 55 b = 60060 bf = 14679 b = '1110101010011101' bf = '1011100101010111' x = 60062 i = 56 b = 60061 bf = 47447 b = '1110101010011110' bf = '0111100101010111' x = 60063 i = 57 b = 60062 bf = 31063 b = '1110101010011111' bf = '1111100101010111' x = 60064 i = 58 b = 60063 bf = 63831 b = '1110101010100000' bf = '0000010101010111' x = 60065 i = 59 b = 60064 bf = 1367 b = '1110101010100001' bf = '1000010101010111' x = 60066 i = 60 b = 60065 bf = 34135 b = '1110101010100010' bf = '0100010101010111' x = 60067 i = 61 b = 60066 bf = 17751 b = '1110101010100011' bf = '1100010101010111' x = 60068 i = 62 b = 60067 bf = 50519 b = '1110101010100100' bf = '0010010101010111' x = 60069 i = 63 b = 60068 bf = 9559 b = '1110101010100101' bf = '1010010101010111' x = 60070 i = 64 b = 60069 bf = 42327 b = '1110101010100110' bf = '0110010101010111' x = 60071 i = 65 b = 60070 bf = 25943 b = '1110101010100111' bf = '1110010101010111' x = 60072 i = 66 b = 60071 bf = 58711 b = '1110101010101000' bf = '0001010101010111' x = 60073 i = 67 b = 60072 bf = 5463 b = '1110101010101001' bf = '1001010101010111' x = 60074 i = 68 b = 60073 bf = 38231 b = '1110101010101010' bf = '0101010101010111' x = 60075 i = 69 b = 60074 bf = 21847 b = '1110101010101011' bf = '1101010101010111' x = 60076 i = 70 b = 60075 bf = 54615 b = '1110101010101100' bf = '0011010101010111' x = 60077 i = 71 b = 60076 bf = 13655 b = '1110101010101101' bf = '1011010101010111' x = 60078 i = 72 b = 60077 bf = 46423 b = '1110101010101110' bf = '0111010101010111' x = 60079 i = 73 b = 60078 bf = 30039 b = '1110101010101111' bf = ...

7   Pass
k=zeros(1,15); for n=1:15 y=2^n+2; k(n)=yearraey(y); end y_correct=[1 1 5 3 11 7 23 15 47 31 95 63 191 127 383]; assert(isequal(k,y_correct))

i = 0 b = 0 bf = 1 b = '100' bf = '001' x = 5 i = 1 b = 4 bf = 1 b = '101' bf = '101' x = 6 i = 2 b = 5 bf = 5 y = 1 i = 0 b = 0 bf = 1 b = '110' bf = '011' x = 7 i = 1 b = 6 bf = 3 b = '111' bf = '111' x = 8 i = 2 b = 7 bf = 7 y = 1 i = 0 b = 0 bf = 1 b = '1010' bf = '0101' x = 11 i = 1 b = 10 bf = 5 b = '1011' bf = '1101' x = 12 i = 2 b = 11 bf = 13 b = '1100' bf = '0011' x = 13 i = 3 b = 12 bf = 3 b = '1101' bf = '1011' x = 14 i = 4 b = 13 bf = 11 b = '1110' bf = '0111' x = 15 i = 5 b = 14 bf = 7 b = '1111' bf = '1111' x = 16 i = 6 b = 15 bf = 15 y = 5 i = 0 b = 0 bf = 1 b = '10010' bf = '01001' x = 19 i = 1 b = 18 bf = 9 b = '10011' bf = '11001' x = 20 i = 2 b = 19 bf = 25 b = '10100' bf = '00101' x = 21 i = 3 b = 20 bf = 5 b = '10101' bf = '10101' x = 22 i = 4 b = 21 bf = 21 y = 3 i = 0 b = 0 bf = 1 b = '100010' bf = '010001' x = 35 i = 1 b = 34 bf = 17 b = '100011' bf = '110001' x = 36 i = 2 b = 35 bf = 49 b = '100100' bf = '001001' x = 37 i = 3 b = 36 bf = 9 b = '100101' bf = '101001' x = 38 i = 4 b = 37 bf = 41 b = '100110' bf = '011001' x = 39 i = 5 b = 38 bf = 25 b = '100111' bf = '111001' x = 40 i = 6 b = 39 bf = 57 b = '101000' bf = '000101' x = 41 i = 7 b = 40 bf = 5 b = '101001' bf = '100101' x = 42 i = 8 b = 41 bf = 37 b = '101010' bf = '010101' x = 43 i = 9 b = 42 bf = 21 b = '101011' bf = '110101' x = 44 i = 10 b = 43 bf = 53 b = '101100' bf = '001101' x = 45 i = 11 b = 44 bf = 13 b = '101101' bf = '101101' x = 46 i = 12 b = 45 bf = 45 y = 11 i = 0 b = 0 bf = 1 b = '1000010' bf = '0100001' x = 67 i = 1 b = 66 bf = 33 b = '1000011' bf = '1100001' x = 68 i = 2 b = 67 bf = 97 b = '1000100' bf = '0010001' x = 69 i = 3 b = 68 bf = 17 b = '1000101' bf = '1010001' x = 70 i = 4 b = 69 bf = 81 b = '1000110' bf = '0110001' x = 71 i = 5 b = 70 bf = 49 b = '1000111' bf = '1110001' x = 72 i = 6 b = 71 bf = 113 b = '1001000' bf = '0001001' x = 73 i = 7 b = 72 bf = 9 b = '1001001' bf = '1001001' x = 74 i = 8 b = 73 bf = 73 y = 7 i = 0 b = 0 bf = 1 b = '10000010' bf = '01000001' x = 131 i = 1 b = 130 bf = 65 b = '10000011' bf = '11000001' x = 132 i = 2 b = 131 bf = 193 b = '10000100' bf = '00100001' x = 133 i = 3 b = 132 bf = 33 b = '10000101' bf = '10100001' x = 134 i = 4 b = 133 bf = 161 b = '10000110' bf = '01100001' x = 135 i = 5 b = 134 bf = 97 b = '10000111' bf = '11100001' x = 136 i = 6 b = 135 bf = 225 b = '10001000' bf = '00010001' x = 137 i = 7 b = 136 bf = 17 b = '10001001' bf = '10010001' x = 138 i = 8 b = 137 bf = 145 b = '10001010' bf = '01010001' x = 139 i = 9 b = 138 bf = 81 b = '10001011' bf = '11010001' x = 140 i = 10 b = 139 bf = 209 b = '10001100' bf = '00110001' x = 141 i = 11 b = 140 bf = 49 b = '10001101' bf = '10110001' x = 142 i = 12 b = 141 bf = 177 b = '10001110' bf = '01110001' x = 143 i = 13 b = 142 bf = 113 b = '10001111' bf = '11110001' x = 144 i = 14 b = 143 bf = 241 b = '10010000' bf = '00001001' x = 145 i = 15 b = 144 bf = 9 b = '10010001' bf = '10001001' x = 146 i = 16 b = 145 bf = 137 b = '10010010' bf = '01001001' x = 147 i = 17 b = 146 bf = 73 b = '10010011' bf = '11001001' x = 148 i = 18 b = 147 bf = 201 b = '10010100' bf = '00101001' x = 149 i = 19 b = 148 bf = 41 b = '10010101' bf = '10101001' x = 150 i = 20 b = 149 bf = 169 b = '10010110' bf = '01101001' x = 151 i = 21 b = 150 bf = 105 b = '10010111' bf = '11101001' x = 152 i = 22 b = 151 bf = 233 b = '10011000' bf = '00011001' x = 153 i = 23 b = 152 bf = 25 b = '10011001' bf = '10011001' x = 154 i = 24 b = 153 bf = 153 y = 23 i = 0 b = 0 bf = 1 b = '100000010' bf = '010000001' x = 259 i = 1 b = 258 bf = 129 b = '100000011' bf = '110000001' x = 260 i = 2 b = 259 bf = 385 b = '100000100' bf = '001000001' x = 261 i = 3 b = 260 bf = 65 b = '100000101' bf = '101000001' x = 262 i = 4 b = 261 bf = 321 b = '100000110' bf = '011000001' x = 263 i = 5 b = 262 bf = 193 b = '100000111' bf = '111000001' x = 264 i = 6 b = 263 bf = 449 b = '100001000' bf = '000100001' x = 265 i = 7 b = 264 bf = 33 b = '100001001' bf = '100100001' x = 266 i = 8 b = 265 bf = 289 b = '100001010' bf = '010100001' x = 267 i = 9 b = 266 bf = 161 b = '100001011' bf = '110100001' x = 268 i = 10 b = 267 bf = 417 b = '100001100' bf = '001100001' x = 269 i = 11 b = 268 bf = 97 b = '100001101' bf = '101100001' x = 270 i = 12 b = 269 bf = 353 b = '100001110' bf = '011100001' x = 271 i = 13 b = 270 bf = 225 b = '100001111' bf = '111100001' x = 272 i = 14 b = 271 bf = 481 b = '100010000' bf = '000010001' x = 273 i = 15 b = 272 bf = 17 b = '100010001' bf = '100010001' x = 274 i = 16 b = 273 bf = 273 y = 15 i = 0 b = 0 bf = 1 b = '1000000010' bf = '0100000001' x = 515 i = 1 b = 514 bf = 257 b = '1000000011' bf = '1100000001' x = 516 i = 2 b = 515 bf = 769 b = '1000000100' bf = '0010000001' x = 517 i = 3 b = 516 bf = 129 b = '1000000101' bf = '1010000001' x = 518 i = 4 b = 517 bf = 641 b = '1000000110' bf = '0110000001' x = 519 i = 5 b = 518 bf = 385 b = '1000000111' bf = '1110000001' x = 520 i = 6 b = 519 bf = 897 b = '1000001000' bf = '0001000001' x = 521 i = 7 b = 520 bf = 65 b = '1000001001' bf = '1001000001' x = 522 i = 8 b = 521 bf = 577 b = '1000001010' bf = '0101000001' x = 523 i = 9 b = 522 bf = 321 b = '1000001011' bf = '1101000001' x = 524 i = 10 b = 523 bf = 833 b = '1000001100' bf = '0011000001' x = 525 i = 11 b = 524 bf = 193 b = '1000001101' bf = '1011000001' x = 526 i = 12 b = 525 bf = 705 b = '1000001110' bf = '0111000001' x = 527 i = 13 b = 526 bf = 449 b = '1000001111' bf = '1111000001' x = 528 i = 14 b = 527 bf = 961 b = '1000010000' bf = '0000100001' x = 529 i = 15 b = 528 bf = 33 b = '1000010001' bf = '1000100001' x = 530 i = 16 b = 529 bf = 545 b = '1000010010' bf = '0100100001' x = 531 i = 17 b = 530 bf = 289 b = '1000010011' bf = '1100100001' x = 532 i = 18 b = 531 bf = 801 b = '1000010100' bf = '0010100001' x = 533 i = 19 b = 532 bf = 161 b = '1000010101' bf = '1010100001' x = 534 i = 20 b = ...

### Community Treasure Hunt

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

Start Hunting!