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

On to step 1:
40 goes into 7 0 times with a remainder of 7.
The next digit of our result is 0. 
Result so far: 0.0
Subtracting 0 from 7 leaves us with 7.
Bring next digit (9) of the dividend behind the 7 and repeat the process: 79 / 40

Let's proceed 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
Deduct 40 from 79 and we're left with 39.
Take the next digit (7) from the dividend and append it to 39, then repeat: 397 / 40

On to step 3:
40 can be fit into 397 9 times, resulting in a remainder of 37.
The number 9 becomes the next digit in our result. 
Result so far: 19.0
Subtracting 360 from 397 leaves us with 37.
Grab the next digit (7) from the dividend, add it to 37, then carry on: 377 / 40

Let's proceed to step 4:
377 divided by 40 is 9 with a remainder of 17.
Record the quotient 9 as the next digit in the result. 
Result so far: 199.0
Deduct 360 from 377 and we're left with 17.
Grab the next digit (8) from the dividend, add it to 17, then carry on: 178 / 40

Moving on to step 5:
40 can be fit into 178 4 times, resulting in a remainder of 18.
Use 4 as the next digit of our solution. 
Result so far: 1994.0
If we take 160 away from 178, we end up with 18.
Bring next digit (3) of the dividend behind the 18 and repeat the process: 183 / 40

Moving on to step 6:
40 goes into 183 4 times with a remainder of 23.
Write down 4 as next digit of the result. 
Result so far: 19944.0
If we subtract 160 from 183, we get 23.
Fetch the next digit (6) from the dividend, attach it to 23 and continue: 236 / 40

Let's proceed to step 7:
If we divide 236 by 40, we get 5 and a remainder of 36.
The number 5 becomes the next digit in our result. 
Result so far: 199445.0
If we subtract 200 from 236, we get 36.
Append the next digit (5) from the dividend to 36 and continue with: 365 / 40

Step 8:
365 divided by 40 is 9 with a remainder of 5.
The next digit of our result is 9. 
Result so far: 1994459.0
If we subtract 360 from 365, we get 5.
Since there are no more digits in the dividend, we add a zero to the remainder making it 50, and continue the process.

Let's proceed to step 9:
When dividing 50 by 40, we get 1 with a remainder of 10.
The next digit of our result is 1. 
Result so far: 1994459.1
Subtract 40 from 50 to get 10.
Since there are no more digits in the dividend, we add a zero to the remainder making it 100, and continue the process.

Moving on to step 10:
40 can be fit into 100 2 times, resulting in a remainder of 20.
Write down 2 as next digit of the result. 
Result so far: 1994459.12
The remainder is 20 after subtracting 80 from 100.
Since there are no more digits in the dividend, we add a zero to the remainder making it 200, and continue the process.

On to step 11:
200 divided by 40 is 5 with a remainder of 0.
Write down 5 as next digit of the result. 
Result so far: 1994459.125
If we subtract 200 from 200, 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.

Moving on to step 12:
0 divided by 40 is 0 with a remainder of 0.
The number 0 becomes the next digit in our result. 
Result so far: 1994459.125
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.

Step 13:
40 goes into 0 0 times with a remainder of 0.
Put 0 as the next digit of the answer. 
Result so far: 1994459.125
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.

The quotient of the division is 1994459.125, and the remainder is 0.0.