We look at the division of 506347 by 21 
Let's see how many times 21 fits into 506347.

Let's proceed to step 1:
The number 21 fits into 5 0 times, leaving a remainder of 5.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
Subtracting 0 from 5 leaves us with 5.
Include the next digit (0) from the dividend after 5, then repeat: 50 / 21

Advancing to step 2:
When dividing 50 by 21, we get 2 with a remainder of 8.
Use 2 as the next digit of our solution. 
Result so far: 2.0
Subtracting 42 from 50 leaves us with 8.
Take the next digit (6) from the dividend and append it to 8, then repeat: 86 / 21

Going ahead to step 3:
21 goes into 86 4 times with a remainder of 2.
Put 4 as the next digit of the answer. 
Result so far: 24.0
If we take 84 away from 86, we end up with 2.
Append the next digit (3) from the dividend to 2 and continue with: 23 / 21

Going ahead to step 4:
23 divided by 21 is 1 with a remainder of 2.
Record the quotient 1 as the next digit in the result. 
Result so far: 241.0
The remainder is 2 after subtracting 21 from 23.
Grab the next digit (4) from the dividend, add it to 2, then carry on: 24 / 21

Going ahead to step 5:
21 can be fit into 24 1 times, resulting in a remainder of 3.
Use 1 as the next digit of our solution. 
Result so far: 2411.0
Deduct 21 from 24 and we're left with 3.
Grab the next digit (7) from the dividend, add it to 3, then carry on: 37 / 21

Going ahead to step 6:
21 goes into 37 1 times with a remainder of 16.
Use 1 as the next digit of our solution. 
Result so far: 24111.0
Deduct 21 from 37 and we're left 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.

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

Advancing to step 8:
21 can be fit into 130 6 times, resulting in a remainder of 4.
Put 6 as the next digit of the answer. 
Result so far: 24111.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.

Advancing to step 9:
If we divide 40 by 21, we get 1 and a remainder of 19.
Write down 1 as next digit of the result. 
Result so far: 24111.761
If we subtract 21 from 40, we get 19.
Since there are no more digits in the dividend, we add a zero to the remainder making it 190, and continue the process.

Advancing to step 10:
The number 21 fits into 190 9 times, leaving a remainder of 1.
Write down 9 as next digit of the result. 
Result so far: 24111.7619
The remainder is 1 after subtracting 189 from 190.
Since there are no more digits in the dividend, we add a zero to the remainder making it 10, and continue the process.

Moving on to step 11:
When dividing 10 by 21, we get 0 with a remainder of 10.
Write down 0 as next digit of the result. 
Result so far: 24111.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.

Going ahead to step 12:
The number 21 fits into 100 4 times, leaving a remainder of 16.
The number 4 becomes the next digit in our result. 
Result so far: 24111.761904
Subtract 84 from 100 to get 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 13:
The number 21 fits into 160 7 times, leaving a remainder of 13.
Use 7 as the next digit of our solution. 
Result so far: 24111.7619047
The remainder is 13 after subtracting 147 from 160.
Since there are no more digits in the dividend, we add a zero to the remainder making it 130, and continue the process.

On to step 14:
130 divided by 21 is 6 with a remainder of 4.
The number 6 becomes the next digit in our result. 
Result so far: 24111.76190476
If we take 126 away from 130, we end up with 4.
Since there are no more digits in the dividend, we add a zero to the remainder making it 40, and continue the process.

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