387981 ÷ 18 
We want to divide 387981 by 18.

On to step 1:
18 can be fit into 3 0 times, resulting in a remainder of 3.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
If we subtract 0 from 3, we get 3.
Include the next digit (8) from the dividend after 3, then repeat: 38 / 18

On to step 2:
18 goes into 38 2 times with a remainder of 2.
The next digit of our result is 2. 
Result so far: 2.0
Subtract 36 from 38 to get 2.
Append the next digit (7) from the dividend to 2 and continue with: 27 / 18

Let's proceed to step 3:
If we divide 27 by 18, we get 1 and a remainder of 9.
The next digit of our result is 1. 
Result so far: 21.0
The remainder is 9 after subtracting 18 from 27.
Append the next digit (9) from the dividend to 9 and continue with: 99 / 18

Going ahead to step 4:
When dividing 99 by 18, we get 5 with a remainder of 9.
Write down 5 as next digit of the result. 
Result so far: 215.0
If we take 90 away from 99, we end up with 9.
Grab the next digit (8) from the dividend, add it to 9, then carry on: 98 / 18

Moving on to step 5:
When dividing 98 by 18, we get 5 with a remainder of 8.
Write down 5 as next digit of the result. 
Result so far: 2155.0
If we take 90 away from 98, we end up with 8.
Include the next digit (1) from the dividend after 8, then repeat: 81 / 18

Going ahead to step 6:
If we divide 81 by 18, we get 4 and a remainder of 9.
Use 4 as the next digit of our solution. 
Result so far: 21554.0
Deduct 72 from 81 and we're left with 9.
Since there are no more digits in the dividend, we add a zero to the remainder making it 90, and continue the process.

Step 7:
90 divided by 18 is 5 with a remainder of 0.
Write down 5 as next digit of the result. 
Result so far: 21554.5
Deduct 90 from 90 and we're left 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.

On to step 8:
When dividing 0 by 18, we get 0 with a remainder of 0.
The next digit of our result is 0. 
Result so far: 21554.5
The remainder is 0 after subtracting 0 from 0.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

Going ahead to step 9:
The number 18 fits into 0 0 times, leaving a remainder of 0.
Put 0 as the next digit of the answer. 
Result so far: 21554.5
Subtract 0 from 0 to get 0.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

The quotient of the division is 21554.5, and the remainder is 0.0.