Here are several examples conversions from decimal to binary using
the right-to-left method. In each case, we repeatedly divide the number
by two, taking the sequence of remainders as the result. The remainders
are the digits of the result, generated right-to-left;
the first remainder generated is the lowest binary digit.