Let's divide 510731 by 39
Our goal is to divide 510731 by 39.

Going ahead to step 1:
When dividing 5 by 39, we get 0 with a remainder of 5.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
If we take 0 away from 5, we end up with 5.
Grab the next digit (1) from the dividend, add it to 5, then carry on: 51 / 39

On to 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
Subtract 39 from 51 to get 12.
Append the next digit (0) from the dividend to 12 and continue with: 120 / 39

Step 3:
If we divide 120 by 39, we get 3 and a remainder of 3.
The next digit of our result is 3. 
Result so far: 13.0
Subtract 117 from 120 to get 3.
Fetch the next digit (7) from the dividend, attach it to 3 and continue: 37 / 39

Advancing to step 4:
When dividing 37 by 39, we get 0 with a remainder of 37.
Write down 0 as next digit of the result. 
Result so far: 130.0
If we take 0 away from 37, we end up with 37.
Grab the next digit (3) from the dividend, add it to 37, then carry on: 373 / 39

On to step 5:
If we divide 373 by 39, we get 9 and a remainder of 22.
Write down 9 as next digit of the result. 
Result so far: 1309.0
The remainder is 22 after subtracting 351 from 373.
Append the next digit (1) from the dividend to 22 and continue with: 221 / 39

Advancing to step 6:
The number 39 fits into 221 5 times, leaving a remainder of 26.
The number 5 becomes the next digit in our result. 
Result so far: 13095.0
Subtracting 195 from 221 leaves us with 26.
Since there are no more digits in the dividend, we add a zero to the remainder making it 260, and continue the process.

On to step 7:
260 divided by 39 is 6 with a remainder of 26.
The number 6 becomes the next digit in our result. 
Result so far: 13095.6
Subtract 234 from 260 to get 26.
Since there are no more digits in the dividend, we add a zero to the remainder making it 260, and continue the process.

Advancing to step 8:
When dividing 260 by 39, we get 6 with a remainder of 26.
Record the quotient 6 as the next digit in the result. 
Result so far: 13095.66
Subtracting 234 from 260 leaves us with 26.
Since there are no more digits in the dividend, we add a zero to the remainder making it 260, and continue the process.

Our division results in 13095.66 with a remaining 0.026.