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

Moving on to step 1:
40 goes into 9 0 times with a remainder of 9.
Put 0 as the next digit of the answer. 
Result so far: 0.0
Subtract 0 from 9 to get 9.
Fetch the next digit (6) from the dividend, attach it to 9 and continue: 96 / 40

Moving on to step 2:
40 goes into 96 2 times with a remainder of 16.
Use 2 as the next digit of our solution. 
Result so far: 2.0
If we subtract 80 from 96, we get 16.
Include the next digit (9) from the dividend after 16, then repeat: 169 / 40

Step 3:
The number 40 fits into 169 4 times, leaving a remainder of 9.
The next digit of our result is 4. 
Result so far: 24.0
The remainder is 9 after subtracting 160 from 169.
Include the next digit (8) from the dividend after 9, then repeat: 98 / 40

On to step 4:
The number 40 fits into 98 2 times, leaving a remainder of 18.
Put 2 as the next digit of the answer. 
Result so far: 242.0
Deduct 80 from 98 and we're left with 18.
Bring next digit (8) of the dividend behind the 18 and repeat the process: 188 / 40

Step 5:
188 divided by 40 is 4 with a remainder of 28.
The number 4 becomes the next digit in our result. 
Result so far: 2424.0
Subtracting 160 from 188 leaves us with 28.
Bring next digit (9) of the dividend behind the 28 and repeat the process: 289 / 40

Moving on to step 6:
If we divide 289 by 40, we get 7 and a remainder of 9.
Put 7 as the next digit of the answer. 
Result so far: 24247.0
The remainder is 9 after subtracting 280 from 289.
Since there are no more digits in the dividend, we add a zero to the remainder making it 90, and continue the process.

Step 7:
The number 40 fits into 90 2 times, leaving a remainder of 10.
Put 2 as the next digit of the answer. 
Result so far: 24247.2
Subtract 80 from 90 to 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.

Moving on to step 8:
40 can be fit into 100 2 times, resulting in a remainder of 20.
The next digit of our result is 2. 
Result so far: 24247.22
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.

After the division, we end up with 24247.22 and a remainder of 0.02.