Let's divide 895582 by 40
Let's see how many times 40 fits into 895582.

Advancing to step 1:
The number 40 fits into 8 0 times, leaving a remainder of 8.
Use 0 as the next digit of our solution. 
Result so far: 0.0
Deduct 0 from 8 and we're left with 8.
Bring next digit (9) of the dividend behind the 8 and repeat the process: 89 / 40

Let's proceed to step 2:
When dividing 89 by 40, we get 2 with a remainder of 9.
Use 2 as the next digit of our solution. 
Result so far: 2.0
The remainder is 9 after subtracting 80 from 89.
Bring next digit (5) of the dividend behind the 9 and repeat the process: 95 / 40

Step 3:
40 can be fit into 95 2 times, resulting in a remainder of 15.
The next digit of our result is 2. 
Result so far: 22.0
The remainder is 15 after subtracting 80 from 95.
Append the next digit (5) from the dividend to 15 and continue with: 155 / 40

Going ahead to step 4:
When dividing 155 by 40, we get 3 with a remainder of 35.
Write down 3 as next digit of the result. 
Result so far: 223.0
The remainder is 35 after subtracting 120 from 155.
Fetch the next digit (8) from the dividend, attach it to 35 and continue: 358 / 40

Step 5:
If we divide 358 by 40, we get 8 and a remainder of 38.
Put 8 as the next digit of the answer. 
Result so far: 2238.0
The remainder is 38 after subtracting 320 from 358.
Take the next digit (2) from the dividend and append it to 38, then repeat: 382 / 40

Going ahead to step 6:
40 goes into 382 9 times with a remainder of 22.
Record the quotient 9 as the next digit in the result. 
Result so far: 22389.0
Subtract 360 from 382 to get 22.
Since there are no more digits in the dividend, we add a zero to the remainder making it 220, and continue the process.

Going ahead to step 7:
40 can be fit into 220 5 times, resulting in a remainder of 20.
The number 5 becomes the next digit in our result. 
Result so far: 22389.5
Subtract 200 from 220 to get 20.
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 8:
The number 40 fits into 200 5 times, leaving a remainder of 0.
The next digit of our result is 5. 
Result so far: 22389.55
Subtract 200 from 200 to 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.

After the division, we end up with 22389.55 and a remainder of 0.0.