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

Let's proceed to step 1:
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: 0.0
If we subtract 0 from 7, we get 7.
Take the next digit (9) from the dividend and append it to 7, then repeat: 79 / 40

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

Advancing to step 3:
The number 40 fits into 390 9 times, leaving a remainder of 30.
Put 9 as the next digit of the answer. 
Result so far: 19.0
The remainder is 30 after subtracting 360 from 390.
Fetch the next digit (2) from the dividend, attach it to 30 and continue: 302 / 40

Let's proceed to step 4:
When dividing 302 by 40, we get 7 with a remainder of 22.
The number 7 becomes the next digit in our result. 
Result so far: 197.0
Subtract 280 from 302 to get 22.
Append the next digit (8) from the dividend to 22 and continue with: 228 / 40

Going ahead to step 5:
When dividing 228 by 40, we get 5 with a remainder of 28.
Use 5 as the next digit of our solution. 
Result so far: 1975.0
If we take 200 away from 228, we end up with 28.
Take the next digit (2) from the dividend and append it to 28, then repeat: 282 / 40

Advancing to step 6:
40 can be fit into 282 7 times, resulting in a remainder of 2.
Write down 7 as next digit of the result. 
Result so far: 19757.0
Deduct 280 from 282 and we're left with 2.
Since there are no more digits in the dividend, we add a zero to the remainder making it 20, and continue the process.

Going ahead to step 7:
If we divide 20 by 40, we get 0 and a remainder of 20.
Put 0 as the next digit of the answer. 
Result so far: 19757.0
If we subtract 0 from 20, we get 20.
Since there are no more digits in the dividend, we add a zero to the remainder making it 200, and continue the process.

Moving on to step 8:
If we divide 200 by 40, we get 5 and a remainder of 0.
Write down 5 as next digit of the result. 
Result so far: 19757.05
Subtract 200 from 200 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 9:
The number 40 fits into 0 0 times, leaving a remainder of 0.
The number 0 becomes the next digit in our result. 
Result so far: 19757.05
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.

Going ahead to step 10:
40 can be fit into 0 0 times, resulting in a remainder of 0.
Use 0 as the next digit of our solution. 
Result so far: 19757.05
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.

Our division results in 19757.05 with a remaining 0.0.