We look at the division of 215857 by 40 
The aim is to understand the frequency of 40 in 215857.

Going ahead to step 1:
40 goes into 2 0 times with a remainder of 2.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
If we subtract 0 from 2, we get 2.
Bring next digit (1) of the dividend behind the 2 and repeat the process: 21 / 40

Advancing to step 2:
When dividing 21 by 40, we get 0 with a remainder of 21.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
If we take 0 away from 21, we end up with 21.
Fetch the next digit (5) from the dividend, attach it to 21 and continue: 215 / 40

Let's proceed to step 3:
40 can be fit into 215 5 times, resulting in a remainder of 15.
Put 5 as the next digit of the answer. 
Result so far: 5.0
Subtracting 200 from 215 leaves us with 15.
Include the next digit (8) from the dividend after 15, then repeat: 158 / 40

Going ahead to step 4:
158 divided by 40 is 3 with a remainder of 38.
Put 3 as the next digit of the answer. 
Result so far: 53.0
Subtract 120 from 158 to get 38.
Bring next digit (5) of the dividend behind the 38 and repeat the process: 385 / 40

Let's proceed to step 5:
If we divide 385 by 40, we get 9 and a remainder of 25.
The number 9 becomes the next digit in our result. 
Result so far: 539.0
The remainder is 25 after subtracting 360 from 385.
Append the next digit (7) from the dividend to 25 and continue with: 257 / 40

On to step 6:
If we divide 257 by 40, we get 6 and a remainder of 17.
Put 6 as the next digit of the answer. 
Result so far: 5396.0
If we subtract 240 from 257, we get 17.
Since there are no more digits in the dividend, we add a zero to the remainder making it 170, and continue the process.

Advancing to step 7:
The number 40 fits into 170 4 times, leaving a remainder of 10.
Put 4 as the next digit of the answer. 
Result so far: 5396.4
If we subtract 160 from 170, we get 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:
40 goes into 100 2 times with a remainder of 20.
The next digit of our result is 2. 
Result so far: 5396.42
If we take 80 away from 100, 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.

Going ahead to step 9:
The number 40 fits into 200 5 times, leaving a remainder of 0.
Put 5 as the next digit of the answer. 
Result so far: 5396.425
If we take 200 away from 200, we end up 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 10:
When dividing 0 by 40, we get 0 with a remainder of 0.
Write down 0 as next digit of the result. 
Result so far: 5396.425
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.

On to step 11:
The number 40 fits into 0 0 times, leaving a remainder of 0.
The next digit of our result is 0. 
Result so far: 5396.425
If we take 0 away from 0, we end up 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.

After the division, we end up with 5396.425 and a remainder of 0.0.