We look at the division of 888565 by 40 
We want to figure out the number of times 888565 can be divided by 40.

Step 1:
40 can be fit into 8 0 times, resulting in a remainder of 8.
Use 0 as the next digit of our solution. 
Result so far: 0.0
If we subtract 0 from 8, we get 8.
Include the next digit (8) from the dividend after 8, then repeat: 88 / 40

Advancing to step 2:
When dividing 88 by 40, we get 2 with a remainder of 8.
Write down 2 as next digit of the result. 
Result so far: 2.0
If we take 80 away from 88, we end up with 8.
Append the next digit (8) from the dividend to 8 and continue with: 88 / 40

On to step 3:
The number 40 fits into 88 2 times, leaving a remainder of 8.
Record the quotient 2 as the next digit in the result. 
Result so far: 22.0
If we take 80 away from 88, we end up with 8.
Take the next digit (5) from the dividend and append it to 8, then repeat: 85 / 40

Advancing to step 4:
85 divided by 40 is 2 with a remainder of 5.
Record the quotient 2 as the next digit in the result. 
Result so far: 222.0
Subtract 80 from 85 to get 5.
Grab the next digit (6) from the dividend, add it to 5, then carry on: 56 / 40

Going ahead to step 5:
40 can be fit into 56 1 times, resulting in a remainder of 16.
The next digit of our result is 1. 
Result so far: 2221.0
Deduct 40 from 56 and we're left with 16.
Grab the next digit (5) from the dividend, add it to 16, then carry on: 165 / 40

Going ahead to step 6:
40 goes into 165 4 times with a remainder of 5.
The next digit of our result is 4. 
Result so far: 22214.0
If we take 160 away from 165, we end up with 5.
Since there are no more digits in the dividend, we add a zero to the remainder making it 50, and continue the process.

On to step 7:
40 can be fit into 50 1 times, resulting in a remainder of 10.
Put 1 as the next digit of the answer. 
Result so far: 22214.1
Deduct 40 from 50 and we're left with 10.
Since there are no more digits in the dividend, we add a zero to the remainder making it 100, and continue the process.

Step 8:
The number 40 fits into 100 2 times, leaving a remainder of 20.
The next digit of our result is 2. 
Result so far: 22214.12
If we take 80 away from 100, we end up 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.

Moving on to step 9:
200 divided by 40 is 5 with a remainder of 0.
Write down 5 as next digit of the result. 
Result so far: 22214.125
If we subtract 200 from 200, 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 10:
0 divided by 40 is 0 with a remainder of 0.
Write down 0 as next digit of the result. 
Result so far: 22214.125
If we take 0 away from 0, we end up 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 11:
The number 40 fits into 0 0 times, leaving a remainder of 0.
The number 0 becomes the next digit in our result. 
Result so far: 22214.125
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 22214.125, and the remainder is 0.0.