Let's divide 502004 by 13
Let's see how many times 13 fits into 502004.

On to step 1:
13 can be fit into 5 0 times, resulting in a remainder of 5.
Use 0 as the next digit of our solution. 
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 / 13

Step 2:
13 can be fit into 50 3 times, resulting in a remainder of 11.
The next digit of our result is 3. 
Result so far: 3.0
Subtracting 39 from 50 leaves us with 11.
Grab the next digit (2) from the dividend, add it to 11, then carry on: 112 / 13

Step 3:
13 goes into 112 8 times with a remainder of 8.
Record the quotient 8 as the next digit in the result. 
Result so far: 38.0
The remainder is 8 after subtracting 104 from 112.
Grab the next digit (0) from the dividend, add it to 8, then carry on: 80 / 13

On to step 4:
When dividing 80 by 13, we get 6 with a remainder of 2.
The number 6 becomes the next digit in our result. 
Result so far: 386.0
If we subtract 78 from 80, we get 2.
Grab the next digit (0) from the dividend, add it to 2, then carry on: 20 / 13

Let's proceed to step 5:
The number 13 fits into 20 1 times, leaving a remainder of 7.
Use 1 as the next digit of our solution. 
Result so far: 3861.0
Deduct 13 from 20 and we're left with 7.
Grab the next digit (4) from the dividend, add it to 7, then carry on: 74 / 13

Step 6:
When dividing 74 by 13, we get 5 with a remainder of 9.
The next digit of our result is 5. 
Result so far: 38615.0
If we take 65 away from 74, we end up 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.

Advancing to step 7:
13 goes into 90 6 times with a remainder of 12.
Use 6 as the next digit of our solution. 
Result so far: 38615.6
Subtracting 78 from 90 leaves us 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.

Step 8:
13 goes into 120 9 times with a remainder of 3.
The next digit of our result is 9. 
Result so far: 38615.69
Subtracting 117 from 120 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.

Moving on to step 9:
30 divided by 13 is 2 with a remainder of 4.
The number 2 becomes the next digit in our result. 
Result so far: 38615.692
The remainder is 4 after subtracting 26 from 30.
Since there are no more digits in the dividend, we add a zero to the remainder making it 40, and continue the process.

Step 10:
40 divided by 13 is 3 with a remainder of 1.
The number 3 becomes the next digit in our result. 
Result so far: 38615.6923
If we subtract 39 from 40, we get 1.
Since there are no more digits in the dividend, we add a zero to the remainder making it 10, and continue the process.

On to step 11:
13 can be fit into 10 0 times, resulting in a remainder of 10.
Record the quotient 0 as the next digit in the result. 
Result so far: 38615.6923
Deduct 0 from 10 and we're left with 10.
Since there are no more digits in the dividend, we add a zero to the remainder making it 100, and continue the process.

Step 12:
13 goes into 100 7 times with a remainder of 9.
Write down 7 as next digit of the result. 
Result so far: 38615.692307
If we take 91 away from 100, we end up 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.

Moving on to step 13:
13 can be fit into 90 6 times, resulting in a remainder of 12.
The next digit of our result is 6. 
Result so far: 38615.6923076
The remainder is 12 after subtracting 78 from 90.
Since there are no more digits in the dividend, we add a zero to the remainder making it 120, and continue the process.

Step 14:
120 divided by 13 is 9 with a remainder of 3.
The number 9 becomes the next digit in our result. 
Result so far: 38615.69230769
Subtracting 117 from 120 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.

The final outcome is 38615.69230769, with a leftover of 3e-09.