311165 ÷ 45 
Let's see how many times 45 fits into 311165.

On to step 1:
3 divided by 45 is 0 with a remainder of 3.
Write down 0 as next digit of the result. 
Result so far: 0.0
If we take 0 away from 3, we end up with 3.
Append the next digit (1) from the dividend to 3 and continue with: 31 / 45

Going ahead to step 2:
The number 45 fits into 31 0 times, leaving 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 (1) from the dividend after 31, then repeat: 311 / 45

Let's proceed to step 3:
45 goes into 311 6 times with a remainder of 41.
The next digit of our result is 6. 
Result so far: 6.0
Subtract 270 from 311 to get 41.
Grab the next digit (1) from the dividend, add it to 41, then carry on: 411 / 45

Step 4:
If we divide 411 by 45, we get 9 and a remainder of 6.
Put 9 as the next digit of the answer. 
Result so far: 69.0
Deduct 405 from 411 and we're left with 6.
Include the next digit (6) from the dividend after 6, then repeat: 66 / 45

Step 5:
When dividing 66 by 45, we get 1 with a remainder of 21.
The next digit of our result is 1. 
Result so far: 691.0
Subtracting 45 from 66 leaves us with 21.
Take the next digit (5) from the dividend and append it to 21, then repeat: 215 / 45

On to step 6:
45 goes into 215 4 times with a remainder of 35.
Put 4 as the next digit of the answer. 
Result so far: 6914.0
Subtracting 180 from 215 leaves us with 35.
Since there are no more digits in the dividend, we add a zero to the remainder making it 350, and continue the process.

On to step 7:
350 divided by 45 is 7 with a remainder of 35.
The next digit of our result is 7. 
Result so far: 6914.7
If we take 315 away from 350, we end up with 35.
Since there are no more digits in the dividend, we add a zero to the remainder making it 350, and continue the process.

On to step 8:
45 can be fit into 350 7 times, resulting in a remainder of 35.
The number 7 becomes the next digit in our result. 
Result so far: 6914.77
The remainder is 35 after subtracting 315 from 350.
Since there are no more digits in the dividend, we add a zero to the remainder making it 350, and continue the process.

The final outcome is 6914.77, with a leftover of 0.035.