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

Advancing to step 1:
When dividing 8 by 40, we get 0 with a remainder of 8.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
If we take 0 away from 8, we end up with 8.
Take the next digit (0) from the dividend and append it to 8, then repeat: 80 / 40

Moving on to step 2:
40 goes into 80 2 times with a remainder of 0.
The number 2 becomes the next digit in our result. 
Result so far: 2.0
Subtracting 80 from 80 leaves us with 0.
Take the next digit (7) from the dividend and append it to 0, then repeat: 7 / 40

Advancing to step 3:
When dividing 7 by 40, we get 0 with a remainder of 7.
Record the quotient 0 as the next digit in the result. 
Result so far: 20.0
Subtract 0 from 7 to get 7.
Include the next digit (8) from the dividend after 7, then repeat: 78 / 40

Advancing to step 4:
The number 40 fits into 78 1 times, leaving a remainder of 38.
Record the quotient 1 as the next digit in the result. 
Result so far: 201.0
The remainder is 38 after subtracting 40 from 78.
Take the next digit (2) from the dividend and append it to 38, then repeat: 382 / 40

Let's proceed to step 5:
40 can be fit into 382 9 times, resulting in a remainder of 22.
The next digit of our result is 9. 
Result so far: 2019.0
Subtract 360 from 382 to get 22.
Bring next digit (8) of the dividend behind the 22 and repeat the process: 228 / 40

On to step 6:
If we divide 228 by 40, we get 5 and a remainder of 28.
Write down 5 as next digit of the result. 
Result so far: 20195.0
The remainder is 28 after subtracting 200 from 228.
Since there are no more digits in the dividend, we add a zero to the remainder making it 280, and continue the process.

Moving on to step 7:
40 goes into 280 7 times with a remainder of 0.
Put 7 as the next digit of the answer. 
Result so far: 20195.7
If we subtract 280 from 280, 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.

Step 8:
The number 40 fits into 0 0 times, leaving a remainder of 0.
Use 0 as the next digit of our solution. 
Result so far: 20195.7
Subtracting 0 from 0 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 9:
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: 20195.7
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.

Our division results in 20195.7 with a remaining 0.0.