564498 ÷ 40 
The aim is to understand the frequency of 40 in 564498.

Advancing to step 1:
5 divided by 40 is 0 with a remainder of 5.
Put 0 as the next digit of the answer. 
Result so far: 0.0
The remainder is 5 after subtracting 0 from 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.
Use 1 as the next digit of our solution. 
Result so far: 1.0
Subtract 40 from 56 to get 16.
Grab the next digit (4) from the dividend, add it to 16, then carry on: 164 / 40

Going ahead to step 3:
If we divide 164 by 40, we get 4 and a remainder of 4.
Put 4 as the next digit of the answer. 
Result so far: 14.0
If we subtract 160 from 164, we get 4.
Fetch the next digit (4) from the dividend, attach it to 4 and continue: 44 / 40

Going ahead to step 4:
40 can be fit into 44 1 times, resulting in a remainder of 4.
Put 1 as the next digit of the answer. 
Result so far: 141.0
Subtracting 40 from 44 leaves us with 4.
Fetch the next digit (9) from the dividend, attach it to 4 and continue: 49 / 40

Let's proceed to step 5:
When dividing 49 by 40, we get 1 with a remainder of 9.
Put 1 as the next digit of the answer. 
Result so far: 1411.0
The remainder is 9 after subtracting 40 from 49.
Take the next digit (8) from the dividend and append it to 9, then repeat: 98 / 40

Moving on to step 6:
98 divided by 40 is 2 with a remainder of 18.
The next digit of our result is 2. 
Result so far: 14112.0
Subtract 80 from 98 to get 18.
Since there are no more digits in the dividend, we add a zero to the remainder making it 180, and continue the process.

Let's proceed to step 7:
When dividing 180 by 40, we get 4 with a remainder of 20.
Put 4 as the next digit of the answer. 
Result so far: 14112.4
The remainder is 20 after subtracting 160 from 180.
Since there are no more digits in the dividend, we add a zero to the remainder making it 200, and continue the process.

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: 14112.45
The remainder is 0 after subtracting 200 from 200.
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:
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: 14112.45
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.

Let's proceed to step 10:
If we divide 0 by 40, we get 0 and a remainder of 0.
Put 0 as the next digit of the answer. 
Result so far: 14112.45
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.

The quotient of the division is 14112.45, and the remainder is 0.0.