We're dividing 507942 by 39 
We're looking to find how many times 39 goes into 507942.

Step 1:
5 divided by 39 is 0 with a remainder of 5.
The next digit of our result is 0. 
Result so far: 0.0
Subtracting 0 from 5 leaves us with 5.
Fetch the next digit (0) from the dividend, attach it to 5 and continue: 50 / 39

Let's proceed to step 2:
The number 39 fits into 50 1 times, leaving a remainder of 11.
The next digit of our result is 1. 
Result so far: 1.0
If we subtract 39 from 50, we get 11.
Append the next digit (7) from the dividend to 11 and continue with: 117 / 39

Advancing to step 3:
39 goes into 117 3 times with a remainder of 0.
The next digit of our result is 3. 
Result so far: 13.0
Subtracting 117 from 117 leaves us with 0.
Take the next digit (9) from the dividend and append it to 0, then repeat: 9 / 39

Going ahead to step 4:
39 can be fit into 9 0 times, resulting in a remainder of 9.
Use 0 as the next digit of our solution. 
Result so far: 130.0
Deduct 0 from 9 and we're left with 9.
Include the next digit (4) from the dividend after 9, then repeat: 94 / 39

Step 5:
If we divide 94 by 39, we get 2 and a remainder of 16.
Use 2 as the next digit of our solution. 
Result so far: 1302.0
If we subtract 78 from 94, we get 16.
Bring next digit (2) of the dividend behind the 16 and repeat the process: 162 / 39

Advancing to step 6:
The number 39 fits into 162 4 times, leaving a remainder of 6.
The next digit of our result is 4. 
Result so far: 13024.0
Subtracting 156 from 162 leaves us with 6.
Since there are no more digits in the dividend, we add a zero to the remainder making it 60, and continue the process.

On to step 7:
If we divide 60 by 39, we get 1 and a remainder of 21.
Record the quotient 1 as the next digit in the result. 
Result so far: 13024.1
Deduct 39 from 60 and we're left with 21.
Since there are no more digits in the dividend, we add a zero to the remainder making it 210, and continue the process.

Advancing to step 8:
If we divide 210 by 39, we get 5 and a remainder of 15.
Record the quotient 5 as the next digit in the result. 
Result so far: 13024.15
If we take 195 away from 210, we end up with 15.
Since there are no more digits in the dividend, we add a zero to the remainder making it 150, and continue the process.

On to step 9:
When dividing 150 by 39, we get 3 with a remainder of 33.
The next digit of our result is 3. 
Result so far: 13024.153
Subtract 117 from 150 to get 33.
Since there are no more digits in the dividend, we add a zero to the remainder making it 330, and continue the process.

Let's proceed to step 10:
330 divided by 39 is 8 with a remainder of 18.
The number 8 becomes the next digit in our result. 
Result so far: 13024.1538
Subtracting 312 from 330 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.

Step 11:
When dividing 180 by 39, we get 4 with a remainder of 24.
Write down 4 as next digit of the result. 
Result so far: 13024.15384
The remainder is 24 after subtracting 156 from 180.
Since there are no more digits in the dividend, we add a zero to the remainder making it 240, and continue the process.

Moving on to step 12:
If we divide 240 by 39, we get 6 and a remainder of 6.
The next digit of our result is 6. 
Result so far: 13024.153846
The remainder is 6 after subtracting 234 from 240.
Since there are no more digits in the dividend, we add a zero to the remainder making it 60, and continue the process.

Advancing to step 13:
When dividing 60 by 39, we get 1 with a remainder of 21.
The number 1 becomes the next digit in our result. 
Result so far: 13024.1538461
Subtract 39 from 60 to get 21.
Since there are no more digits in the dividend, we add a zero to the remainder making it 210, and continue the process.

Going ahead to step 14:
If we divide 210 by 39, we get 5 and a remainder of 15.
The number 5 becomes the next digit in our result. 
Result so far: 13024.15384615
If we subtract 195 from 210, we get 15.
Since there are no more digits in the dividend, we add a zero to the remainder making it 150, and continue the process.

The final result is 13024.15384615 with a remainder of 1.5e-08.