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

Going ahead to step 1:
When dividing 6 by 40, we get 0 with a remainder of 6.
Write down 0 as next digit of the result. 
Result so far: 0.0
Subtracting 0 from 6 leaves us with 6.
Fetch the next digit (7) from the dividend, attach it to 6 and continue: 67 / 40

Going ahead to step 2:
If we divide 67 by 40, we get 1 and a remainder of 27.
The next digit of our result is 1. 
Result so far: 1.0
The remainder is 27 after subtracting 40 from 67.
Grab the next digit (0) from the dividend, add it to 27, then carry on: 270 / 40

Advancing to step 3:
40 goes into 270 6 times with a remainder of 30.
The next digit of our result is 6. 
Result so far: 16.0
Subtract 240 from 270 to get 30.
Fetch the next digit (9) from the dividend, attach it to 30 and continue: 309 / 40

On to step 4:
The number 40 fits into 309 7 times, leaving a remainder of 29.
Use 7 as the next digit of our solution. 
Result so far: 167.0
The remainder is 29 after subtracting 280 from 309.
Fetch the next digit (1) from the dividend, attach it to 29 and continue: 291 / 40

Moving on to step 5:
291 divided by 40 is 7 with a remainder of 11.
Record the quotient 7 as the next digit in the result. 
Result so far: 1677.0
Subtracting 280 from 291 leaves us with 11.
Include the next digit (5) from the dividend after 11, then repeat: 115 / 40

On to step 6:
40 can be fit into 115 2 times, resulting in a remainder of 35.
The next digit of our result is 2. 
Result so far: 16772.0
Subtract 80 from 115 to get 35.
Since there are no more digits in the dividend, we add a zero to the remainder making it 350, and continue the process.

Going ahead to step 7:
If we divide 350 by 40, we get 8 and a remainder of 30.
Put 8 as the next digit of the answer. 
Result so far: 16772.8
Subtract 320 from 350 to get 30.
Since there are no more digits in the dividend, we add a zero to the remainder making it 300, and continue the process.

On to step 8:
The number 40 fits into 300 7 times, leaving a remainder of 20.
The number 7 becomes the next digit in our result. 
Result so far: 16772.87
The remainder is 20 after subtracting 280 from 300.
Since there are no more digits in the dividend, we add a zero to the remainder making it 200, and continue the process.

Advancing to step 9:
When dividing 200 by 40, we get 5 with a remainder of 0.
The number 5 becomes the next digit in our result. 
Result so far: 16772.875
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.

On to step 10:
When dividing 0 by 40, we get 0 with a remainder of 0.
The next digit of our result is 0. 
Result so far: 16772.875
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:
When dividing 0 by 40, we get 0 with a remainder of 0.
Record the quotient 0 as the next digit in the result. 
Result so far: 16772.875
Subtract 0 from 0 to 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.

Our division results in 16772.875 with a remaining 0.0.