We divide 39831 by 39
Let's see how many times 39 fits into 39831.

Going ahead to step 1:
The number 39 fits into 3 0 times, leaving a remainder of 3.
The next digit of our result is 0. 
Result so far: 0.0
If we subtract 0 from 3, we get 3.
Bring next digit (9) of the dividend behind the 3 and repeat the process: 39 / 39

Step 2:
When dividing 39 by 39, we get 1 with a remainder of 0.
Write down 1 as next digit of the result. 
Result so far: 1.0
The remainder is 0 after subtracting 39 from 39.
Append the next digit (8) from the dividend to 0 and continue with: 8 / 39

Advancing to step 3:
The number 39 fits into 8 0 times, leaving a remainder of 8.
Record the quotient 0 as the next digit in the result. 
Result so far: 10.0
If we take 0 away from 8, we end up with 8.
Fetch the next digit (3) from the dividend, attach it to 8 and continue: 83 / 39

Moving on to step 4:
If we divide 83 by 39, we get 2 and a remainder of 5.
Record the quotient 2 as the next digit in the result. 
Result so far: 102.0
If we take 78 away from 83, we end up with 5.
Take the next digit (1) from the dividend and append it to 5, then repeat: 51 / 39

Going ahead to step 5:
If we divide 51 by 39, we get 1 and a remainder of 12.
The number 1 becomes the next digit in our result. 
Result so far: 1021.0
Deduct 39 from 51 and we're left with 12.
Since there are no more digits in the dividend, we add a zero to the remainder making it 120, and continue the process.

Moving on to step 6:
39 can be fit into 120 3 times, resulting in a remainder of 3.
The next digit of our result is 3. 
Result so far: 1021.3
Subtracting 117 from 120 leaves us with 3.
Since there are no more digits in the dividend, we add a zero to the remainder making it 30, and continue the process.

On to step 7:
30 divided by 39 is 0 with a remainder of 30.
Write down 0 as next digit of the result. 
Result so far: 1021.3
If we subtract 0 from 30, we get 30.
Since there are no more digits in the dividend, we add a zero to the remainder making it 300, and continue the process.

Going ahead to step 8:
39 goes into 300 7 times with a remainder of 27.
Use 7 as the next digit of our solution. 
Result so far: 1021.307
Deduct 273 from 300 and we're left with 27.
Since there are no more digits in the dividend, we add a zero to the remainder making it 270, and continue the process.

Let's proceed to step 9:
The number 39 fits into 270 6 times, leaving a remainder of 36.
The next digit of our result is 6. 
Result so far: 1021.3076
The remainder is 36 after subtracting 234 from 270.
Since there are no more digits in the dividend, we add a zero to the remainder making it 360, and continue the process.

On to step 10:
When dividing 360 by 39, we get 9 with a remainder of 9.
Record the quotient 9 as the next digit in the result. 
Result so far: 1021.30769
If we take 351 away from 360, we end up with 9.
Since there are no more digits in the dividend, we add a zero to the remainder making it 90, and continue the process.

Going ahead to step 11:
When dividing 90 by 39, we get 2 with a remainder of 12.
Record the quotient 2 as the next digit in the result. 
Result so far: 1021.307692
If we take 78 away from 90, we end up with 12.
Since there are no more digits in the dividend, we add a zero to the remainder making it 120, and continue the process.

Let's proceed to step 12:
39 goes into 120 3 times with a remainder of 3.
Use 3 as the next digit of our solution. 
Result so far: 1021.3076923
Subtract 117 from 120 to get 3.
Since there are no more digits in the dividend, we add a zero to the remainder making it 30, and continue the process.

Moving on to step 13:
39 can be fit into 30 0 times, resulting in a remainder of 30.
Put 0 as the next digit of the answer. 
Result so far: 1021.3076923
If we take 0 away from 30, we end up with 30.
Since there are no more digits in the dividend, we add a zero to the remainder making it 300, and continue the process.

The final result is 1021.3076923 with a remainder of 3e-08.