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

Let's proceed to step 1:
40 goes into 7 0 times with a remainder of 7.
Write down 0 as next digit of the result. 
Result so far: 0.0
If we take 0 away from 7, we end up with 7.
Fetch the next digit (8) from the dividend, attach it to 7 and continue: 78 / 40

Advancing to step 2:
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: 1.0
Subtract 40 from 78 to get 38.
Append the next digit (0) from the dividend to 38 and continue with: 380 / 40

On to step 3:
40 can be fit into 380 9 times, resulting in a remainder of 20.
Use 9 as the next digit of our solution. 
Result so far: 19.0
Subtract 360 from 380 to get 20.
Take the next digit (7) from the dividend and append it to 20, then repeat: 207 / 40

Advancing to step 4:
The number 40 fits into 207 5 times, leaving a remainder of 7.
The next digit of our result is 5. 
Result so far: 195.0
The remainder is 7 after subtracting 200 from 207.
Fetch the next digit (6) from the dividend, attach it to 7 and continue: 76 / 40

Let's proceed to step 5:
40 can be fit into 76 1 times, resulting in a remainder of 36.
Record the quotient 1 as the next digit in the result. 
Result so far: 1951.0
Deduct 40 from 76 and we're left with 36.
Bring next digit (7) of the dividend behind the 36 and repeat the process: 367 / 40

Moving on to step 6:
The number 40 fits into 367 9 times, leaving a remainder of 7.
Put 9 as the next digit of the answer. 
Result so far: 19519.0
Deduct 360 from 367 and we're left with 7.
Since there are no more digits in the dividend, we add a zero to the remainder making it 70, and continue the process.

On to step 7:
When dividing 70 by 40, we get 1 with a remainder of 30.
Use 1 as the next digit of our solution. 
Result so far: 19519.1
If we subtract 40 from 70, we 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:
If we divide 300 by 40, we get 7 and a remainder of 20.
Write down 7 as next digit of the result. 
Result so far: 19519.17
If we take 280 away from 300, we end up with 20.
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 9:
200 divided by 40 is 5 with a remainder of 0.
Record the quotient 5 as the next digit in the result. 
Result so far: 19519.175
The remainder is 0 after subtracting 200 from 200.
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:
When dividing 0 by 40, we get 0 with a remainder of 0.
Use 0 as the next digit of our solution. 
Result so far: 19519.175
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.

Let's proceed 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: 19519.175
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.

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