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

Advancing to step 1:
21 goes into 5 0 times with a remainder of 5.
Write down 0 as next digit of the result. 
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

Advancing to step 2:
21 goes into 58 2 times with a remainder of 16.
The number 2 becomes the next digit in our result. 
Result so far: 2.0
The remainder is 16 after subtracting 42 from 58.
Append the next digit (5) from the dividend to 16 and continue with: 165 / 21

Going ahead to step 3:
21 goes into 165 7 times with a remainder of 18.
Write down 7 as next digit of the result. 
Result so far: 27.0
If we take 147 away from 165, we end up with 18.
Append the next digit (1) from the dividend to 18 and continue with: 181 / 21

On to step 4:
21 can be fit into 181 8 times, resulting in a remainder of 13.
The next digit of our result is 8. 
Result so far: 278.0
The remainder is 13 after subtracting 168 from 181.
Fetch the next digit (8) from the dividend, attach it to 13 and continue: 138 / 21

Step 5:
138 divided by 21 is 6 with a remainder of 12.
Write down 6 as next digit of the result. 
Result so far: 2786.0
Deduct 126 from 138 and we're left 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.

Moving on to step 6:
21 can be fit into 120 5 times, resulting in a remainder of 15.
Record the quotient 5 as the next digit in the result. 
Result so far: 2786.5
If we subtract 105 from 120, we get 15.
Since there are no more digits in the dividend, we add a zero to the remainder making it 150, and continue the process.

On to step 7:
21 can be fit into 150 7 times, resulting in a remainder of 3.
Write down 7 as next digit of the result. 
Result so far: 2786.57
Deduct 147 from 150 and we're left 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.

Step 8:
When dividing 30 by 21, we get 1 with a remainder of 9.
The next digit of our result is 1. 
Result so far: 2786.571
The remainder is 9 after subtracting 21 from 30.
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 9:
The number 21 fits into 90 4 times, leaving a remainder of 6.
Record the quotient 4 as the next digit in the result. 
Result so far: 2786.5714
If we subtract 84 from 90, we get 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 10:
21 goes into 60 2 times with a remainder of 18.
The number 2 becomes the next digit in our result. 
Result so far: 2786.57142
Subtract 42 from 60 to 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.

On to step 11:
When dividing 180 by 21, we get 8 with a remainder of 12.
The next digit of our result is 8. 
Result so far: 2786.571428
If we take 168 away from 180, we end up 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.

Advancing to step 12:
The number 21 fits into 120 5 times, leaving a remainder of 15.
The next digit of our result is 5. 
Result so far: 2786.5714285
Deduct 105 from 120 and we're left 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.

Advancing to step 13:
150 divided by 21 is 7 with a remainder of 3.
Use 7 as the next digit of our solution. 
Result so far: 2786.57142857
Subtracting 147 from 150 leaves us 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.

After the division, we end up with 2786.57142857 and a remainder of 3e-09.