501312 divided by 21 
We want to divide 501312 by 21.

Advancing to step 1:
The number 21 fits into 5 0 times, leaving a remainder of 5.
The next digit of our result is 0. 
Result so far: 0.0
If we subtract 0 from 5, we get 5.
Include the next digit (0) from the dividend after 5, then repeat: 50 / 21

Let's proceed to step 2:
21 goes into 50 2 times with a remainder of 8.
Record the quotient 2 as the next digit in the result. 
Result so far: 2.0
The remainder is 8 after subtracting 42 from 50.
Bring next digit (1) of the dividend behind the 8 and repeat the process: 81 / 21

Advancing to step 3:
21 can be fit into 81 3 times, resulting in a remainder of 18.
Write down 3 as next digit of the result. 
Result so far: 23.0
Subtract 63 from 81 to get 18.
Fetch the next digit (3) from the dividend, attach it to 18 and continue: 183 / 21

Let's proceed to step 4:
183 divided by 21 is 8 with a remainder of 15.
The number 8 becomes the next digit in our result. 
Result so far: 238.0
If we take 168 away from 183, we end up with 15.
Include the next digit (1) from the dividend after 15, then repeat: 151 / 21

Advancing to step 5:
151 divided by 21 is 7 with a remainder of 4.
Put 7 as the next digit of the answer. 
Result so far: 2387.0
Subtract 147 from 151 to get 4.
Grab the next digit (2) from the dividend, add it to 4, then carry on: 42 / 21

Step 6:
42 divided by 21 is 2 with a remainder of 0.
The number 2 becomes the next digit in our result. 
Result so far: 23872.0
Subtracting 42 from 42 leaves us with 0.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

Let's proceed to step 7:
If we divide 0 by 21, we get 0 and a remainder of 0.
The next digit of our result is 0. 
Result so far: 23872.0
Subtract 0 from 0 to get 0.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

On to step 8:
The number 21 fits into 0 0 times, leaving a remainder of 0.
The next digit of our result is 0. 
Result so far: 23872.0
Deduct 0 from 0 and we're left with 0.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

The quotient of the division is 23872.0, and the remainder is 0.0.