560746 divided by 40 
The aim is to understand the frequency of 40 in 560746.

Going ahead to step 1:
40 goes into 5 0 times with a remainder of 5.
Write down 0 as next digit of the result. 
Result so far: 0.0
If we take 0 away from 5, we end up with 5.
Take the next digit (6) from the dividend and append it to 5, then repeat: 56 / 40

Let's proceed to step 2:
56 divided by 40 is 1 with a remainder of 16.
The next digit of our result is 1. 
Result so far: 1.0
If we subtract 40 from 56, we get 16.
Append the next digit (0) from the dividend to 16 and continue with: 160 / 40

On to step 3:
If we divide 160 by 40, we get 4 and a remainder of 0.
Use 4 as the next digit of our solution. 
Result so far: 14.0
If we subtract 160 from 160, we get 0.
Take the next digit (7) from the dividend and append it to 0, then repeat: 7 / 40

Advancing to step 4:
40 goes into 7 0 times with a remainder of 7.
Record the quotient 0 as the next digit in the result. 
Result so far: 140.0
Subtract 0 from 7 to get 7.
Bring next digit (4) of the dividend behind the 7 and repeat the process: 74 / 40

Moving on to step 5:
When dividing 74 by 40, we get 1 with a remainder of 34.
Use 1 as the next digit of our solution. 
Result so far: 1401.0
If we subtract 40 from 74, we get 34.
Fetch the next digit (6) from the dividend, attach it to 34 and continue: 346 / 40

Step 6:
40 can be fit into 346 8 times, resulting in a remainder of 26.
The next digit of our result is 8. 
Result so far: 14018.0
Deduct 320 from 346 and we're left with 26.
Since there are no more digits in the dividend, we add a zero to the remainder making it 260, and continue the process.

Advancing to step 7:
260 divided by 40 is 6 with a remainder of 20.
Write down 6 as next digit of the result. 
Result so far: 14018.6
If we subtract 240 from 260, 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 8:
200 divided by 40 is 5 with a remainder of 0.
Put 5 as the next digit of the answer. 
Result so far: 14018.65
Deduct 200 from 200 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 9:
The number 40 fits into 0 0 times, leaving a remainder of 0.
Write down 0 as next digit of the result. 
Result so far: 14018.65
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.

On to step 10:
40 can be fit into 0 0 times, resulting in a remainder of 0.
The next digit of our result is 0. 
Result so far: 14018.65
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.

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