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

Step 1:
The number 40 fits into 4 0 times, leaving a remainder of 4.
Put 0 as the next digit of the answer. 
Result so far: 0.0
If we take 0 away from 4, we end up with 4.
Include the next digit (2) from the dividend after 4, then repeat: 42 / 40

On to step 2:
When dividing 42 by 40, we get 1 with a remainder of 2.
The next digit of our result is 1. 
Result so far: 1.0
Subtract 40 from 42 to get 2.
Include the next digit (1) from the dividend after 2, then repeat: 21 / 40

Let's proceed to step 3:
If we divide 21 by 40, we get 0 and a remainder of 21.
Use 0 as the next digit of our solution. 
Result so far: 10.0
If we take 0 away from 21, we end up with 21.
Append the next digit (1) from the dividend to 21 and continue with: 211 / 40

Moving on to step 4:
If we divide 211 by 40, we get 5 and a remainder of 11.
The next digit of our result is 5. 
Result so far: 105.0
Subtract 200 from 211 to get 11.
Grab the next digit (1) from the dividend, add it to 11, then carry on: 111 / 40

Moving on to step 5:
111 divided by 40 is 2 with a remainder of 31.
Put 2 as the next digit of the answer. 
Result so far: 1052.0
Subtracting 80 from 111 leaves us with 31.
Take the next digit (8) from the dividend and append it to 31, then repeat: 318 / 40

Going ahead to step 6:
40 can be fit into 318 7 times, resulting in a remainder of 38.
Write down 7 as next digit of the result. 
Result so far: 10527.0
If we subtract 280 from 318, we get 38.
Since there are no more digits in the dividend, we add a zero to the remainder making it 380, and continue the process.

Moving on to step 7:
40 goes into 380 9 times with a remainder of 20.
Write down 9 as next digit of the result. 
Result so far: 10527.9
If we subtract 360 from 380, 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.

Moving on to step 8:
200 divided by 40 is 5 with a remainder of 0.
Write down 5 as next digit of the result. 
Result so far: 10527.95
Subtracting 200 from 200 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.

Moving on to step 9:
When dividing 0 by 40, we get 0 with a remainder of 0.
Record the quotient 0 as the next digit in the result. 
Result so far: 10527.95
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.

Let's proceed to step 10:
When dividing 0 by 40, we get 0 with a remainder of 0.
Use 0 as the next digit of our solution. 
Result so far: 10527.95
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.

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