Let's divide 40136329 by 107
The aim is to understand the frequency of 107 in 40136329.

Moving on to step 1:
107 can be fit into 4 0 times, resulting in 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.
Fetch the next digit (0) from the dividend, attach it to 4 and continue: 40 / 107

Advancing to step 2:
The number 107 fits into 40 0 times, leaving a remainder of 40.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
The remainder is 40 after subtracting 0 from 40.
Bring next digit (1) of the dividend behind the 40 and repeat the process: 401 / 107

Going ahead to step 3:
When dividing 401 by 107, we get 3 with a remainder of 80.
Put 3 as the next digit of the answer. 
Result so far: 3.0
The remainder is 80 after subtracting 321 from 401.
Include the next digit (3) from the dividend after 80, then repeat: 803 / 107

Step 4:
803 divided by 107 is 7 with a remainder of 54.
Record the quotient 7 as the next digit in the result. 
Result so far: 37.0
Subtract 749 from 803 to get 54.
Append the next digit (6) from the dividend to 54 and continue with: 546 / 107

On to step 5:
If we divide 546 by 107, we get 5 and a remainder of 11.
Record the quotient 5 as the next digit in the result. 
Result so far: 375.0
The remainder is 11 after subtracting 535 from 546.
Fetch the next digit (3) from the dividend, attach it to 11 and continue: 113 / 107

Advancing to step 6:
When dividing 113 by 107, we get 1 with a remainder of 6.
Record the quotient 1 as the next digit in the result. 
Result so far: 3751.0
The remainder is 6 after subtracting 107 from 113.
Grab the next digit (2) from the dividend, add it to 6, then carry on: 62 / 107

Moving on to step 7:
107 goes into 62 0 times with a remainder of 62.
Record the quotient 0 as the next digit in the result. 
Result so far: 37510.0
The remainder is 62 after subtracting 0 from 62.
Take the next digit (9) from the dividend and append it to 62, then repeat: 629 / 107

Let's proceed to step 8:
The number 107 fits into 629 5 times, leaving a remainder of 94.
Put 5 as the next digit of the answer. 
Result so far: 375105.0
Deduct 535 from 629 and we're left with 94.
Since there are no more digits in the dividend, we add a zero to the remainder making it 940, and continue the process.

Going ahead to step 9:
If we divide 940 by 107, we get 8 and a remainder of 84.
The next digit of our result is 8. 
Result so far: 375105.8
Deduct 856 from 940 and we're left with 84.
Since there are no more digits in the dividend, we add a zero to the remainder making it 840, and continue the process.

Going ahead to step 10:
When dividing 840 by 107, we get 7 with a remainder of 91.
Record the quotient 7 as the next digit in the result. 
Result so far: 375105.87
If we subtract 749 from 840, we get 91.
Since there are no more digits in the dividend, we add a zero to the remainder making it 910, and continue the process.

Going ahead to step 11:
When dividing 910 by 107, we get 8 with a remainder of 54.
Use 8 as the next digit of our solution. 
Result so far: 375105.878
The remainder is 54 after subtracting 856 from 910.
Since there are no more digits in the dividend, we add a zero to the remainder making it 540, and continue the process.

On to step 12:
540 divided by 107 is 5 with a remainder of 5.
Put 5 as the next digit of the answer. 
Result so far: 375105.8785
If we subtract 535 from 540, 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.

Advancing to step 13:
107 goes into 50 0 times with a remainder of 50.
Record the quotient 0 as the next digit in the result. 
Result so far: 375105.8785
Subtract 0 from 50 to get 50.
Since there are no more digits in the dividend, we add a zero to the remainder making it 500, and continue the process.

Advancing to step 14:
When dividing 500 by 107, we get 4 with a remainder of 72.
The next digit of our result is 4. 
Result so far: 375105.878504
If we take 428 away from 500, we end up with 72.
Since there are no more digits in the dividend, we add a zero to the remainder making it 720, and continue the process.

On to step 15:
107 goes into 720 6 times with a remainder of 78.
Put 6 as the next digit of the answer. 
Result so far: 375105.8785046
If we subtract 642 from 720, we get 78.
Since there are no more digits in the dividend, we add a zero to the remainder making it 780, and continue the process.

Step 16:
The number 107 fits into 780 7 times, leaving a remainder of 31.
Write down 7 as next digit of the result. 
Result so far: 375105.87850467
Subtracting 749 from 780 leaves us with 31.
Since there are no more digits in the dividend, we add a zero to the remainder making it 310, and continue the process.

Our division results in 375105.87850467 with a remaining 3.1e-08.