Let's divide 512785 by 39
We want to divide 512785 by 39.

On to step 1:
39 goes into 5 0 times with a remainder of 5.
Use 0 as the next digit of our solution. 
Result so far: 0.0
Subtracting 0 from 5 leaves us with 5.
Bring next digit (1) of the dividend behind the 5 and repeat the process: 51 / 39

On to step 2:
51 divided by 39 is 1 with a remainder of 12.
Put 1 as the next digit of the answer. 
Result so far: 1.0
The remainder is 12 after subtracting 39 from 51.
Append the next digit (2) from the dividend to 12 and continue with: 122 / 39

On to step 3:
39 can be fit into 122 3 times, resulting in a remainder of 5.
Use 3 as the next digit of our solution. 
Result so far: 13.0
The remainder is 5 after subtracting 117 from 122.
Fetch the next digit (7) from the dividend, attach it to 5 and continue: 57 / 39

Let's proceed to step 4:
39 goes into 57 1 times with a remainder of 18.
Use 1 as the next digit of our solution. 
Result so far: 131.0
Subtract 39 from 57 to get 18.
Include the next digit (8) from the dividend after 18, then repeat: 188 / 39

On to step 5:
188 divided by 39 is 4 with a remainder of 32.
Put 4 as the next digit of the answer. 
Result so far: 1314.0
The remainder is 32 after subtracting 156 from 188.
Take the next digit (5) from the dividend and append it to 32, then repeat: 325 / 39

Going ahead to step 6:
The number 39 fits into 325 8 times, leaving a remainder of 13.
Write down 8 as next digit of the result. 
Result so far: 13148.0
Subtract 312 from 325 to get 13.
Since there are no more digits in the dividend, we add a zero to the remainder making it 130, and continue the process.

Advancing to step 7:
When dividing 130 by 39, we get 3 with a remainder of 13.
Write down 3 as next digit of the result. 
Result so far: 13148.3
Subtract 117 from 130 to get 13.
Since there are no more digits in the dividend, we add a zero to the remainder making it 130, and continue the process.

Going ahead to step 8:
39 goes into 130 3 times with a remainder of 13.
The next digit of our result is 3. 
Result so far: 13148.33
Subtract 117 from 130 to get 13.
Since there are no more digits in the dividend, we add a zero to the remainder making it 130, and continue the process.

The final result is 13148.33 with a remainder of 0.013.