We look at the division of 502731 by 6 
We want to figure out the number of times 502731 can be divided by 6.

Going ahead to step 1:
5 divided by 6 is 0 with a remainder of 5.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
The remainder is 5 after subtracting 0 from 5.
Grab the next digit (0) from the dividend, add it to 5, then carry on: 50 / 6

Step 2:
6 can be fit into 50 8 times, resulting in a remainder of 2.
Use 8 as the next digit of our solution. 
Result so far: 8.0
Subtract 48 from 50 to get 2.
Append the next digit (2) from the dividend to 2 and continue with: 22 / 6

Step 3:
The number 6 fits into 22 3 times, leaving a remainder of 4.
The next digit of our result is 3. 
Result so far: 83.0
The remainder is 4 after subtracting 18 from 22.
Grab the next digit (7) from the dividend, add it to 4, then carry on: 47 / 6

On to step 4:
47 divided by 6 is 7 with a remainder of 5.
Write down 7 as next digit of the result. 
Result so far: 837.0
Deduct 42 from 47 and we're left with 5.
Take the next digit (3) from the dividend and append it to 5, then repeat: 53 / 6

Step 5:
53 divided by 6 is 8 with a remainder of 5.
Write down 8 as next digit of the result. 
Result so far: 8378.0
Deduct 48 from 53 and we're left with 5.
Fetch the next digit (1) from the dividend, attach it to 5 and continue: 51 / 6

Moving on to step 6:
51 divided by 6 is 8 with a remainder of 3.
Use 8 as the next digit of our solution. 
Result so far: 83788.0
The remainder is 3 after subtracting 48 from 51.
Since there are no more digits in the dividend, we add a zero to the remainder making it 30, and continue the process.

Going ahead to step 7:
When dividing 30 by 6, we get 5 with a remainder of 0.
Record the quotient 5 as the next digit in the result. 
Result so far: 83788.5
The remainder is 0 after subtracting 30 from 30.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

Going ahead to step 8:
0 divided by 6 is 0 with a remainder of 0.
Write down 0 as next digit of the result. 
Result so far: 83788.5
Subtract 0 from 0 to get 0.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

On to step 9:
The number 6 fits into 0 0 times, leaving a remainder of 0.
The next digit of our result is 0. 
Result so far: 83788.5
Subtract 0 from 0 to get 0.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

After the division, we end up with 83788.5 and a remainder of 0.0.