We look at the division of 506382 by 21 
We're looking to find how many times 21 goes into 506382.

On to step 1:
When dividing 5 by 21, we get 0 with a remainder of 5.
Put 0 as the next digit of the answer. 
Result so far: 0.0
Subtracting 0 from 5 leaves us with 5.
Bring next digit (0) of the dividend behind the 5 and repeat the process: 50 / 21

Step 2:
When dividing 50 by 21, we get 2 with a remainder of 8.
The number 2 becomes the next digit in our result. 
Result so far: 2.0
If we take 42 away from 50, we end up with 8.
Fetch the next digit (6) from the dividend, attach it to 8 and continue: 86 / 21

Step 3:
21 goes into 86 4 times with a remainder of 2.
The next digit of our result is 4. 
Result so far: 24.0
Subtracting 84 from 86 leaves us with 2.
Append the next digit (3) from the dividend to 2 and continue with: 23 / 21

Let's proceed to step 4:
The number 21 fits into 23 1 times, leaving a remainder of 2.
Write down 1 as next digit of the result. 
Result so far: 241.0
Subtract 21 from 23 to get 2.
Append the next digit (8) from the dividend to 2 and continue with: 28 / 21

Advancing to step 5:
21 goes into 28 1 times with a remainder of 7.
Record the quotient 1 as the next digit in the result. 
Result so far: 2411.0
If we subtract 21 from 28, we get 7.
Fetch the next digit (2) from the dividend, attach it to 7 and continue: 72 / 21

Going ahead to step 6:
When dividing 72 by 21, we get 3 with a remainder of 9.
Write down 3 as next digit of the result. 
Result so far: 24113.0
If we subtract 63 from 72, we get 9.
Since there are no more digits in the dividend, we add a zero to the remainder making it 90, and continue the process.

Going ahead to step 7:
The number 21 fits into 90 4 times, leaving a remainder of 6.
Write down 4 as next digit of the result. 
Result so far: 24113.4
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.

Moving on to step 8:
When dividing 60 by 21, we get 2 with a remainder of 18.
Use 2 as the next digit of our solution. 
Result so far: 24113.42
The remainder is 18 after subtracting 42 from 60.
Since there are no more digits in the dividend, we add a zero to the remainder making it 180, and continue the process.

Let's proceed to step 9:
21 can be fit into 180 8 times, resulting in a remainder of 12.
Put 8 as the next digit of the answer. 
Result so far: 24113.428
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.

Step 10:
The number 21 fits into 120 5 times, leaving a remainder of 15.
The number 5 becomes the next digit in our result. 
Result so far: 24113.4285
If we take 105 away from 120, we end up 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.

Going ahead to step 11:
If we divide 150 by 21, we get 7 and a remainder of 3.
The next digit of our result is 7. 
Result so far: 24113.42857
The remainder is 3 after subtracting 147 from 150.
Since there are no more digits in the dividend, we add a zero to the remainder making it 30, and continue the process.

Step 12:
21 can be fit into 30 1 times, resulting in a remainder of 9.
Record the quotient 1 as the next digit in the result. 
Result so far: 24113.428571
Subtract 21 from 30 to get 9.
Since there are no more digits in the dividend, we add a zero to the remainder making it 90, and continue the process.

On to step 13:
21 goes into 90 4 times with a remainder of 6.
Put 4 as the next digit of the answer. 
Result so far: 24113.4285714
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.

Going ahead to step 14:
60 divided by 21 is 2 with a remainder of 18.
Write down 2 as next digit of the result. 
Result so far: 24113.42857142
If we take 42 away from 60, we end up 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.

Our division results in 24113.42857142 with a remaining 1.8e-08.