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

Let's proceed to step 1:
40 goes into 4 0 times with a remainder of 4.
Write down 0 as next digit of the result. 
Result so far: 0.0
Deduct 0 from 4 and we're left with 4.
Bring next digit (0) of the dividend behind the 4 and repeat the process: 40 / 40

Advancing to step 2:
If we divide 40 by 40, we get 1 and a remainder of 0.
The next digit of our result is 1. 
Result so far: 1.0
If we take 40 away from 40, we end up with 0.
Bring next digit (1) of the dividend behind the 0 and repeat the process: 1 / 40

Moving on to step 3:
40 can be fit into 1 0 times, resulting in a remainder of 1.
The next digit of our result is 0. 
Result so far: 10.0
Subtract 0 from 1 to get 1.
Include the next digit (2) from the dividend after 1, then repeat: 12 / 40

Moving on to step 4:
When dividing 12 by 40, we get 0 with a remainder of 12.
Write down 0 as next digit of the result. 
Result so far: 100.0
If we take 0 away from 12, we end up with 12.
Take the next digit (4) from the dividend and append it to 12, then repeat: 124 / 40

Advancing to step 5:
If we divide 124 by 40, we get 3 and a remainder of 4.
The next digit of our result is 3. 
Result so far: 1003.0
If we subtract 120 from 124, we get 4.
Since there are no more digits in the dividend, we add a zero to the remainder making it 40, and continue the process.

Advancing to step 6:
40 goes into 40 1 times with a remainder of 0.
Write down 1 as next digit of the result. 
Result so far: 1003.1
Deduct 40 from 40 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.

On to step 7:
40 can be fit into 0 0 times, resulting in a remainder of 0.
The next digit of our result is 0. 
Result so far: 1003.1
Subtracting 0 from 0 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.

Let's proceed to step 8:
40 can be fit into 0 0 times, resulting in a remainder of 0.
The number 0 becomes the next digit in our result. 
Result so far: 1003.1
Subtracting 0 from 0 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.

The final result is 1003.1 with a remainder of 0.0.