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

Let's proceed to step 1:
The number 40 fits into 6 0 times, leaving a remainder of 6.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
If we take 0 away from 6, we end up with 6.
Take the next digit (3) from the dividend and append it to 6, then repeat: 63 / 40

Moving on to step 2:
When dividing 63 by 40, we get 1 with a remainder of 23.
Record the quotient 1 as the next digit in the result. 
Result so far: 1.0
If we take 40 away from 63, we end up with 23.
Take the next digit (8) from the dividend and append it to 23, then repeat: 238 / 40

Moving on to step 3:
40 can be fit into 238 5 times, resulting in a remainder of 38.
Record the quotient 5 as the next digit in the result. 
Result so far: 15.0
If we take 200 away from 238, we end up with 38.
Fetch the next digit (7) from the dividend, attach it to 38 and continue: 387 / 40

Advancing to step 4:
40 goes into 387 9 times with a remainder of 27.
The next digit of our result is 9. 
Result so far: 159.0
If we subtract 360 from 387, we get 27.
Bring next digit (2) of the dividend behind the 27 and repeat the process: 272 / 40

Let's proceed to step 5:
40 goes into 272 6 times with a remainder of 32.
Record the quotient 6 as the next digit in the result. 
Result so far: 1596.0
Subtracting 240 from 272 leaves us with 32.
Fetch the next digit (1) from the dividend, attach it to 32 and continue: 321 / 40

Going ahead to step 6:
The number 40 fits into 321 8 times, leaving a remainder of 1.
Write down 8 as next digit of the result. 
Result so far: 15968.0
If we subtract 320 from 321, we get 1.
Since there are no more digits in the dividend, we add a zero to the remainder making it 10, and continue the process.

Advancing to step 7:
When dividing 10 by 40, we get 0 with a remainder of 10.
Use 0 as the next digit of our solution. 
Result so far: 15968.0
If we take 0 away from 10, 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.

Moving on to step 8:
100 divided by 40 is 2 with a remainder of 20.
Put 2 as the next digit of the answer. 
Result so far: 15968.02
Subtract 80 from 100 to 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.

Going ahead to step 9:
200 divided by 40 is 5 with a remainder of 0.
The number 5 becomes the next digit in our result. 
Result so far: 15968.025
If we subtract 200 from 200, 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.

Going ahead to step 10:
40 goes into 0 0 times with a remainder of 0.
Record the quotient 0 as the next digit in the result. 
Result so far: 15968.025
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.

Let's proceed to step 11:
40 can be fit into 0 0 times, resulting in a remainder of 0.
Write down 0 as next digit of the result. 
Result so far: 15968.025
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 quotient of the division is 15968.025, and the remainder is 0.0.