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

Going ahead to step 1:
40 can be fit into 2 0 times, resulting in a remainder of 2.
The next digit of our result is 0. 
Result so far: 0.0
Subtracting 0 from 2 leaves us with 2.
Take the next digit (2) from the dividend and append it to 2, then repeat: 22 / 40

Step 2:
22 divided by 40 is 0 with a remainder of 22.
Write down 0 as next digit of the result. 
Result so far: 0.0
If we subtract 0 from 22, we get 22.
Append the next digit (9) from the dividend to 22 and continue with: 229 / 40

Moving on to step 3:
If we divide 229 by 40, we get 5 and a remainder of 29.
The number 5 becomes the next digit in our result. 
Result so far: 5.0
Deduct 200 from 229 and we're left with 29.
Fetch the next digit (3) from the dividend, attach it to 29 and continue: 293 / 40

Step 4:
If we divide 293 by 40, we get 7 and a remainder of 13.
Record the quotient 7 as the next digit in the result. 
Result so far: 57.0
If we take 280 away from 293, we end up with 13.
Take the next digit (1) from the dividend and append it to 13, then repeat: 131 / 40

Advancing to step 5:
40 can be fit into 131 3 times, resulting in a remainder of 11.
Put 3 as the next digit of the answer. 
Result so far: 573.0
If we subtract 120 from 131, we get 11.
Grab the next digit (1) from the dividend, add it to 11, then carry on: 111 / 40

Let's proceed to step 6:
When dividing 111 by 40, we get 2 with a remainder of 31.
The number 2 becomes the next digit in our result. 
Result so far: 5732.0
Deduct 80 from 111 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.

Step 7:
If we divide 310 by 40, we get 7 and a remainder of 30.
Write down 7 as next digit of the result. 
Result so far: 5732.7
If we subtract 280 from 310, 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.

Moving on to step 8:
The number 40 fits into 300 7 times, leaving a remainder of 20.
Use 7 as the next digit of our solution. 
Result so far: 5732.77
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.

After the division, we end up with 5732.77 and a remainder of 0.02.