We're dividing 310771 by 39 
We want to divide 310771 by 39.

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

Step 2:
If we divide 31 by 39, we get 0 and a remainder of 31.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
Subtract 0 from 31 to get 31.
Include the next digit (0) from the dividend after 31, then repeat: 310 / 39

Let's proceed to step 3:
If we divide 310 by 39, we get 7 and a remainder of 37.
Use 7 as the next digit of our solution. 
Result so far: 7.0
If we subtract 273 from 310, we get 37.
Append the next digit (7) from the dividend to 37 and continue with: 377 / 39

Step 4:
39 can be fit into 377 9 times, resulting in a remainder of 26.
The next digit of our result is 9. 
Result so far: 79.0
If we take 351 away from 377, we end up with 26.
Bring next digit (7) of the dividend behind the 26 and repeat the process: 267 / 39

On to step 5:
267 divided by 39 is 6 with a remainder of 33.
Use 6 as the next digit of our solution. 
Result so far: 796.0
The remainder is 33 after subtracting 234 from 267.
Include the next digit (1) from the dividend after 33, then repeat: 331 / 39

Advancing to step 6:
If we divide 331 by 39, we get 8 and a remainder of 19.
Write down 8 as next digit of the result. 
Result so far: 7968.0
Subtracting 312 from 331 leaves us with 19.
Since there are no more digits in the dividend, we add a zero to the remainder making it 190, and continue the process.

Step 7:
When dividing 190 by 39, we get 4 with a remainder of 34.
The number 4 becomes the next digit in our result. 
Result so far: 7968.4
If we take 156 away from 190, we end up with 34.
Since there are no more digits in the dividend, we add a zero to the remainder making it 340, and continue the process.

Moving on to step 8:
When dividing 340 by 39, we get 8 with a remainder of 28.
The next digit of our result is 8. 
Result so far: 7968.48
The remainder is 28 after subtracting 312 from 340.
Since there are no more digits in the dividend, we add a zero to the remainder making it 280, and continue the process.

On to step 9:
280 divided by 39 is 7 with a remainder of 7.
Record the quotient 7 as the next digit in the result. 
Result so far: 7968.487
If we take 273 away from 280, we end up with 7.
Since there are no more digits in the dividend, we add a zero to the remainder making it 70, and continue the process.

Step 10:
If we divide 70 by 39, we get 1 and a remainder of 31.
The number 1 becomes the next digit in our result. 
Result so far: 7968.4871
Subtracting 39 from 70 leaves us with 31.
Since there are no more digits in the dividend, we add a zero to the remainder making it 310, and continue the process.

Step 11:
If we divide 310 by 39, we get 7 and a remainder of 37.
Record the quotient 7 as the next digit in the result. 
Result so far: 7968.48717
If we subtract 273 from 310, we get 37.
Since there are no more digits in the dividend, we add a zero to the remainder making it 370, and continue the process.

Moving on to step 12:
39 goes into 370 9 times with a remainder of 19.
Put 9 as the next digit of the answer. 
Result so far: 7968.487179
Subtracting 351 from 370 leaves us with 19.
Since there are no more digits in the dividend, we add a zero to the remainder making it 190, and continue the process.

Moving on to step 13:
39 can be fit into 190 4 times, resulting in a remainder of 34.
Use 4 as the next digit of our solution. 
Result so far: 7968.4871794
Deduct 156 from 190 and we're left with 34.
Since there are no more digits in the dividend, we add a zero to the remainder making it 340, and continue the process.

Let's proceed to step 14:
The number 39 fits into 340 8 times, leaving a remainder of 28.
The next digit of our result is 8. 
Result so far: 7968.48717948
If we subtract 312 from 340, we get 28.
Since there are no more digits in the dividend, we add a zero to the remainder making it 280, and continue the process.

In conclusion, the division gives 7968.48717948 with a balance of 2.8e-08.