We divide 5035873 by 502
We're looking to find how many times 502 goes into 5035873.

Step 1:
The number 502 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
If we take 0 away from 5, we end up with 5.
Bring next digit (0) of the dividend behind the 5 and repeat the process: 50 / 502

Going ahead to step 2:
502 goes into 50 0 times with a remainder of 50.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
Subtracting 0 from 50 leaves us with 50.
Append the next digit (3) from the dividend to 50 and continue with: 503 / 502

Step 3:
The number 502 fits into 503 1 times, leaving a remainder of 1.
Record the quotient 1 as the next digit in the result. 
Result so far: 1.0
Subtract 502 from 503 to get 1.
Append the next digit (5) from the dividend to 1 and continue with: 15 / 502

On to step 4:
If we divide 15 by 502, we get 0 and a remainder of 15.
Use 0 as the next digit of our solution. 
Result so far: 10.0
Deduct 0 from 15 and we're left with 15.
Grab the next digit (8) from the dividend, add it to 15, then carry on: 158 / 502

Advancing to step 5:
158 divided by 502 is 0 with a remainder of 158.
Record the quotient 0 as the next digit in the result. 
Result so far: 100.0
If we subtract 0 from 158, we get 158.
Bring next digit (7) of the dividend behind the 158 and repeat the process: 1587 / 502

On to step 6:
502 goes into 1587 3 times with a remainder of 81.
The number 3 becomes the next digit in our result. 
Result so far: 1003.0
If we subtract 1506 from 1587, we get 81.
Take the next digit (3) from the dividend and append it to 81, then repeat: 813 / 502

Going ahead to step 7:
If we divide 813 by 502, we get 1 and a remainder of 311.
Record the quotient 1 as the next digit in the result. 
Result so far: 10031.0
Subtracting 502 from 813 leaves us with 311.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3110, and continue the process.

Advancing to step 8:
If we divide 3110 by 502, we get 6 and a remainder of 98.
Put 6 as the next digit of the answer. 
Result so far: 10031.6
Subtracting 3012 from 3110 leaves us with 98.
Since there are no more digits in the dividend, we add a zero to the remainder making it 980, and continue the process.

Going ahead to step 9:
The number 502 fits into 980 1 times, leaving a remainder of 478.
Use 1 as the next digit of our solution. 
Result so far: 10031.61
If we subtract 502 from 980, we get 478.
Since there are no more digits in the dividend, we add a zero to the remainder making it 4780, and continue the process.

Step 10:
4780 divided by 502 is 9 with a remainder of 262.
The number 9 becomes the next digit in our result. 
Result so far: 10031.619
The remainder is 262 after subtracting 4518 from 4780.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2620, and continue the process.

On to step 11:
When dividing 2620 by 502, we get 5 with a remainder of 110.
The number 5 becomes the next digit in our result. 
Result so far: 10031.6195
If we take 2510 away from 2620, we end up with 110.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1100, and continue the process.

Going ahead to step 12:
1100 divided by 502 is 2 with a remainder of 96.
Write down 2 as next digit of the result. 
Result so far: 10031.61952
If we subtract 1004 from 1100, we get 96.
Since there are no more digits in the dividend, we add a zero to the remainder making it 960, and continue the process.

Let's proceed to step 13:
When dividing 960 by 502, we get 1 with a remainder of 458.
The next digit of our result is 1. 
Result so far: 10031.619521
The remainder is 458 after subtracting 502 from 960.
Since there are no more digits in the dividend, we add a zero to the remainder making it 4580, and continue the process.

Advancing to step 14:
If we divide 4580 by 502, we get 9 and a remainder of 62.
The number 9 becomes the next digit in our result. 
Result so far: 10031.6195219
Subtracting 4518 from 4580 leaves us with 62.
Since there are no more digits in the dividend, we add a zero to the remainder making it 620, and continue the process.

Advancing to step 15:
620 divided by 502 is 1 with a remainder of 118.
Write down 1 as next digit of the result. 
Result so far: 10031.61952191
If we subtract 502 from 620, we get 118.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1180, and continue the process.

Our division results in 10031.61952191 with a remaining 1.18e-07.