507394 divided by 39 
We want to divide 507394 by 39.

Advancing to 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.
Append the next digit (0) from the dividend to 5 and continue with: 50 / 39

Going ahead to step 2:
50 divided by 39 is 1 with a remainder of 11.
Record the quotient 1 as the next digit in the result. 
Result so far: 1.0
Deduct 39 from 50 and we're left with 11.
Bring next digit (7) of the dividend behind the 11 and repeat the process: 117 / 39

Advancing to step 3:
The number 39 fits into 117 3 times, leaving a remainder of 0.
The next digit of our result is 3. 
Result so far: 13.0
If we take 117 away from 117, we end up with 0.
Append the next digit (3) from the dividend to 0 and continue with: 3 / 39

Going ahead to step 4:
The number 39 fits into 3 0 times, leaving a remainder of 3.
The number 0 becomes the next digit in our result. 
Result so far: 130.0
The remainder is 3 after subtracting 0 from 3.
Take the next digit (9) from the dividend and append it to 3, then repeat: 39 / 39

Let's proceed to step 5:
39 can be fit into 39 1 times, resulting in a remainder of 0.
The number 1 becomes the next digit in our result. 
Result so far: 1301.0
If we take 39 away from 39, we end up with 0.
Append the next digit (4) from the dividend to 0 and continue with: 4 / 39

Advancing to step 6:
39 can be fit into 4 0 times, resulting in a remainder of 4.
Record the quotient 0 as the next digit in the result. 
Result so far: 13010.0
Subtract 0 from 4 to get 4.
Since there are no more digits in the dividend, we add a zero to the remainder making it 40, and continue the process.

Going ahead to step 7:
40 divided by 39 is 1 with a remainder of 1.
Put 1 as the next digit of the answer. 
Result so far: 13010.1
Deduct 39 from 40 and we're left 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.

Step 8:
When dividing 10 by 39, we get 0 with a remainder of 10.
Use 0 as the next digit of our solution. 
Result so far: 13010.1
Subtracting 0 from 10 leaves us with 10.
Since there are no more digits in the dividend, we add a zero to the remainder making it 100, and continue the process.

Advancing to step 9:
39 can be fit into 100 2 times, resulting in a remainder of 22.
Record the quotient 2 as the next digit in the result. 
Result so far: 13010.102
The remainder is 22 after subtracting 78 from 100.
Since there are no more digits in the dividend, we add a zero to the remainder making it 220, and continue the process.

Let's proceed to step 10:
If we divide 220 by 39, we get 5 and a remainder of 25.
The next digit of our result is 5. 
Result so far: 13010.1025
The remainder is 25 after subtracting 195 from 220.
Since there are no more digits in the dividend, we add a zero to the remainder making it 250, and continue the process.

Step 11:
250 divided by 39 is 6 with a remainder of 16.
Write down 6 as next digit of the result. 
Result so far: 13010.10256
Subtract 234 from 250 to get 16.
Since there are no more digits in the dividend, we add a zero to the remainder making it 160, and continue the process.

Let's proceed to step 12:
39 goes into 160 4 times with a remainder of 4.
Use 4 as the next digit of our solution. 
Result so far: 13010.102564
The remainder is 4 after subtracting 156 from 160.
Since there are no more digits in the dividend, we add a zero to the remainder making it 40, and continue the process.

Moving on to step 13:
If we divide 40 by 39, we get 1 and a remainder of 1.
Write down 1 as next digit of the result. 
Result so far: 13010.1025641
Deduct 39 from 40 and we're left 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.

Let's proceed to step 14:
If we divide 10 by 39, we get 0 and a remainder of 10.
Write down 0 as next digit of the result. 
Result so far: 13010.1025641
The remainder is 10 after subtracting 0 from 10.
Since there are no more digits in the dividend, we add a zero to the remainder making it 100, and continue the process.

After the division, we end up with 13010.1025641 and a remainder of 1e-08.