We're dividing 564208 by 40 
The aim is to understand the frequency of 40 in 564208.

Let's proceed to step 1:
The number 40 fits into 5 0 times, leaving a remainder of 5.
Put 0 as the next digit of the answer. 
Result so far: 0.0
Deduct 0 from 5 and we're left with 5.
Include the next digit (6) from the dividend after 5, then repeat: 56 / 40

Moving on to step 2:
The number 40 fits into 56 1 times, leaving a remainder of 16.
Use 1 as the next digit of our solution. 
Result so far: 1.0
If we subtract 40 from 56, we get 16.
Include the next digit (4) from the dividend after 16, then repeat: 164 / 40

On to step 3:
164 divided by 40 is 4 with a remainder of 4.
The number 4 becomes the next digit in our result. 
Result so far: 14.0
Deduct 160 from 164 and we're left with 4.
Include the next digit (2) from the dividend after 4, then repeat: 42 / 40

On to step 4:
42 divided by 40 is 1 with a remainder of 2.
Write down 1 as next digit of the result. 
Result so far: 141.0
Subtracting 40 from 42 leaves us with 2.
Append the next digit (0) from the dividend to 2 and continue with: 20 / 40

Going ahead to step 5:
40 can be fit into 20 0 times, resulting in a remainder of 20.
Write down 0 as next digit of the result. 
Result so far: 1410.0
The remainder is 20 after subtracting 0 from 20.
Bring next digit (8) of the dividend behind the 20 and repeat the process: 208 / 40

Moving on to step 6:
208 divided by 40 is 5 with a remainder of 8.
Use 5 as the next digit of our solution. 
Result so far: 14105.0
Subtract 200 from 208 to get 8.
Since there are no more digits in the dividend, we add a zero to the remainder making it 80, and continue the process.

Going ahead to step 7:
40 goes into 80 2 times with a remainder of 0.
The number 2 becomes the next digit in our result. 
Result so far: 14105.2
The remainder is 0 after subtracting 80 from 80.
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 8:
0 divided by 40 is 0 with a remainder of 0.
The next digit of our result is 0. 
Result so far: 14105.2
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.

Going ahead to step 9:
When dividing 0 by 40, we get 0 with a remainder of 0.
Put 0 as the next digit of the answer. 
Result so far: 14105.2
The remainder is 0 after subtracting 0 from 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 14105.2 and a remainder of 0.0.