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

Moving on 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
The remainder is 4 after subtracting 0 from 4.
Fetch the next digit (8) from the dividend, attach it to 4 and continue: 48 / 40

Moving on to step 2:
48 divided by 40 is 1 with a remainder of 8.
The next digit of our result is 1. 
Result so far: 1.0
If we take 40 away from 48, we end up with 8.
Append the next digit (7) from the dividend to 8 and continue with: 87 / 40

Moving on to step 3:
The number 40 fits into 87 2 times, leaving a remainder of 7.
Write down 2 as next digit of the result. 
Result so far: 12.0
The remainder is 7 after subtracting 80 from 87.
Fetch the next digit (4) from the dividend, attach it to 7 and continue: 74 / 40

Let's proceed to step 4:
74 divided by 40 is 1 with a remainder of 34.
Put 1 as the next digit of the answer. 
Result so far: 121.0
If we subtract 40 from 74, we get 34.
Fetch the next digit (0) from the dividend, attach it to 34 and continue: 340 / 40

Let's proceed to step 5:
If we divide 340 by 40, we get 8 and a remainder of 20.
The next digit of our result is 8. 
Result so far: 1218.0
Deduct 320 from 340 and we're left with 20.
Include the next digit (9) from the dividend after 20, then repeat: 209 / 40

Going ahead to step 6:
40 goes into 209 5 times with a remainder of 9.
Record the quotient 5 as the next digit in the result. 
Result so far: 12185.0
If we subtract 200 from 209, we get 9.
Since there are no more digits in the dividend, we add a zero to the remainder making it 90, and continue the process.

Step 7:
90 divided by 40 is 2 with a remainder of 10.
The next digit of our result is 2. 
Result so far: 12185.2
If we take 80 away from 90, we end up with 10.
Since there are no more digits in the dividend, we add a zero to the remainder making it 100, and continue the process.

Step 8:
If we divide 100 by 40, we get 2 and a remainder of 20.
Use 2 as the next digit of our solution. 
Result so far: 12185.22
Subtracting 80 from 100 leaves us 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.

Our division results in 12185.22 with a remaining 0.02.