We divide 398386 by 21
Our goal is to divide 398386 by 21.

Advancing to step 1:
3 divided by 21 is 0 with a remainder of 3.
Write down 0 as next digit of the result. 
Result so far: 0.0
Subtracting 0 from 3 leaves us with 3.
Append the next digit (9) from the dividend to 3 and continue with: 39 / 21

Going ahead to step 2:
If we divide 39 by 21, we get 1 and a remainder of 18.
Write down 1 as next digit of the result. 
Result so far: 1.0
Deduct 21 from 39 and we're left with 18.
Fetch the next digit (8) from the dividend, attach it to 18 and continue: 188 / 21

Let's proceed to step 3:
If we divide 188 by 21, we get 8 and a remainder of 20.
The next digit of our result is 8. 
Result so far: 18.0
Subtracting 168 from 188 leaves us with 20.
Bring next digit (3) of the dividend behind the 20 and repeat the process: 203 / 21

Advancing to step 4:
If we divide 203 by 21, we get 9 and a remainder of 14.
Use 9 as the next digit of our solution. 
Result so far: 189.0
Subtracting 189 from 203 leaves us with 14.
Grab the next digit (8) from the dividend, add it to 14, then carry on: 148 / 21

Going ahead to step 5:
The number 21 fits into 148 7 times, leaving a remainder of 1.
The number 7 becomes the next digit in our result. 
Result so far: 1897.0
Subtract 147 from 148 to get 1.
Append the next digit (6) from the dividend to 1 and continue with: 16 / 21

Let's proceed to step 6:
21 can be fit into 16 0 times, resulting in a remainder of 16.
Put 0 as the next digit of the answer. 
Result so far: 18970.0
Subtracting 0 from 16 leaves us with 16.
Since there are no more digits in the dividend, we add a zero to the remainder making it 160, and continue the process.

Let's proceed to step 7:
When dividing 160 by 21, we get 7 with a remainder of 13.
Write down 7 as next digit of the result. 
Result so far: 18970.7
Subtracting 147 from 160 leaves us with 13.
Since there are no more digits in the dividend, we add a zero to the remainder making it 130, and continue the process.

Let's proceed to step 8:
21 goes into 130 6 times with a remainder of 4.
The number 6 becomes the next digit in our result. 
Result so far: 18970.76
The remainder is 4 after subtracting 126 from 130.
Since there are no more digits in the dividend, we add a zero to the remainder making it 40, and continue the process.

Going ahead to step 9:
21 goes into 40 1 times with a remainder of 19.
The next digit of our result is 1. 
Result so far: 18970.761
Deduct 21 from 40 and we're left with 19.
Since there are no more digits in the dividend, we add a zero to the remainder making it 190, and continue the process.

On to step 10:
When dividing 190 by 21, we get 9 with a remainder of 1.
Use 9 as the next digit of our solution. 
Result so far: 18970.7619
Subtracting 189 from 190 leaves us with 1.
Since there are no more digits in the dividend, we add a zero to the remainder making it 10, and continue the process.

Step 11:
If we divide 10 by 21, we get 0 and a remainder of 10.
Record the quotient 0 as the next digit in the result. 
Result so far: 18970.7619
Subtract 0 from 10 to get 10.
Since there are no more digits in the dividend, we add a zero to the remainder making it 100, and continue the process.

Advancing to step 12:
21 goes into 100 4 times with a remainder of 16.
The next digit of our result is 4. 
Result so far: 18970.761904
The remainder is 16 after subtracting 84 from 100.
Since there are no more digits in the dividend, we add a zero to the remainder making it 160, and continue the process.

Going ahead to step 13:
21 goes into 160 7 times with a remainder of 13.
The next digit of our result is 7. 
Result so far: 18970.7619047
Deduct 147 from 160 and we're left with 13.
Since there are no more digits in the dividend, we add a zero to the remainder making it 130, and continue the process.

Moving on to step 14:
130 divided by 21 is 6 with a remainder of 4.
Record the quotient 6 as the next digit in the result. 
Result so far: 18970.76190476
If we subtract 126 from 130, we get 4.
Since there are no more digits in the dividend, we add a zero to the remainder making it 40, and continue the process.

The final result is 18970.76190476 with a remainder of 4e-09.