842672 ÷ 40 
The aim is to understand the frequency of 40 in 842672.

Advancing to step 1:
8 divided by 40 is 0 with a remainder of 8.
Write down 0 as next digit of the result. 
Result so far: 0.0
Subtracting 0 from 8 leaves us with 8.
Include the next digit (4) from the dividend after 8, then repeat: 84 / 40

Advancing to step 2:
40 can be fit into 84 2 times, resulting in a remainder of 4.
The next digit of our result is 2. 
Result so far: 2.0
Subtracting 80 from 84 leaves us with 4.
Take the next digit (2) from the dividend and append it to 4, then repeat: 42 / 40

Going ahead to step 3:
40 goes into 42 1 times with a remainder of 2.
Use 1 as the next digit of our solution. 
Result so far: 21.0
Subtracting 40 from 42 leaves us with 2.
Grab the next digit (6) from the dividend, add it to 2, then carry on: 26 / 40

Advancing to step 4:
40 goes into 26 0 times with a remainder of 26.
The number 0 becomes the next digit in our result. 
Result so far: 210.0
If we subtract 0 from 26, we get 26.
Bring next digit (7) of the dividend behind the 26 and repeat the process: 267 / 40

Moving on to step 5:
40 goes into 267 6 times with a remainder of 27.
The next digit of our result is 6. 
Result so far: 2106.0
If we take 240 away from 267, we end up with 27.
Include the next digit (2) from the dividend after 27, then repeat: 272 / 40

Let's proceed to step 6:
If we divide 272 by 40, we get 6 and a remainder of 32.
The next digit of our result is 6. 
Result so far: 21066.0
If we take 240 away from 272, we end up with 32.
Since there are no more digits in the dividend, we add a zero to the remainder making it 320, and continue the process.

Going ahead to step 7:
The number 40 fits into 320 8 times, leaving a remainder of 0.
Record the quotient 8 as the next digit in the result. 
Result so far: 21066.8
Deduct 320 from 320 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.

Step 8:
0 divided by 40 is 0 with a remainder of 0.
Record the quotient 0 as the next digit in the result. 
Result so far: 21066.8
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.

Step 9:
If we divide 0 by 40, we get 0 and a remainder of 0.
The number 0 becomes the next digit in our result. 
Result so far: 21066.8
Subtract 0 from 0 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.

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