Let's divide 40129771 by 780
The aim is to understand the frequency of 780 in 40129771.

On to step 1:
4 divided by 780 is 0 with a remainder of 4.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
Subtracting 0 from 4 leaves us with 4.
Grab the next digit (0) from the dividend, add it to 4, then carry on: 40 / 780

On to step 2:
If we divide 40 by 780, we get 0 and a remainder of 40.
Put 0 as the next digit of the answer. 
Result so far: 0.0
Subtracting 0 from 40 leaves us with 40.
Grab the next digit (1) from the dividend, add it to 40, then carry on: 401 / 780

Advancing to step 3:
When dividing 401 by 780, we get 0 with a remainder of 401.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
The remainder is 401 after subtracting 0 from 401.
Grab the next digit (2) from the dividend, add it to 401, then carry on: 4012 / 780

Let's proceed to step 4:
If we divide 4012 by 780, we get 5 and a remainder of 112.
Use 5 as the next digit of our solution. 
Result so far: 5.0
Subtracting 3900 from 4012 leaves us with 112.
Bring next digit (9) of the dividend behind the 112 and repeat the process: 1129 / 780

Going ahead to step 5:
1129 divided by 780 is 1 with a remainder of 349.
The next digit of our result is 1. 
Result so far: 51.0
Subtract 780 from 1129 to get 349.
Append the next digit (7) from the dividend to 349 and continue with: 3497 / 780

Step 6:
If we divide 3497 by 780, we get 4 and a remainder of 377.
Put 4 as the next digit of the answer. 
Result so far: 514.0
If we take 3120 away from 3497, we end up with 377.
Grab the next digit (7) from the dividend, add it to 377, then carry on: 3777 / 780

Advancing to step 7:
3777 divided by 780 is 4 with a remainder of 657.
The number 4 becomes the next digit in our result. 
Result so far: 5144.0
The remainder is 657 after subtracting 3120 from 3777.
Append the next digit (1) from the dividend to 657 and continue with: 6571 / 780

On to step 8:
When dividing 6571 by 780, we get 8 with a remainder of 331.
Write down 8 as next digit of the result. 
Result so far: 51448.0
Subtracting 6240 from 6571 leaves us with 331.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3310, and continue the process.

Going ahead to step 9:
780 goes into 3310 4 times with a remainder of 190.
Use 4 as the next digit of our solution. 
Result so far: 51448.4
The remainder is 190 after subtracting 3120 from 3310.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1900, and continue the process.

Moving on to step 10:
If we divide 1900 by 780, we get 2 and a remainder of 340.
The next digit of our result is 2. 
Result so far: 51448.42
Subtracting 1560 from 1900 leaves us with 340.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3400, and continue the process.

Let's proceed to step 11:
The number 780 fits into 3400 4 times, leaving a remainder of 280.
Put 4 as the next digit of the answer. 
Result so far: 51448.424
The remainder is 280 after subtracting 3120 from 3400.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2800, and continue the process.

Let's proceed to step 12:
The number 780 fits into 2800 3 times, leaving a remainder of 460.
The number 3 becomes the next digit in our result. 
Result so far: 51448.4243
Subtracting 2340 from 2800 leaves us with 460.
Since there are no more digits in the dividend, we add a zero to the remainder making it 4600, and continue the process.

Moving on to step 13:
780 can be fit into 4600 5 times, resulting in a remainder of 700.
Put 5 as the next digit of the answer. 
Result so far: 51448.42435
If we subtract 3900 from 4600, we get 700.
Since there are no more digits in the dividend, we add a zero to the remainder making it 7000, and continue the process.

Moving on to step 14:
780 goes into 7000 8 times with a remainder of 760.
The next digit of our result is 8. 
Result so far: 51448.424358
If we take 6240 away from 7000, we end up with 760.
Since there are no more digits in the dividend, we add a zero to the remainder making it 7600, and continue the process.

Going ahead to step 15:
780 goes into 7600 9 times with a remainder of 580.
The number 9 becomes the next digit in our result. 
Result so far: 51448.4243589
Deduct 7020 from 7600 and we're left with 580.
Since there are no more digits in the dividend, we add a zero to the remainder making it 5800, and continue the process.

Going ahead to step 16:
5800 divided by 780 is 7 with a remainder of 340.
The next digit of our result is 7. 
Result so far: 51448.42435897
Subtracting 5460 from 5800 leaves us with 340.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3400, and continue the process.

The final outcome is 51448.42435897, with a leftover of 3.4e-07.