Let's divide 895112 by 40
We're looking to find how many times 40 goes into 895112.

Going ahead to step 1:
When dividing 8 by 40, we get 0 with a remainder of 8.
Write down 0 as next digit of the result. 
Result so far: 0.0
Deduct 0 from 8 and we're left with 8.
Fetch the next digit (9) from the dividend, attach it to 8 and continue: 89 / 40

Moving on to step 2:
89 divided by 40 is 2 with a remainder of 9.
Record the quotient 2 as the next digit in the result. 
Result so far: 2.0
If we subtract 80 from 89, we get 9.
Fetch the next digit (5) from the dividend, attach it to 9 and continue: 95 / 40

On to step 3:
If we divide 95 by 40, we get 2 and a remainder of 15.
The next digit of our result is 2. 
Result so far: 22.0
If we subtract 80 from 95, we get 15.
Append the next digit (1) from the dividend to 15 and continue with: 151 / 40

Let's proceed to step 4:
When dividing 151 by 40, we get 3 with a remainder of 31.
Use 3 as the next digit of our solution. 
Result so far: 223.0
If we subtract 120 from 151, we get 31.
Fetch the next digit (1) from the dividend, attach it to 31 and continue: 311 / 40

Step 5:
When dividing 311 by 40, we get 7 with a remainder of 31.
Put 7 as the next digit of the answer. 
Result so far: 2237.0
Deduct 280 from 311 and we're left with 31.
Bring next digit (2) of the dividend behind the 31 and repeat the process: 312 / 40

Step 6:
The number 40 fits into 312 7 times, leaving a remainder of 32.
Write down 7 as next digit of the result. 
Result so far: 22377.0
Subtracting 280 from 312 leaves us with 32.
Since there are no more digits in the dividend, we add a zero to the remainder making it 320, and continue the process.

Advancing to step 7:
When dividing 320 by 40, we get 8 with a remainder of 0.
Put 8 as the next digit of the answer. 
Result so far: 22377.8
Subtract 320 from 320 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.

Going ahead to step 8:
If we divide 0 by 40, we get 0 and a remainder of 0.
Write down 0 as next digit of the result. 
Result so far: 22377.8
Subtracting 0 from 0 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.

On to step 9:
0 divided by 40 is 0 with a remainder of 0.
The number 0 becomes the next digit in our result. 
Result so far: 22377.8
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.

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