Let's divide 40506127 by 995
The aim is to understand the frequency of 995 in 40506127.

Going ahead to step 1:
If we divide 4 by 995, we get 0 and a remainder of 4.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
Deduct 0 from 4 and we're left with 4.
Fetch the next digit (0) from the dividend, attach it to 4 and continue: 40 / 995

Let's proceed to step 2:
If we divide 40 by 995, we get 0 and a remainder of 40.
Write down 0 as next digit of the result. 
Result so far: 0.0
If we take 0 away from 40, we end up with 40.
Append the next digit (5) from the dividend to 40 and continue with: 405 / 995

Advancing to step 3:
If we divide 405 by 995, we get 0 and a remainder of 405.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
Deduct 0 from 405 and we're left with 405.
Grab the next digit (0) from the dividend, add it to 405, then carry on: 4050 / 995

Step 4:
If we divide 4050 by 995, we get 4 and a remainder of 70.
Record the quotient 4 as the next digit in the result. 
Result so far: 4.0
If we subtract 3980 from 4050, we get 70.
Include the next digit (6) from the dividend after 70, then repeat: 706 / 995

Going ahead to step 5:
The number 995 fits into 706 0 times, leaving a remainder of 706.
The number 0 becomes the next digit in our result. 
Result so far: 40.0
Subtract 0 from 706 to get 706.
Include the next digit (1) from the dividend after 706, then repeat: 7061 / 995

Step 6:
When dividing 7061 by 995, we get 7 with a remainder of 96.
Write down 7 as next digit of the result. 
Result so far: 407.0
Subtracting 6965 from 7061 leaves us with 96.
Fetch the next digit (2) from the dividend, attach it to 96 and continue: 962 / 995

Moving on to step 7:
When dividing 962 by 995, we get 0 with a remainder of 962.
Record the quotient 0 as the next digit in the result. 
Result so far: 4070.0
Subtract 0 from 962 to get 962.
Take the next digit (7) from the dividend and append it to 962, then repeat: 9627 / 995

Moving on to step 8:
995 can be fit into 9627 9 times, resulting in a remainder of 672.
Use 9 as the next digit of our solution. 
Result so far: 40709.0
Subtract 8955 from 9627 to get 672.
Since there are no more digits in the dividend, we add a zero to the remainder making it 6720, and continue the process.

Advancing to step 9:
995 goes into 6720 6 times with a remainder of 750.
The number 6 becomes the next digit in our result. 
Result so far: 40709.6
If we take 5970 away from 6720, we end up with 750.
Since there are no more digits in the dividend, we add a zero to the remainder making it 7500, and continue the process.

Advancing to step 10:
If we divide 7500 by 995, we get 7 and a remainder of 535.
Use 7 as the next digit of our solution. 
Result so far: 40709.67
Subtracting 6965 from 7500 leaves us with 535.
Since there are no more digits in the dividend, we add a zero to the remainder making it 5350, and continue the process.

Step 11:
If we divide 5350 by 995, we get 5 and a remainder of 375.
Record the quotient 5 as the next digit in the result. 
Result so far: 40709.675
Subtract 4975 from 5350 to get 375.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3750, and continue the process.

On to step 12:
When dividing 3750 by 995, we get 3 with a remainder of 765.
Record the quotient 3 as the next digit in the result. 
Result so far: 40709.6753
The remainder is 765 after subtracting 2985 from 3750.
Since there are no more digits in the dividend, we add a zero to the remainder making it 7650, and continue the process.

Advancing to step 13:
995 can be fit into 7650 7 times, resulting in a remainder of 685.
The next digit of our result is 7. 
Result so far: 40709.67537
Subtract 6965 from 7650 to get 685.
Since there are no more digits in the dividend, we add a zero to the remainder making it 6850, and continue the process.

Step 14:
The number 995 fits into 6850 6 times, leaving a remainder of 880.
Record the quotient 6 as the next digit in the result. 
Result so far: 40709.675376
Subtract 5970 from 6850 to get 880.
Since there are no more digits in the dividend, we add a zero to the remainder making it 8800, and continue the process.

On to step 15:
The number 995 fits into 8800 8 times, leaving a remainder of 840.
Put 8 as the next digit of the answer. 
Result so far: 40709.6753768
If we subtract 7960 from 8800, we get 840.
Since there are no more digits in the dividend, we add a zero to the remainder making it 8400, and continue the process.

Moving on to step 16:
If we divide 8400 by 995, we get 8 and a remainder of 440.
Use 8 as the next digit of our solution. 
Result so far: 40709.67537688
The remainder is 440 after subtracting 7960 from 8400.
Since there are no more digits in the dividend, we add a zero to the remainder making it 4400, and continue the process.

Our division results in 40709.67537688 with a remaining 4.4e-07.