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

Advancing to step 1:
8 divided by 40 is 0 with a remainder of 8.
Use 0 as the next digit of our solution. 
Result so far: 0.0
Subtract 0 from 8 to get 8.
Include the next digit (0) from the dividend after 8, then repeat: 80 / 40

Advancing to step 2:
If we divide 80 by 40, we get 2 and a remainder of 0.
Record the quotient 2 as the next digit in the result. 
Result so far: 2.0
If we subtract 80 from 80, we get 0.
Bring next digit (7) of the dividend behind the 0 and repeat the process: 7 / 40

Advancing to step 3:
40 can be fit into 7 0 times, resulting in a remainder of 7.
Write down 0 as next digit of the result. 
Result so far: 20.0
Subtracting 0 from 7 leaves us with 7.
Grab the next digit (0) from the dividend, add it to 7, then carry on: 70 / 40

Advancing to step 4:
70 divided by 40 is 1 with a remainder of 30.
Put 1 as the next digit of the answer. 
Result so far: 201.0
The remainder is 30 after subtracting 40 from 70.
Fetch the next digit (1) from the dividend, attach it to 30 and continue: 301 / 40

Moving on to step 5:
40 goes into 301 7 times with a remainder of 21.
The number 7 becomes the next digit in our result. 
Result so far: 2017.0
Subtracting 280 from 301 leaves us with 21.
Append the next digit (6) from the dividend to 21 and continue with: 216 / 40

Moving on to step 6:
If we divide 216 by 40, we get 5 and a remainder of 16.
Use 5 as the next digit of our solution. 
Result so far: 20175.0
Subtract 200 from 216 to get 16.
Since there are no more digits in the dividend, we add a zero to the remainder making it 160, and continue the process.

On to step 7:
40 goes into 160 4 times with a remainder of 0.
Write down 4 as next digit of the result. 
Result so far: 20175.4
Subtract 160 from 160 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.

Step 8:
The number 40 fits into 0 0 times, leaving a remainder of 0.
Record the quotient 0 as the next digit in the result. 
Result so far: 20175.4
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.

Advancing to step 9:
If we divide 0 by 40, we get 0 and a remainder of 0.
The number 0 becomes the next digit in our result. 
Result so far: 20175.4
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.

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