502742 divided by 39 
Our goal is to divide 502742 by 39.

Let's proceed to step 1:
5 divided by 39 is 0 with a remainder of 5.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
Deduct 0 from 5 and we're left with 5.
Take the next digit (0) from the dividend and append it to 5, then repeat: 50 / 39

Let's proceed to step 2:
50 divided by 39 is 1 with a remainder of 11.
Write down 1 as next digit of the result. 
Result so far: 1.0
The remainder is 11 after subtracting 39 from 50.
Include the next digit (2) from the dividend after 11, then repeat: 112 / 39

On to step 3:
The number 39 fits into 112 2 times, leaving a remainder of 34.
Use 2 as the next digit of our solution. 
Result so far: 12.0
Deduct 78 from 112 and we're left with 34.
Grab the next digit (7) from the dividend, add it to 34, then carry on: 347 / 39

Moving on to step 4:
When dividing 347 by 39, we get 8 with a remainder of 35.
Record the quotient 8 as the next digit in the result. 
Result so far: 128.0
If we take 312 away from 347, we end up with 35.
Append the next digit (4) from the dividend to 35 and continue with: 354 / 39

Step 5:
354 divided by 39 is 9 with a remainder of 3.
The next digit of our result is 9. 
Result so far: 1289.0
Subtract 351 from 354 to get 3.
Bring next digit (2) of the dividend behind the 3 and repeat the process: 32 / 39

Going ahead to step 6:
39 can be fit into 32 0 times, resulting in a remainder of 32.
Use 0 as the next digit of our solution. 
Result so far: 12890.0
If we subtract 0 from 32, we get 32.
Since there are no more digits in the dividend, we add a zero to the remainder making it 320, and continue the process.

On to step 7:
320 divided by 39 is 8 with a remainder of 8.
Put 8 as the next digit of the answer. 
Result so far: 12890.8
Deduct 312 from 320 and we're left with 8.
Since there are no more digits in the dividend, we add a zero to the remainder making it 80, and continue the process.

Moving on to step 8:
If we divide 80 by 39, we get 2 and a remainder of 2.
Use 2 as the next digit of our solution. 
Result so far: 12890.82
If we take 78 away from 80, we end up with 2.
Since there are no more digits in the dividend, we add a zero to the remainder making it 20, and continue the process.

Advancing to step 9:
If we divide 20 by 39, we get 0 and a remainder of 20.
Write down 0 as next digit of the result. 
Result so far: 12890.82
If we subtract 0 from 20, we get 20.
Since there are no more digits in the dividend, we add a zero to the remainder making it 200, and continue the process.

Let's proceed to step 10:
200 divided by 39 is 5 with a remainder of 5.
Record the quotient 5 as the next digit in the result. 
Result so far: 12890.8205
The remainder is 5 after subtracting 195 from 200.
Since there are no more digits in the dividend, we add a zero to the remainder making it 50, and continue the process.

On to step 11:
39 can be fit into 50 1 times, resulting in a remainder of 11.
Write down 1 as next digit of the result. 
Result so far: 12890.82051
Deduct 39 from 50 and we're left with 11.
Since there are no more digits in the dividend, we add a zero to the remainder making it 110, and continue the process.

On to step 12:
39 can be fit into 110 2 times, resulting in a remainder of 32.
The next digit of our result is 2. 
Result so far: 12890.820512
Deduct 78 from 110 and we're left with 32.
Since there are no more digits in the dividend, we add a zero to the remainder making it 320, and continue the process.

Step 13:
39 can be fit into 320 8 times, resulting in a remainder of 8.
Put 8 as the next digit of the answer. 
Result so far: 12890.8205128
Subtracting 312 from 320 leaves us with 8.
Since there are no more digits in the dividend, we add a zero to the remainder making it 80, and continue the process.

Advancing to step 14:
The number 39 fits into 80 2 times, leaving a remainder of 2.
The next digit of our result is 2. 
Result so far: 12890.82051282
Subtract 78 from 80 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.

The final outcome is 12890.82051282, with a leftover of 2e-09.