Let's divide 502036 by 13
We're looking to find how many times 13 goes into 502036.

Going ahead to step 1:
5 divided by 13 is 0 with a remainder of 5.
Put 0 as the next digit of the answer. 
Result so far: 0.0
If we subtract 0 from 5, we get 5.
Take the next digit (0) from the dividend and append it to 5, then repeat: 50 / 13

Step 2:
If we divide 50 by 13, we get 3 and a remainder of 11.
Put 3 as the next digit of the answer. 
Result so far: 3.0
Subtracting 39 from 50 leaves us with 11.
Include the next digit (2) from the dividend after 11, then repeat: 112 / 13

Step 3:
When dividing 112 by 13, we get 8 with a remainder of 8.
Write down 8 as next digit of the result. 
Result so far: 38.0
The remainder is 8 after subtracting 104 from 112.
Take the next digit (0) from the dividend and append it to 8, then repeat: 80 / 13

Moving on to step 4:
13 can be fit into 80 6 times, resulting in a remainder of 2.
Write down 6 as next digit of the result. 
Result so far: 386.0
Subtracting 78 from 80 leaves us with 2.
Bring next digit (3) of the dividend behind the 2 and repeat the process: 23 / 13

On to step 5:
23 divided by 13 is 1 with a remainder of 10.
Use 1 as the next digit of our solution. 
Result so far: 3861.0
If we take 13 away from 23, we end up with 10.
Fetch the next digit (6) from the dividend, attach it to 10 and continue: 106 / 13

Moving on to step 6:
When dividing 106 by 13, we get 8 with a remainder of 2.
Write down 8 as next digit of the result. 
Result so far: 38618.0
If we take 104 away from 106, we end up with 2.
Since there are no more digits in the dividend, we add a zero to the remainder making it 20, and continue the process.

Going ahead to step 7:
The number 13 fits into 20 1 times, leaving a remainder of 7.
Write down 1 as next digit of the result. 
Result so far: 38618.1
Subtract 13 from 20 to get 7.
Since there are no more digits in the dividend, we add a zero to the remainder making it 70, and continue the process.

Going ahead to step 8:
70 divided by 13 is 5 with a remainder of 5.
Use 5 as the next digit of our solution. 
Result so far: 38618.15
Deduct 65 from 70 and we're left with 5.
Since there are no more digits in the dividend, we add a zero to the remainder making it 50, and continue the process.

On to step 9:
When dividing 50 by 13, we get 3 with a remainder of 11.
Put 3 as the next digit of the answer. 
Result so far: 38618.153
If we subtract 39 from 50, we get 11.
Since there are no more digits in the dividend, we add a zero to the remainder making it 110, and continue the process.

Moving on to step 10:
110 divided by 13 is 8 with a remainder of 6.
The number 8 becomes the next digit in our result. 
Result so far: 38618.1538
If we subtract 104 from 110, 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.

Advancing to step 11:
If we divide 60 by 13, we get 4 and a remainder of 8.
Record the quotient 4 as the next digit in the result. 
Result so far: 38618.15384
Subtract 52 from 60 to get 8.
Since there are no more digits in the dividend, we add a zero to the remainder making it 80, and continue the process.

Going ahead to step 12:
13 goes into 80 6 times with a remainder of 2.
Record the quotient 6 as the next digit in the result. 
Result so far: 38618.153846
Deduct 78 from 80 and we're left with 2.
Since there are no more digits in the dividend, we add a zero to the remainder making it 20, and continue the process.

On to step 13:
20 divided by 13 is 1 with a remainder of 7.
The number 1 becomes the next digit in our result. 
Result so far: 38618.1538461
The remainder is 7 after subtracting 13 from 20.
Since there are no more digits in the dividend, we add a zero to the remainder making it 70, and continue the process.

Going ahead to step 14:
If we divide 70 by 13, we get 5 and a remainder of 5.
Put 5 as the next digit of the answer. 
Result so far: 38618.15384615
Subtracting 65 from 70 leaves us with 5.
Since there are no more digits in the dividend, we add a zero to the remainder making it 50, and continue the process.

The quotient of the division is 38618.15384615, and the remainder is 5e-09.