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

Going ahead to step 1:
39 can be fit into 3 0 times, resulting in a remainder of 3.
Put 0 as the next digit of the answer. 
Result so far: 0.0
Subtract 0 from 3 to get 3.
Grab the next digit (1) from the dividend, add it to 3, then carry on: 31 / 39

Step 2:
When dividing 31 by 39, we get 0 with a remainder of 31.
Put 0 as the next digit of the answer. 
Result so far: 0.0
Subtracting 0 from 31 leaves us with 31.
Take the next digit (1) from the dividend and append it to 31, then repeat: 311 / 39

Going ahead to step 3:
39 can be fit into 311 7 times, resulting in a remainder of 38.
Put 7 as the next digit of the answer. 
Result so far: 7.0
Deduct 273 from 311 and we're left with 38.
Fetch the next digit (2) from the dividend, attach it to 38 and continue: 382 / 39

Step 4:
When dividing 382 by 39, we get 9 with a remainder of 31.
Put 9 as the next digit of the answer. 
Result so far: 79.0
Subtract 351 from 382 to get 31.
Append the next digit (2) from the dividend to 31 and continue with: 312 / 39

Let's proceed to step 5:
When dividing 312 by 39, we get 8 with a remainder of 0.
Use 8 as the next digit of our solution. 
Result so far: 798.0
If we take 312 away from 312, we end up with 0.
Grab the next digit (7) from the dividend, add it to 0, then carry on: 7 / 39

On to step 6:
7 divided by 39 is 0 with a remainder of 7.
Write down 0 as next digit of the result. 
Result so far: 7980.0
Subtracting 0 from 7 leaves us 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.

Advancing to step 7:
When dividing 70 by 39, we get 1 with a remainder of 31.
Use 1 as the next digit of our solution. 
Result so far: 7980.1
Deduct 39 from 70 and we're left 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.

On to step 8:
310 divided by 39 is 7 with a remainder of 37.
Record the quotient 7 as the next digit in the result. 
Result so far: 7980.17
Subtract 273 from 310 to 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.

On to step 9:
39 can be fit into 370 9 times, resulting in a remainder of 19.
Write down 9 as next digit of the result. 
Result so far: 7980.179
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.

Advancing to step 10:
If we divide 190 by 39, we get 4 and a remainder of 34.
Use 4 as the next digit of our solution. 
Result so far: 7980.1794
If we subtract 156 from 190, we get 34.
Since there are no more digits in the dividend, we add a zero to the remainder making it 340, and continue the process.

Step 11:
340 divided by 39 is 8 with a remainder of 28.
The number 8 becomes the next digit in our result. 
Result so far: 7980.17948
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.

Moving on to step 12:
280 divided by 39 is 7 with a remainder of 7.
Put 7 as the next digit of the answer. 
Result so far: 7980.179487
If we subtract 273 from 280, we get 7.
Since there are no more digits in the dividend, we add a zero to the remainder making it 70, and continue the process.

On to step 13:
The number 39 fits into 70 1 times, leaving a remainder of 31.
Record the quotient 1 as the next digit in the result. 
Result so far: 7980.1794871
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.

Let's proceed to step 14:
If we divide 310 by 39, we get 7 and a remainder of 37.
Put 7 as the next digit of the answer. 
Result so far: 7980.17948717
Subtracting 273 from 310 leaves us with 37.
Since there are no more digits in the dividend, we add a zero to the remainder making it 370, and continue the process.

The quotient of the division is 7980.17948717, and the remainder is 3.7e-08.