We divide 501042 by 6
We want to divide 501042 by 6.

Let's proceed to step 1:
6 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 subtract 0 from 5, we get 5.
Include the next digit (0) from the dividend after 5, then repeat: 50 / 6

Moving on to step 2:
When dividing 50 by 6, we get 8 with a remainder of 2.
The number 8 becomes the next digit in our result. 
Result so far: 8.0
If we subtract 48 from 50, we get 2.
Include the next digit (1) from the dividend after 2, then repeat: 21 / 6

Moving on to step 3:
21 divided by 6 is 3 with a remainder of 3.
The next digit of our result is 3. 
Result so far: 83.0
The remainder is 3 after subtracting 18 from 21.
Fetch the next digit (0) from the dividend, attach it to 3 and continue: 30 / 6

Moving on to step 4:
6 goes into 30 5 times with a remainder of 0.
The number 5 becomes the next digit in our result. 
Result so far: 835.0
The remainder is 0 after subtracting 30 from 30.
Bring next digit (4) of the dividend behind the 0 and repeat the process: 4 / 6

Moving on to step 5:
If we divide 4 by 6, we get 0 and a remainder of 4.
Use 0 as the next digit of our solution. 
Result so far: 8350.0
If we subtract 0 from 4, we get 4.
Fetch the next digit (2) from the dividend, attach it to 4 and continue: 42 / 6

Step 6:
42 divided by 6 is 7 with a remainder of 0.
The next digit of our result is 7. 
Result so far: 83507.0
Subtract 42 from 42 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.

Going ahead to step 7:
The number 6 fits into 0 0 times, leaving a remainder of 0.
Write down 0 as next digit of the result. 
Result so far: 83507.0
If we take 0 away from 0, we end up with 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 8:
The number 6 fits into 0 0 times, leaving a remainder of 0.
Write down 0 as next digit of the result. 
Result so far: 83507.0
If we subtract 0 from 0, we 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.

The final result is 83507.0 with a remainder of 0.0.