Let's divide 311355 by 40
We want to figure out the number of times 311355 can be divided by 40.

Step 1:
The number 40 fits into 3 0 times, leaving a remainder of 3.
Write down 0 as next digit of the result. 
Result so far: 0.0
The remainder is 3 after subtracting 0 from 3.
Take the next digit (1) from the dividend and append it to 3, then repeat: 31 / 40

Let's proceed to step 2:
31 divided by 40 is 0 with a remainder of 31.
Write down 0 as next digit of the result. 
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 / 40

Advancing to step 3:
When dividing 311 by 40, we get 7 with a remainder of 31.
Use 7 as the next digit of our solution. 
Result so far: 7.0
Deduct 280 from 311 and we're left with 31.
Take the next digit (3) from the dividend and append it to 31, then repeat: 313 / 40

Step 4:
40 can be fit into 313 7 times, resulting in a remainder of 33.
The number 7 becomes the next digit in our result. 
Result so far: 77.0
The remainder is 33 after subtracting 280 from 313.
Grab the next digit (5) from the dividend, add it to 33, then carry on: 335 / 40

Going ahead to step 5:
If we divide 335 by 40, we get 8 and a remainder of 15.
The next digit of our result is 8. 
Result so far: 778.0
The remainder is 15 after subtracting 320 from 335.
Append the next digit (5) from the dividend to 15 and continue with: 155 / 40

On to step 6:
155 divided by 40 is 3 with a remainder of 35.
Record the quotient 3 as the next digit in the result. 
Result so far: 7783.0
Deduct 120 from 155 and we're left 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.

Moving on to step 7:
The number 40 fits into 350 8 times, leaving a remainder of 30.
Write down 8 as next digit of the result. 
Result so far: 7783.8
If we subtract 320 from 350, we get 30.
Since there are no more digits in the dividend, we add a zero to the remainder making it 300, and continue the process.

Advancing to step 8:
When dividing 300 by 40, we get 7 with a remainder of 20.
Put 7 as the next digit of the answer. 
Result so far: 7783.87
The remainder is 20 after subtracting 280 from 300.
Since there are no more digits in the dividend, we add a zero to the remainder making it 200, and continue the process.

On to step 9:
If we divide 200 by 40, we get 5 and a remainder of 0.
The next digit of our result is 5. 
Result so far: 7783.875
Subtracting 200 from 200 leaves us with 0.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

Moving on to step 10:
When dividing 0 by 40, we get 0 with a remainder of 0.
The number 0 becomes the next digit in our result. 
Result so far: 7783.875
If we subtract 0 from 0, we get 0.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

Advancing to step 11:
40 goes into 0 0 times with a remainder of 0.
The next digit of our result is 0. 
Result so far: 7783.875
Deduct 0 from 0 and we're left with 0.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

The quotient of the division is 7783.875, and the remainder is 0.0.