We're dividing 501042 by 10 
We're looking to find how many times 10 goes into 501042.

On to step 1:
When dividing 5 by 10, we get 0 with a remainder of 5.
Write down 0 as next digit of the result. 
Result so far: 0.0
The remainder is 5 after subtracting 0 from 5.
Fetch the next digit (0) from the dividend, attach it to 5 and continue: 50 / 10

Advancing to step 2:
10 goes into 50 5 times with a remainder of 0.
Put 5 as the next digit of the answer. 
Result so far: 5.0
Subtracting 50 from 50 leaves us with 0.
Bring next digit (1) of the dividend behind the 0 and repeat the process: 1 / 10

Step 3:
When dividing 1 by 10, we get 0 with a remainder of 1.
The number 0 becomes the next digit in our result. 
Result so far: 50.0
Deduct 0 from 1 and we're left with 1.
Include the next digit (0) from the dividend after 1, then repeat: 10 / 10

On to step 4:
10 goes into 10 1 times with a remainder of 0.
Use 1 as the next digit of our solution. 
Result so far: 501.0
If we take 10 away from 10, we end up with 0.
Bring next digit (4) of the dividend behind the 0 and repeat the process: 4 / 10

Let's proceed to step 5:
If we divide 4 by 10, we get 0 and a remainder of 4.
Write down 0 as next digit of the result. 
Result so far: 5010.0
If we take 0 away from 4, we end up with 4.
Append the next digit (2) from the dividend to 4 and continue with: 42 / 10

Let's proceed to step 6:
42 divided by 10 is 4 with a remainder of 2.
Use 4 as the next digit of our solution. 
Result so far: 50104.0
Subtract 40 from 42 to get 2.
Since there are no more digits in the dividend, we add a zero to the remainder making it 20, and continue the process.

Step 7:
10 can be fit into 20 2 times, resulting in a remainder of 0.
The number 2 becomes the next digit in our result. 
Result so far: 50104.2
Subtracting 20 from 20 leaves us 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.

Let's proceed to step 8:
10 goes into 0 0 times with a remainder of 0.
Record the quotient 0 as the next digit in the result. 
Result so far: 50104.2
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:
0 divided by 10 is 0 with a remainder of 0.
The number 0 becomes the next digit in our result. 
Result so far: 50104.2
Subtracting 0 from 0 leaves us 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.

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