We're dividing 507142 by 3 
We want to figure out the number of times 507142 can be divided by 3.

Step 1:
3 can be fit into 5 1 times, resulting in a remainder of 2.
Put 1 as the next digit of the answer. 
Result so far: 1.0
The remainder is 2 after subtracting 3 from 5.
Fetch the next digit (0) from the dividend, attach it to 2 and continue: 20 / 3

Advancing to step 2:
The number 3 fits into 20 6 times, leaving a remainder of 2.
Write down 6 as next digit of the result. 
Result so far: 16.0
If we subtract 18 from 20, we get 2.
Append the next digit (7) from the dividend to 2 and continue with: 27 / 3

Going ahead to step 3:
3 goes into 27 9 times with a remainder of 0.
The number 9 becomes the next digit in our result. 
Result so far: 169.0
Subtract 27 from 27 to get 0.
Fetch the next digit (1) from the dividend, attach it to 0 and continue: 1 / 3

Let's proceed to step 4:
The number 3 fits into 1 0 times, leaving a remainder of 1.
The next digit of our result is 0. 
Result so far: 1690.0
Subtracting 0 from 1 leaves us with 1.
Bring next digit (4) of the dividend behind the 1 and repeat the process: 14 / 3

Going ahead to step 5:
3 can be fit into 14 4 times, resulting in a remainder of 2.
Put 4 as the next digit of the answer. 
Result so far: 16904.0
The remainder is 2 after subtracting 12 from 14.
Take the next digit (2) from the dividend and append it to 2, then repeat: 22 / 3

Advancing to step 6:
The number 3 fits into 22 7 times, leaving a remainder of 1.
The next digit of our result is 7. 
Result so far: 169047.0
Subtracting 21 from 22 leaves us with 1.
Since there are no more digits in the dividend, we add a zero to the remainder making it 10, and continue the process.

Moving on to step 7:
The number 3 fits into 10 3 times, leaving a remainder of 1.
Use 3 as the next digit of our solution. 
Result so far: 169047.3
If we subtract 9 from 10, we get 1.
Since there are no more digits in the dividend, we add a zero to the remainder making it 10, and continue the process.

Step 8:
If we divide 10 by 3, we get 3 and a remainder of 1.
The next digit of our result is 3. 
Result so far: 169047.33
The remainder is 1 after subtracting 9 from 10.
Since there are no more digits in the dividend, we add a zero to the remainder making it 10, and continue the process.

In conclusion, the division gives 169047.33 with a balance of 0.001.