We look at the division of 958184 by 40 
The aim is to understand the frequency of 40 in 958184.

Going ahead to step 1:
9 divided by 40 is 0 with a remainder of 9.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
Deduct 0 from 9 and we're left with 9.
Take the next digit (5) from the dividend and append it to 9, then repeat: 95 / 40

Moving on to step 2:
40 goes into 95 2 times with a remainder of 15.
Use 2 as the next digit of our solution. 
Result so far: 2.0
Subtracting 80 from 95 leaves us with 15.
Bring next digit (8) of the dividend behind the 15 and repeat the process: 158 / 40

Step 3:
40 can be fit into 158 3 times, resulting in a remainder of 38.
Put 3 as the next digit of the answer. 
Result so far: 23.0
Subtracting 120 from 158 leaves us with 38.
Fetch the next digit (1) from the dividend, attach it to 38 and continue: 381 / 40

Going ahead to step 4:
The number 40 fits into 381 9 times, leaving a remainder of 21.
Write down 9 as next digit of the result. 
Result so far: 239.0
The remainder is 21 after subtracting 360 from 381.
Append the next digit (8) from the dividend to 21 and continue with: 218 / 40

Step 5:
If we divide 218 by 40, we get 5 and a remainder of 18.
Use 5 as the next digit of our solution. 
Result so far: 2395.0
The remainder is 18 after subtracting 200 from 218.
Append the next digit (4) from the dividend to 18 and continue with: 184 / 40

Advancing to step 6:
40 goes into 184 4 times with a remainder of 24.
Write down 4 as next digit of the result. 
Result so far: 23954.0
Subtract 160 from 184 to get 24.
Since there are no more digits in the dividend, we add a zero to the remainder making it 240, and continue the process.

Let's proceed to step 7:
If we divide 240 by 40, we get 6 and a remainder of 0.
Record the quotient 6 as the next digit in the result. 
Result so far: 23954.6
The remainder is 0 after subtracting 240 from 240.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

Step 8:
40 can be fit into 0 0 times, resulting in a remainder of 0.
The number 0 becomes the next digit in our result. 
Result so far: 23954.6
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.

Step 9:
The number 40 fits into 0 0 times, leaving a remainder of 0.
Use 0 as the next digit of our solution. 
Result so far: 23954.6
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.

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