Let's divide 587187 by 21
Our goal is to divide 587187 by 21.

On to step 1:
If we divide 5 by 21, we get 0 and a remainder of 5.
The next digit of our result is 0. 
Result so far: 0.0
Subtract 0 from 5 to get 5.
Include the next digit (8) from the dividend after 5, then repeat: 58 / 21

On to step 2:
58 divided by 21 is 2 with a remainder of 16.
Use 2 as the next digit of our solution. 
Result so far: 2.0
The remainder is 16 after subtracting 42 from 58.
Fetch the next digit (7) from the dividend, attach it to 16 and continue: 167 / 21

On to step 3:
21 goes into 167 7 times with a remainder of 20.
The next digit of our result is 7. 
Result so far: 27.0
The remainder is 20 after subtracting 147 from 167.
Fetch the next digit (1) from the dividend, attach it to 20 and continue: 201 / 21

Going ahead to step 4:
When dividing 201 by 21, we get 9 with a remainder of 12.
Use 9 as the next digit of our solution. 
Result so far: 279.0
Subtracting 189 from 201 leaves us with 12.
Bring next digit (8) of the dividend behind the 12 and repeat the process: 128 / 21

Going ahead to step 5:
If we divide 128 by 21, we get 6 and a remainder of 2.
Put 6 as the next digit of the answer. 
Result so far: 2796.0
The remainder is 2 after subtracting 126 from 128.
Grab the next digit (7) from the dividend, add it to 2, then carry on: 27 / 21

Going ahead to step 6:
If we divide 27 by 21, we get 1 and a remainder of 6.
Write down 1 as next digit of the result. 
Result so far: 27961.0
If we take 21 away from 27, we end up with 6.
Since there are no more digits in the dividend, we add a zero to the remainder making it 60, and continue the process.

Let's proceed to step 7:
If we divide 60 by 21, we get 2 and a remainder of 18.
Put 2 as the next digit of the answer. 
Result so far: 27961.2
Subtracting 42 from 60 leaves us with 18.
Since there are no more digits in the dividend, we add a zero to the remainder making it 180, and continue the process.

Advancing to step 8:
When dividing 180 by 21, we get 8 with a remainder of 12.
The next digit of our result is 8. 
Result so far: 27961.28
Subtracting 168 from 180 leaves us with 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:
120 divided by 21 is 5 with a remainder of 15.
Use 5 as the next digit of our solution. 
Result so far: 27961.285
Subtracting 105 from 120 leaves us with 15.
Since there are no more digits in the dividend, we add a zero to the remainder making it 150, and continue the process.

Step 10:
The number 21 fits into 150 7 times, leaving a remainder of 3.
Put 7 as the next digit of the answer. 
Result so far: 27961.2857
If we take 147 away from 150, we end up with 3.
Since there are no more digits in the dividend, we add a zero to the remainder making it 30, and continue the process.

Advancing to step 11:
The number 21 fits into 30 1 times, leaving a remainder of 9.
The next digit of our result is 1. 
Result so far: 27961.28571
Subtracting 21 from 30 leaves us 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.

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

Let's proceed to step 13:
21 goes into 60 2 times with a remainder of 18.
Use 2 as the next digit of our solution. 
Result so far: 27961.2857142
If we subtract 42 from 60, we get 18.
Since there are no more digits in the dividend, we add a zero to the remainder making it 180, and continue the process.

Step 14:
When dividing 180 by 21, we get 8 with a remainder of 12.
Use 8 as the next digit of our solution. 
Result so far: 27961.28571428
Subtract 168 from 180 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.

Our division results in 27961.28571428 with a remaining 1.2e-08.