891245 divided by 40 
The aim is to understand the frequency of 40 in 891245.

Step 1:
40 can be fit into 8 0 times, resulting in a remainder of 8.
Put 0 as the next digit of the answer. 
Result so far: 0.0
Subtracting 0 from 8 leaves us with 8.
Include the next digit (9) from the dividend after 8, then repeat: 89 / 40

Step 2:
If we divide 89 by 40, we get 2 and a remainder of 9.
Record the quotient 2 as the next digit in the result. 
Result so far: 2.0
Deduct 80 from 89 and we're left with 9.
Bring next digit (1) of the dividend behind the 9 and repeat the process: 91 / 40

Going ahead to step 3:
If we divide 91 by 40, we get 2 and a remainder of 11.
Put 2 as the next digit of the answer. 
Result so far: 22.0
The remainder is 11 after subtracting 80 from 91.
Bring next digit (2) of the dividend behind the 11 and repeat the process: 112 / 40

Let's proceed to step 4:
112 divided by 40 is 2 with a remainder of 32.
The number 2 becomes the next digit in our result. 
Result so far: 222.0
Deduct 80 from 112 and we're left with 32.
Append the next digit (4) from the dividend to 32 and continue with: 324 / 40

Going ahead to step 5:
If we divide 324 by 40, we get 8 and a remainder of 4.
Use 8 as the next digit of our solution. 
Result so far: 2228.0
Subtract 320 from 324 to get 4.
Bring next digit (5) of the dividend behind the 4 and repeat the process: 45 / 40

Step 6:
40 can be fit into 45 1 times, resulting in a remainder of 5.
The number 1 becomes the next digit in our result. 
Result so far: 22281.0
The remainder is 5 after subtracting 40 from 45.
Since there are no more digits in the dividend, we add a zero to the remainder making it 50, and continue the process.

Step 7:
If we divide 50 by 40, we get 1 and a remainder of 10.
Record the quotient 1 as the next digit in the result. 
Result so far: 22281.1
If we subtract 40 from 50, we get 10.
Since there are no more digits in the dividend, we add a zero to the remainder making it 100, and continue the process.

Let's proceed to step 8:
40 can be fit into 100 2 times, resulting in a remainder of 20.
Write down 2 as next digit of the result. 
Result so far: 22281.12
If we subtract 80 from 100, we 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.

Let's proceed to step 9:
40 can be fit into 200 5 times, resulting in a remainder of 0.
The number 5 becomes the next digit in our result. 
Result so far: 22281.125
Deduct 200 from 200 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.

Going ahead to step 10:
0 divided by 40 is 0 with a remainder of 0.
The next digit of our result is 0. 
Result so far: 22281.125
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.

Advancing to step 11:
40 goes into 0 0 times with a remainder of 0.
Write down 0 as next digit of the result. 
Result so far: 22281.125
Subtract 0 from 0 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.

The final outcome is 22281.125, with a leftover of 0.0.