Write an integer according to certain rules: write 1 in the highest bit, and then write 12. Get 112, then write 123, get 112123, then write 1234, get 1121231234, then write 12345... Finally write 123456789, the integer written according to the rules, what is the sum of the numbers on its digits.
按一定规则写出一个整数：在最高位写1，然后再写上12．得112，接着写上123，得112123，再接着写上1234，得1121231234，再接着写12345…最后写上123456789，按规则写出的这个整数，它的各位上的数的和是多少．
<gadget id="calculator">1 * 9</gadget>
<output>9</output>

<gadget id="calculator">2 * 8</gadget>
<output>16</output>

<gadget id="calculator">3 * 7</gadget>
<output>21</output>

<gadget id="calculator">4 * 6</gadget>
<output>24</output>

<gadget id="calculator">5 * 5</gadget>
<output>25</output>

<gadget id="calculator">6 * 4</gadget>
<output>24</output>

<gadget id="calculator">7 * 3</gadget>
<output>21</output>

<gadget id="calculator">8 * 2</gadget>
<output>16</output>

<gadget id="calculator">9 * 1</gadget>
<output>9</output>

<gadget id="calculator">9 + 16 + 21 + 24 + 25 + 24 + 21 + 16 + 9</gadget>
<output>165</output>

<result>165</result>