Let's divide 673740 by 40
The aim is to understand the frequency of 40 in 673740.

Advancing to step 1:
6 divided by 40 is 0 with a remainder of 6.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
If we take 0 away from 6, we end up with 6.
Include the next digit (7) from the dividend after 6, then repeat: 67 / 40

Let's proceed to step 2:
40 goes into 67 1 times with a remainder of 27.
Use 1 as the next digit of our solution. 
Result so far: 1.0
Subtracting 40 from 67 leaves us with 27.
Append the next digit (3) from the dividend to 27 and continue with: 273 / 40

Moving on to step 3:
273 divided by 40 is 6 with a remainder of 33.
Put 6 as the next digit of the answer. 
Result so far: 16.0
If we take 240 away from 273, we end up with 33.
Append the next digit (7) from the dividend to 33 and continue with: 337 / 40

Let's proceed to step 4:
337 divided by 40 is 8 with a remainder of 17.
Write down 8 as next digit of the result. 
Result so far: 168.0
Subtracting 320 from 337 leaves us with 17.
Fetch the next digit (4) from the dividend, attach it to 17 and continue: 174 / 40

Going ahead to step 5:
The number 40 fits into 174 4 times, leaving a remainder of 14.
The next digit of our result is 4. 
Result so far: 1684.0
Subtract 160 from 174 to get 14.
Bring next digit (0) of the dividend behind the 14 and repeat the process: 140 / 40

Let's proceed to step 6:
When dividing 140 by 40, we get 3 with a remainder of 20.
Use 3 as the next digit of our solution. 
Result so far: 16843.0
If we take 120 away from 140, 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.

Let's proceed to step 7:
The number 40 fits into 200 5 times, leaving a remainder of 0.
Write down 5 as next digit of the result. 
Result so far: 16843.5
Subtracting 200 from 200 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.

Moving on to step 8:
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: 16843.5
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.

Advancing to step 9:
When dividing 0 by 40, we get 0 with a remainder of 0.
Use 0 as the next digit of our solution. 
Result so far: 16843.5
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.

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