We look at the division of 311866 by 9 
We want to divide 311866 by 9.

Advancing to step 1:
When dividing 3 by 9, we get 0 with a remainder of 3.
Write down 0 as next digit of the result. 
Result so far: 0.0
Subtracting 0 from 3 leaves us with 3.
Fetch the next digit (1) from the dividend, attach it to 3 and continue: 31 / 9

Going ahead to step 2:
9 goes into 31 3 times with a remainder of 4.
Put 3 as the next digit of the answer. 
Result so far: 3.0
Deduct 27 from 31 and we're left with 4.
Append the next digit (1) from the dividend to 4 and continue with: 41 / 9

Step 3:
The number 9 fits into 41 4 times, leaving a remainder of 5.
Write down 4 as next digit of the result. 
Result so far: 34.0
Subtract 36 from 41 to get 5.
Fetch the next digit (8) from the dividend, attach it to 5 and continue: 58 / 9

On to step 4:
58 divided by 9 is 6 with a remainder of 4.
Put 6 as the next digit of the answer. 
Result so far: 346.0
Subtract 54 from 58 to get 4.
Grab the next digit (6) from the dividend, add it to 4, then carry on: 46 / 9

Step 5:
The number 9 fits into 46 5 times, leaving a remainder of 1.
Record the quotient 5 as the next digit in the result. 
Result so far: 3465.0
If we subtract 45 from 46, we get 1.
Append the next digit (6) from the dividend to 1 and continue with: 16 / 9

Moving on to step 6:
If we divide 16 by 9, we get 1 and a remainder of 7.
Write down 1 as next digit of the result. 
Result so far: 34651.0
Subtract 9 from 16 to 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.

Moving on to step 7:
9 can be fit into 70 7 times, resulting in a remainder of 7.
The next digit of our result is 7. 
Result so far: 34651.7
If we take 63 away from 70, 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 8:
When dividing 70 by 9, we get 7 with a remainder of 7.
Record the quotient 7 as the next digit in the result. 
Result so far: 34651.77
The remainder is 7 after subtracting 63 from 70.
Since there are no more digits in the dividend, we add a zero to the remainder making it 70, and continue the process.

Our division results in 34651.77 with a remaining 0.007.