512004 divided by 21 
We're looking to find how many times 21 goes into 512004.

Let's proceed to step 1:
If we divide 5 by 21, we get 0 and a remainder of 5.
Use 0 as the next digit of our solution. 
Result so far: 0.0
If we subtract 0 from 5, we get 5.
Grab the next digit (1) from the dividend, add it to 5, then carry on: 51 / 21

Step 2:
21 can be fit into 51 2 times, resulting in a remainder of 9.
Put 2 as the next digit of the answer. 
Result so far: 2.0
If we subtract 42 from 51, we get 9.
Bring next digit (2) of the dividend behind the 9 and repeat the process: 92 / 21

Let's proceed to step 3:
21 goes into 92 4 times with a remainder of 8.
Put 4 as the next digit of the answer. 
Result so far: 24.0
Subtract 84 from 92 to get 8.
Take the next digit (0) from the dividend and append it to 8, then repeat: 80 / 21

Step 4:
21 can be fit into 80 3 times, resulting in a remainder of 17.
Record the quotient 3 as the next digit in the result. 
Result so far: 243.0
Subtract 63 from 80 to get 17.
Bring next digit (0) of the dividend behind the 17 and repeat the process: 170 / 21

Going ahead to step 5:
21 can be fit into 170 8 times, resulting in a remainder of 2.
The next digit of our result is 8. 
Result so far: 2438.0
Deduct 168 from 170 and we're left with 2.
Grab the next digit (4) from the dividend, add it to 2, then carry on: 24 / 21

Advancing to step 6:
21 goes into 24 1 times with a remainder of 3.
Use 1 as the next digit of our solution. 
Result so far: 24381.0
The remainder is 3 after subtracting 21 from 24.
Since there are no more digits in the dividend, we add a zero to the remainder making it 30, and continue the process.

On to step 7:
If we divide 30 by 21, we get 1 and a remainder of 9.
Put 1 as the next digit of the answer. 
Result so far: 24381.1
Deduct 21 from 30 and we're left 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.

Going ahead to step 8:
90 divided by 21 is 4 with a remainder of 6.
Use 4 as the next digit of our solution. 
Result so far: 24381.14
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.

On to step 9:
60 divided by 21 is 2 with a remainder of 18.
Use 2 as the next digit of our solution. 
Result so far: 24381.142
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.

Let's proceed to step 10:
21 can be fit into 180 8 times, resulting in a remainder of 12.
The number 8 becomes the next digit in our result. 
Result so far: 24381.1428
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.

On to step 11:
If we divide 120 by 21, we get 5 and a remainder of 15.
Put 5 as the next digit of the answer. 
Result so far: 24381.14285
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 12:
21 goes into 150 7 times with a remainder of 3.
Put 7 as the next digit of the answer. 
Result so far: 24381.142857
If we subtract 147 from 150, we get 3.
Since there are no more digits in the dividend, we add a zero to the remainder making it 30, and continue the process.

On to step 13:
21 goes into 30 1 times with a remainder of 9.
Record the quotient 1 as the next digit in the result. 
Result so far: 24381.1428571
Deduct 21 from 30 and we're left 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.

Going ahead to step 14:
When dividing 90 by 21, we get 4 with a remainder of 6.
The next digit of our result is 4. 
Result so far: 24381.14285714
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.

The quotient of the division is 24381.14285714, and the remainder is 6e-09.