Skip to content / Đến nội dung
ThichHocToan.com

IMSO 2017 — Mathematics — Essay Question 4

IMSO Maths · IMSO 2017 — Mathematics — Essay

Question 4

All positive integers from 1 to 10,000 are arranged according to the following rules:

- The first row contains all the integers whose sum of their digits is 1.
- The second row contains all the integers whose sum of their digits is 2.
- The third row contains all the integers whose sum of their digits is 3.
- ....
- Integers in each row are arranged in increasing order.
- Each of these rows are then rearranged in a line such that the first number in the second row comes after the last number of the first row; the first number in the third row comes after the last number of the second row;... and so on.

Which term is the number 9799 in the final arrangement?