Let's divide 240587 by 16
Our goal is to divide 240587 by 16.

Advancing to step 1:
When dividing 2 by 16, we get 0 with a remainder of 2.
Put 0 as the next digit of the answer. 
Result so far: 0.0
Subtracting 0 from 2 leaves us with 2.
Fetch the next digit (4) from the dividend, attach it to 2 and continue: 24 / 16

Going ahead to step 2:
24 divided by 16 is 1 with a remainder of 8.
Write down 1 as next digit of the result. 
Result so far: 1.0
Subtracting 16 from 24 leaves us with 8.
Append the next digit (0) from the dividend to 8 and continue with: 80 / 16

Step 3:
80 divided by 16 is 5 with a remainder of 0.
Use 5 as the next digit of our solution. 
Result so far: 15.0
If we take 80 away from 80, we end up with 0.
Bring next digit (5) of the dividend behind the 0 and repeat the process: 5 / 16

On to step 4:
If we divide 5 by 16, we get 0 and a remainder of 5.
The next digit of our result is 0. 
Result so far: 150.0
Subtracting 0 from 5 leaves us with 5.
Take the next digit (8) from the dividend and append it to 5, then repeat: 58 / 16

Advancing to step 5:
The number 16 fits into 58 3 times, leaving a remainder of 10.
Record the quotient 3 as the next digit in the result. 
Result so far: 1503.0
Subtract 48 from 58 to get 10.
Take the next digit (7) from the dividend and append it to 10, then repeat: 107 / 16

On to step 6:
The number 16 fits into 107 6 times, leaving a remainder of 11.
Record the quotient 6 as the next digit in the result. 
Result so far: 15036.0
If we take 96 away from 107, we end up with 11.
Since there are no more digits in the dividend, we add a zero to the remainder making it 110, and continue the process.

Going ahead to step 7:
The number 16 fits into 110 6 times, leaving a remainder of 14.
Put 6 as the next digit of the answer. 
Result so far: 15036.6
The remainder is 14 after subtracting 96 from 110.
Since there are no more digits in the dividend, we add a zero to the remainder making it 140, and continue the process.

Advancing to step 8:
16 goes into 140 8 times with a remainder of 12.
Put 8 as the next digit of the answer. 
Result so far: 15036.68
Subtract 128 from 140 to get 12.
Since there are no more digits in the dividend, we add a zero to the remainder making it 120, and continue the process.

Let's proceed to step 9:
If we divide 120 by 16, we get 7 and a remainder of 8.
Use 7 as the next digit of our solution. 
Result so far: 15036.687
The remainder is 8 after subtracting 112 from 120.
Since there are no more digits in the dividend, we add a zero to the remainder making it 80, and continue the process.

Let's proceed to step 10:
The number 16 fits into 80 5 times, leaving a remainder of 0.
Use 5 as the next digit of our solution. 
Result so far: 15036.6875
The remainder is 0 after subtracting 80 from 80.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

Moving on to step 11:
16 goes into 0 0 times with a remainder of 0.
Put 0 as the next digit of the answer. 
Result so far: 15036.6875
Subtracting 0 from 0 leaves us with 0.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

Advancing to step 12:
When dividing 0 by 16, we get 0 with a remainder of 0.
The number 0 becomes the next digit in our result. 
Result so far: 15036.6875
Subtracting 0 from 0 leaves us with 0.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

Our division results in 15036.6875 with a remaining 0.0.