We look at the division of 311165 by 24 
Let's see how many times 24 fits into 311165.

Advancing to step 1:
If we divide 3 by 24, we get 0 and a remainder of 3.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
Subtracting 0 from 3 leaves us with 3.
Append the next digit (1) from the dividend to 3 and continue with: 31 / 24

Let's proceed to step 2:
24 goes into 31 1 times with a remainder of 7.
Record the quotient 1 as the next digit in the result. 
Result so far: 1.0
Deduct 24 from 31 and we're left with 7.
Include the next digit (1) from the dividend after 7, then repeat: 71 / 24

On to step 3:
The number 24 fits into 71 2 times, leaving a remainder of 23.
Use 2 as the next digit of our solution. 
Result so far: 12.0
Deduct 48 from 71 and we're left with 23.
Bring next digit (1) of the dividend behind the 23 and repeat the process: 231 / 24

Let's proceed to step 4:
The number 24 fits into 231 9 times, leaving a remainder of 15.
Use 9 as the next digit of our solution. 
Result so far: 129.0
Subtracting 216 from 231 leaves us with 15.
Take the next digit (6) from the dividend and append it to 15, then repeat: 156 / 24

Advancing to step 5:
When dividing 156 by 24, we get 6 with a remainder of 12.
The number 6 becomes the next digit in our result. 
Result so far: 1296.0
Subtracting 144 from 156 leaves us with 12.
Grab the next digit (5) from the dividend, add it to 12, then carry on: 125 / 24

Advancing to step 6:
If we divide 125 by 24, we get 5 and a remainder of 5.
The next digit of our result is 5. 
Result so far: 12965.0
If we subtract 120 from 125, we get 5.
Since there are no more digits in the dividend, we add a zero to the remainder making it 50, and continue the process.

Going ahead to step 7:
24 can be fit into 50 2 times, resulting in a remainder of 2.
Put 2 as the next digit of the answer. 
Result so far: 12965.2
Deduct 48 from 50 and we're left with 2.
Since there are no more digits in the dividend, we add a zero to the remainder making it 20, and continue the process.

Going ahead to step 8:
24 can be fit into 20 0 times, resulting in a remainder of 20.
Write down 0 as next digit of the result. 
Result so far: 12965.2
Deduct 0 from 20 and we're left with 20.
Since there are no more digits in the dividend, we add a zero to the remainder making it 200, and continue the process.

Advancing to step 9:
200 divided by 24 is 8 with a remainder of 8.
Write down 8 as next digit of the result. 
Result so far: 12965.208
If we take 192 away from 200, we end up with 8.
Since there are no more digits in the dividend, we add a zero to the remainder making it 80, and continue the process.

Going ahead to step 10:
24 can be fit into 80 3 times, resulting in a remainder of 8.
Record the quotient 3 as the next digit in the result. 
Result so far: 12965.2083
Subtracting 72 from 80 leaves us with 8.
Since there are no more digits in the dividend, we add a zero to the remainder making it 80, and continue the process.

Advancing to step 11:
The number 24 fits into 80 3 times, leaving a remainder of 8.
Put 3 as the next digit of the answer. 
Result so far: 12965.20833
Subtract 72 from 80 to get 8.
Since there are no more digits in the dividend, we add a zero to the remainder making it 80, and continue the process.

After the division, we end up with 12965.20833 and a remainder of 8e-06.