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

Let's proceed to step 1:
When dividing 5 by 39, we get 0 with a remainder of 5.
Use 0 as the next digit of our solution. 
Result so far: 0.0
If we take 0 away from 5, we end up with 5.
Take the next digit (1) from the dividend and append it to 5, then repeat: 51 / 39

Step 2:
The number 39 fits into 51 1 times, leaving a remainder of 12.
Write down 1 as next digit of the result. 
Result so far: 1.0
Subtracting 39 from 51 leaves us with 12.
Grab the next digit (2) from the dividend, add it to 12, then carry on: 122 / 39

Going ahead to step 3:
The number 39 fits into 122 3 times, leaving a remainder of 5.
Use 3 as the next digit of our solution. 
Result so far: 13.0
Deduct 117 from 122 and we're left with 5.
Grab the next digit (2) from the dividend, add it to 5, then carry on: 52 / 39

Advancing to step 4:
39 goes into 52 1 times with a remainder of 13.
The number 1 becomes the next digit in our result. 
Result so far: 131.0
Subtract 39 from 52 to get 13.
Append the next digit (4) from the dividend to 13 and continue with: 134 / 39

Advancing to step 5:
39 goes into 134 3 times with a remainder of 17.
Record the quotient 3 as the next digit in the result. 
Result so far: 1313.0
If we take 117 away from 134, we end up with 17.
Include the next digit (7) from the dividend after 17, then repeat: 177 / 39

Advancing to step 6:
39 can be fit into 177 4 times, resulting in a remainder of 21.
The number 4 becomes the next digit in our result. 
Result so far: 13134.0
The remainder is 21 after subtracting 156 from 177.
Since there are no more digits in the dividend, we add a zero to the remainder making it 210, and continue the process.

Let's proceed to step 7:
39 can be fit into 210 5 times, resulting in a remainder of 15.
Put 5 as the next digit of the answer. 
Result so far: 13134.5
The remainder is 15 after subtracting 195 from 210.
Since there are no more digits in the dividend, we add a zero to the remainder making it 150, and continue the process.

Going ahead to step 8:
If we divide 150 by 39, we get 3 and a remainder of 33.
The number 3 becomes the next digit in our result. 
Result so far: 13134.53
Subtracting 117 from 150 leaves us with 33.
Since there are no more digits in the dividend, we add a zero to the remainder making it 330, and continue the process.

Step 9:
39 goes into 330 8 times with a remainder of 18.
Write down 8 as next digit of the result. 
Result so far: 13134.538
If we take 312 away from 330, we end up 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 10:
39 can be fit into 180 4 times, resulting in a remainder of 24.
Record the quotient 4 as the next digit in the result. 
Result so far: 13134.5384
Deduct 156 from 180 and we're left with 24.
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 11:
240 divided by 39 is 6 with a remainder of 6.
Use 6 as the next digit of our solution. 
Result so far: 13134.53846
Deduct 234 from 240 and we're left 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.

Going ahead to step 12:
60 divided by 39 is 1 with a remainder of 21.
Put 1 as the next digit of the answer. 
Result so far: 13134.538461
If we subtract 39 from 60, we 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.

On to step 13:
39 goes into 210 5 times with a remainder of 15.
Put 5 as the next digit of the answer. 
Result so far: 13134.5384615
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.

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

The final outcome is 13134.53846153, with a leftover of 3.3e-08.