We divide 40879478 by 786
The aim is to understand the frequency of 786 in 40879478.

Step 1:
When dividing 4 by 786, we get 0 with a remainder of 4.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
If we take 0 away from 4, we end up with 4.
Take the next digit (0) from the dividend and append it to 4, then repeat: 40 / 786

Going ahead to step 2:
40 divided by 786 is 0 with a remainder of 40.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
Subtracting 0 from 40 leaves us with 40.
Bring next digit (8) of the dividend behind the 40 and repeat the process: 408 / 786

Going ahead to step 3:
When dividing 408 by 786, we get 0 with a remainder of 408.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
If we take 0 away from 408, we end up with 408.
Append the next digit (7) from the dividend to 408 and continue with: 4087 / 786

Let's proceed to step 4:
4087 divided by 786 is 5 with a remainder of 157.
Use 5 as the next digit of our solution. 
Result so far: 5.0
Deduct 3930 from 4087 and we're left with 157.
Append the next digit (9) from the dividend to 157 and continue with: 1579 / 786

Going ahead to step 5:
The number 786 fits into 1579 2 times, leaving a remainder of 7.
Record the quotient 2 as the next digit in the result. 
Result so far: 52.0
Subtracting 1572 from 1579 leaves us with 7.
Append the next digit (4) from the dividend to 7 and continue with: 74 / 786

Moving on to step 6:
786 goes into 74 0 times with a remainder of 74.
Use 0 as the next digit of our solution. 
Result so far: 520.0
If we subtract 0 from 74, we get 74.
Include the next digit (7) from the dividend after 74, then repeat: 747 / 786

Advancing to step 7:
If we divide 747 by 786, we get 0 and a remainder of 747.
The number 0 becomes the next digit in our result. 
Result so far: 5200.0
The remainder is 747 after subtracting 0 from 747.
Bring next digit (8) of the dividend behind the 747 and repeat the process: 7478 / 786

Advancing to step 8:
786 goes into 7478 9 times with a remainder of 404.
Write down 9 as next digit of the result. 
Result so far: 52009.0
If we take 7074 away from 7478, we end up with 404.
Since there are no more digits in the dividend, we add a zero to the remainder making it 4040, and continue the process.

Advancing to step 9:
4040 divided by 786 is 5 with a remainder of 110.
Put 5 as the next digit of the answer. 
Result so far: 52009.5
Subtract 3930 from 4040 to get 110.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1100, and continue the process.

Advancing to step 10:
1100 divided by 786 is 1 with a remainder of 314.
Use 1 as the next digit of our solution. 
Result so far: 52009.51
If we subtract 786 from 1100, we get 314.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3140, and continue the process.

Step 11:
786 can be fit into 3140 3 times, resulting in a remainder of 782.
Put 3 as the next digit of the answer. 
Result so far: 52009.513
If we take 2358 away from 3140, we end up with 782.
Since there are no more digits in the dividend, we add a zero to the remainder making it 7820, and continue the process.

Going ahead to step 12:
7820 divided by 786 is 9 with a remainder of 746.
Use 9 as the next digit of our solution. 
Result so far: 52009.5139
The remainder is 746 after subtracting 7074 from 7820.
Since there are no more digits in the dividend, we add a zero to the remainder making it 7460, and continue the process.

Going ahead to step 13:
When dividing 7460 by 786, we get 9 with a remainder of 386.
Record the quotient 9 as the next digit in the result. 
Result so far: 52009.51399
Deduct 7074 from 7460 and we're left with 386.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3860, and continue the process.

In conclusion, the division gives 52009.51399 with a balance of 0.000386.