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

On to step 1:
40 can be fit into 9 0 times, resulting in a remainder of 9.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
Subtracting 0 from 9 leaves us with 9.
Bring next digit (9) of the dividend behind the 9 and repeat the process: 99 / 40

Let's proceed to step 2:
40 goes into 99 2 times with a remainder of 19.
Put 2 as the next digit of the answer. 
Result so far: 2.0
Subtracting 80 from 99 leaves us with 19.
Grab the next digit (9) from the dividend, add it to 19, then carry on: 199 / 40

Advancing to step 3:
The number 40 fits into 199 4 times, leaving a remainder of 39.
Record the quotient 4 as the next digit in the result. 
Result so far: 24.0
Subtracting 160 from 199 leaves us with 39.
Fetch the next digit (1) from the dividend, attach it to 39 and continue: 391 / 40

Going ahead to step 4:
If we divide 391 by 40, we get 9 and a remainder of 31.
Record the quotient 9 as the next digit in the result. 
Result so far: 249.0
Subtracting 360 from 391 leaves us with 31.
Take the next digit (1) from the dividend and append it to 31, then repeat: 311 / 40

Step 5:
40 can be fit into 311 7 times, resulting in a remainder of 31.
Put 7 as the next digit of the answer. 
Result so far: 2497.0
Deduct 280 from 311 and we're left with 31.
Include the next digit (0) from the dividend after 31, then repeat: 310 / 40

Going ahead to step 6:
The number 40 fits into 310 7 times, leaving a remainder of 30.
The number 7 becomes the next digit in our result. 
Result so far: 24977.0
The remainder is 30 after subtracting 280 from 310.
Since there are no more digits in the dividend, we add a zero to the remainder making it 300, and continue the process.

Moving on to step 7:
The number 40 fits into 300 7 times, leaving a remainder of 20.
Write down 7 as next digit of the result. 
Result so far: 24977.7
If we take 280 away from 300, 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.

On to step 8:
40 goes into 200 5 times with a remainder of 0.
Record the quotient 5 as the next digit in the result. 
Result so far: 24977.75
Subtract 200 from 200 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.

Let's proceed to step 9:
When dividing 0 by 40, we get 0 with a remainder of 0.
Write down 0 as next digit of the result. 
Result so far: 24977.75
The remainder is 0 after subtracting 0 from 0.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

Let's proceed to step 10:
When dividing 0 by 40, we get 0 with a remainder of 0.
Write down 0 as next digit of the result. 
Result so far: 24977.75
If we take 0 away from 0, we end up 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.

In conclusion, the division gives 24977.75 with a balance of 0.0.