This chapter shows how to find the binary representation of an integer, assuming that you start with its decimal representation. You should already have read chapters one through eight.
Let us start by looking at the Repeated Division Method.
If you divide a positive integer by two (using integer division) what are the possible values for the remainder?
Hint: try dividing 4 by two.
try dividing 5 by two.
try dividing 6 by two.