How to solve a decimal to binary passage exercise?

With the known method we can make any conversion from decimal to binary, for example the 798. 798 divided 2 is 399 with 0 of the rest. 399 divided 2 is 199 with 1 of the rest. 199 divided 2 is 99 with 1 of the rest. 99 divided 2 is 49 with 1 of the rest. 49 divided 2 is 24 with 1 of the rest. 24 divided 2 is 12 with 0 of the rest. 12 divided 2 is 6 with 0 of the rest. 6 divided 2 is 3 with 0 of the rest. 3 divided 2 is 1 with 1 of the rest. Therefore the number sought is 1100011110.