We divide 981249 by 40
The aim is to understand the frequency of 40 in 981249.

Step 1:
9 divided by 40 is 0 with a remainder of 9.
Use 0 as the next digit of our solution. 
Result so far: 0.0
Subtracting 0 from 9 leaves us with 9.
Fetch the next digit (8) from the dividend, attach it to 9 and continue: 98 / 40

Let's proceed to step 2:
40 can be fit into 98 2 times, resulting in a remainder of 18.
Write down 2 as next digit of the result. 
Result so far: 2.0
If we subtract 80 from 98, we get 18.
Fetch the next digit (1) from the dividend, attach it to 18 and continue: 181 / 40

On to step 3:
40 goes into 181 4 times with a remainder of 21.
Write down 4 as next digit of the result. 
Result so far: 24.0
Deduct 160 from 181 and we're left with 21.
Grab the next digit (2) from the dividend, add it to 21, then carry on: 212 / 40

On to step 4:
When dividing 212 by 40, we get 5 with a remainder of 12.
Record the quotient 5 as the next digit in the result. 
Result so far: 245.0
The remainder is 12 after subtracting 200 from 212.
Take the next digit (4) from the dividend and append it to 12, then repeat: 124 / 40

Moving on to step 5:
40 goes into 124 3 times with a remainder of 4.
The number 3 becomes the next digit in our result. 
Result so far: 2453.0
Subtracting 120 from 124 leaves us with 4.
Fetch the next digit (9) from the dividend, attach it to 4 and continue: 49 / 40

Moving on to step 6:
If we divide 49 by 40, we get 1 and a remainder of 9.
The next digit of our result is 1. 
Result so far: 24531.0
Subtracting 40 from 49 leaves us with 9.
Since there are no more digits in the dividend, we add a zero to the remainder making it 90, and continue the process.

Moving on to step 7:
40 goes into 90 2 times with a remainder of 10.
Write down 2 as next digit of the result. 
Result so far: 24531.2
Subtracting 80 from 90 leaves us with 10.
Since there are no more digits in the dividend, we add a zero to the remainder making it 100, and continue the process.

On to step 8:
If we divide 100 by 40, we get 2 and a remainder of 20.
Record the quotient 2 as the next digit in the result. 
Result so far: 24531.22
If we take 80 away from 100, we end up with 20.
Since there are no more digits in the dividend, we add a zero to the remainder making it 200, and continue the process.

The final outcome is 24531.22, with a leftover of 0.02.