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

Moving on to step 1:
When dividing 3 by 40, we get 0 with a remainder of 3.
The next digit of our result is 0. 
Result so far: 0.0
Subtracting 0 from 3 leaves us with 3.
Include the next digit (8) from the dividend after 3, then repeat: 38 / 40

Step 2:
40 can be fit into 38 0 times, resulting in a remainder of 38.
Write down 0 as next digit of the result. 
Result so far: 0.0
Subtract 0 from 38 to get 38.
Grab the next digit (1) from the dividend, add it to 38, then carry on: 381 / 40

Let's proceed to step 3:
The number 40 fits into 381 9 times, leaving a remainder of 21.
Record the quotient 9 as the next digit in the result. 
Result so far: 9.0
Subtract 360 from 381 to get 21.
Fetch the next digit (1) from the dividend, attach it to 21 and continue: 211 / 40

Moving on to step 4:
40 can be fit into 211 5 times, resulting in a remainder of 11.
Put 5 as the next digit of the answer. 
Result so far: 95.0
If we take 200 away from 211, we end up with 11.
Append the next digit (8) from the dividend to 11 and continue with: 118 / 40

Moving on to step 5:
When dividing 118 by 40, we get 2 with a remainder of 38.
Write down 2 as next digit of the result. 
Result so far: 952.0
If we take 80 away from 118, we end up with 38.
Include the next digit (7) from the dividend after 38, then repeat: 387 / 40

On to step 6:
When dividing 387 by 40, we get 9 with a remainder of 27.
The number 9 becomes the next digit in our result. 
Result so far: 9529.0
Subtract 360 from 387 to get 27.
Since there are no more digits in the dividend, we add a zero to the remainder making it 270, and continue the process.

Step 7:
270 divided by 40 is 6 with a remainder of 30.
Write down 6 as next digit of the result. 
Result so far: 9529.6
The remainder is 30 after subtracting 240 from 270.
Since there are no more digits in the dividend, we add a zero to the remainder making it 300, and continue the process.

Step 8:
40 can be fit into 300 7 times, resulting in a remainder of 20.
Use 7 as the next digit of our solution. 
Result so far: 9529.67
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.

Step 9:
If we divide 200 by 40, we get 5 and a remainder of 0.
The next digit of our result is 5. 
Result so far: 9529.675
Deduct 200 from 200 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.

Let's proceed to step 10:
The number 40 fits into 0 0 times, leaving a remainder of 0.
Record the quotient 0 as the next digit in the result. 
Result so far: 9529.675
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.

Going ahead to step 11:
If we divide 0 by 40, we get 0 and a remainder of 0.
Put 0 as the next digit of the answer. 
Result so far: 9529.675
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.

Our division results in 9529.675 with a remaining 0.0.