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

Step 1:
If we divide 5 by 40, we get 0 and a remainder of 5.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
Deduct 0 from 5 and we're left with 5.
Append the next digit (6) from the dividend to 5 and continue with: 56 / 40

On to step 2:
40 goes into 56 1 times with a remainder of 16.
The next digit of our result is 1. 
Result so far: 1.0
Subtract 40 from 56 to get 16.
Fetch the next digit (2) from the dividend, attach it to 16 and continue: 162 / 40

On to step 3:
162 divided by 40 is 4 with a remainder of 2.
Record the quotient 4 as the next digit in the result. 
Result so far: 14.0
If we subtract 160 from 162, we get 2.
Fetch the next digit (3) from the dividend, attach it to 2 and continue: 23 / 40

Moving on to step 4:
The number 40 fits into 23 0 times, leaving a remainder of 23.
Write down 0 as next digit of the result. 
Result so far: 140.0
Subtract 0 from 23 to get 23.
Append the next digit (0) from the dividend to 23 and continue with: 230 / 40

Step 5:
40 goes into 230 5 times with a remainder of 30.
The next digit of our result is 5. 
Result so far: 1405.0
The remainder is 30 after subtracting 200 from 230.
Append the next digit (9) from the dividend to 30 and continue with: 309 / 40

Going ahead to step 6:
If we divide 309 by 40, we get 7 and a remainder of 29.
Write down 7 as next digit of the result. 
Result so far: 14057.0
The remainder is 29 after subtracting 280 from 309.
Since there are no more digits in the dividend, we add a zero to the remainder making it 290, and continue the process.

Moving on to step 7:
290 divided by 40 is 7 with a remainder of 10.
Put 7 as the next digit of the answer. 
Result so far: 14057.7
Subtract 280 from 290 to 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:
The number 40 fits into 100 2 times, leaving a remainder of 20.
The next digit of our result is 2. 
Result so far: 14057.72
If we subtract 80 from 100, we 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:
40 goes into 200 5 times with a remainder of 0.
Write down 5 as next digit of the result. 
Result so far: 14057.725
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.

Going ahead to step 10:
40 can be fit into 0 0 times, resulting in a remainder of 0.
Record the quotient 0 as the next digit in the result. 
Result so far: 14057.725
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.

Advancing to step 11:
If we divide 0 by 40, we get 0 and a remainder of 0.
Write down 0 as next digit of the result. 
Result so far: 14057.725
Subtracting 0 from 0 leaves us 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.

In conclusion, the division gives 14057.725 with a balance of 0.0.