We look at the division of 502173 by 86 
We want to divide 502173 by 86.

Let's proceed to step 1:
86 goes into 5 0 times with a remainder of 5.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
If we take 0 away from 5, we end up with 5.
Fetch the next digit (0) from the dividend, attach it to 5 and continue: 50 / 86

On to step 2:
86 goes into 50 0 times with a remainder of 50.
Use 0 as the next digit of our solution. 
Result so far: 0.0
Subtract 0 from 50 to get 50.
Grab the next digit (2) from the dividend, add it to 50, then carry on: 502 / 86

Moving on to step 3:
The number 86 fits into 502 5 times, leaving a remainder of 72.
Put 5 as the next digit of the answer. 
Result so far: 5.0
The remainder is 72 after subtracting 430 from 502.
Fetch the next digit (1) from the dividend, attach it to 72 and continue: 721 / 86

On to step 4:
If we divide 721 by 86, we get 8 and a remainder of 33.
Put 8 as the next digit of the answer. 
Result so far: 58.0
Deduct 688 from 721 and we're left with 33.
Append the next digit (7) from the dividend to 33 and continue with: 337 / 86

Advancing to step 5:
86 can be fit into 337 3 times, resulting in a remainder of 79.
The next digit of our result is 3. 
Result so far: 583.0
If we subtract 258 from 337, we get 79.
Bring next digit (3) of the dividend behind the 79 and repeat the process: 793 / 86

Moving on to step 6:
86 can be fit into 793 9 times, resulting in a remainder of 19.
The next digit of our result is 9. 
Result so far: 5839.0
If we subtract 774 from 793, we get 19.
Since there are no more digits in the dividend, we add a zero to the remainder making it 190, and continue the process.

On to step 7:
190 divided by 86 is 2 with a remainder of 18.
Record the quotient 2 as the next digit in the result. 
Result so far: 5839.2
Subtracting 172 from 190 leaves us 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.

Moving on to step 8:
86 can be fit into 180 2 times, resulting in a remainder of 8.
Use 2 as the next digit of our solution. 
Result so far: 5839.22
If we subtract 172 from 180, we 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.

The quotient of the division is 5839.22, and the remainder is 0.008.