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

Advancing 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 subtract 0 from 7, we get 7.
Fetch the next digit (8) from the dividend, attach it to 7 and continue: 78 / 40

Moving on to step 2:
The number 40 fits into 78 1 times, leaving a remainder of 38.
The number 1 becomes the next digit in our result. 
Result so far: 1.0
Subtract 40 from 78 to get 38.
Fetch the next digit (0) from the dividend, attach it to 38 and continue: 380 / 40

Going ahead to step 3:
380 divided by 40 is 9 with a remainder of 20.
Use 9 as the next digit of our solution. 
Result so far: 19.0
Deduct 360 from 380 and we're left with 20.
Bring next digit (1) of the dividend behind the 20 and repeat the process: 201 / 40

On to step 4:
40 can be fit into 201 5 times, resulting in a remainder of 1.
Put 5 as the next digit of the answer. 
Result so far: 195.0
Subtract 200 from 201 to get 1.
Fetch the next digit (5) from the dividend, attach it to 1 and continue: 15 / 40

Advancing to step 5:
If we divide 15 by 40, we get 0 and a remainder of 15.
Write down 0 as next digit of the result. 
Result so far: 1950.0
Deduct 0 from 15 and we're left with 15.
Take the next digit (0) from the dividend and append it to 15, then repeat: 150 / 40

Step 6:
When dividing 150 by 40, we get 3 with a remainder of 30.
The number 3 becomes the next digit in our result. 
Result so far: 19503.0
Subtracting 120 from 150 leaves us with 30.
Since there are no more digits in the dividend, we add a zero to the remainder making it 300, and continue the process.

Moving on to step 7:
If we divide 300 by 40, we get 7 and a remainder of 20.
The next digit of our result is 7. 
Result so far: 19503.7
The remainder is 20 after subtracting 280 from 300.
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 8:
200 divided by 40 is 5 with a remainder of 0.
The number 5 becomes the next digit in our result. 
Result so far: 19503.75
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.

Advancing 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: 19503.75
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.

Let's proceed to step 10:
If we divide 0 by 40, we get 0 and a remainder of 0.
Put 0 as the next digit of the answer. 
Result so far: 19503.75
Deduct 0 from 0 and we're left 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 19503.75 with a balance of 0.0.