40120191 ÷ 989 
The aim is to understand the frequency of 989 in 40120191.

On to step 1:
4 divided by 989 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 / 989

On to step 2:
989 can be fit into 40 0 times, resulting in a remainder of 40.
The number 0 becomes the next digit in our result. 
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 / 989

On to step 3:
If we divide 401 by 989, we get 0 and a remainder of 401.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
Subtracting 0 from 401 leaves us with 401.
Bring next digit (2) of the dividend behind the 401 and repeat the process: 4012 / 989

Step 4:
4012 divided by 989 is 4 with a remainder of 56.
Put 4 as the next digit of the answer. 
Result so far: 4.0
Deduct 3956 from 4012 and we're left with 56.
Bring next digit (0) of the dividend behind the 56 and repeat the process: 560 / 989

Advancing to step 5:
When dividing 560 by 989, we get 0 with a remainder of 560.
Record the quotient 0 as the next digit in the result. 
Result so far: 40.0
If we subtract 0 from 560, we get 560.
Take the next digit (1) from the dividend and append it to 560, then repeat: 5601 / 989

Let's proceed to step 6:
When dividing 5601 by 989, we get 5 with a remainder of 656.
Use 5 as the next digit of our solution. 
Result so far: 405.0
Subtract 4945 from 5601 to get 656.
Fetch the next digit (9) from the dividend, attach it to 656 and continue: 6569 / 989

Moving on to step 7:
989 can be fit into 6569 6 times, resulting in a remainder of 635.
Write down 6 as next digit of the result. 
Result so far: 4056.0
Deduct 5934 from 6569 and we're left with 635.
Fetch the next digit (1) from the dividend, attach it to 635 and continue: 6351 / 989

On to step 8:
When dividing 6351 by 989, we get 6 with a remainder of 417.
Use 6 as the next digit of our solution. 
Result so far: 40566.0
The remainder is 417 after subtracting 5934 from 6351.
Since there are no more digits in the dividend, we add a zero to the remainder making it 4170, and continue the process.

Step 9:
When dividing 4170 by 989, we get 4 with a remainder of 214.
Use 4 as the next digit of our solution. 
Result so far: 40566.4
If we take 3956 away from 4170, we end up with 214.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2140, and continue the process.

Advancing to step 10:
When dividing 2140 by 989, we get 2 with a remainder of 162.
Record the quotient 2 as the next digit in the result. 
Result so far: 40566.42
If we subtract 1978 from 2140, we get 162.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1620, and continue the process.

Moving on to step 11:
989 goes into 1620 1 times with a remainder of 631.
Write down 1 as next digit of the result. 
Result so far: 40566.421
Deduct 989 from 1620 and we're left with 631.
Since there are no more digits in the dividend, we add a zero to the remainder making it 6310, and continue the process.

Step 12:
989 goes into 6310 6 times with a remainder of 376.
The number 6 becomes the next digit in our result. 
Result so far: 40566.4216
Subtract 5934 from 6310 to get 376.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3760, and continue the process.

Let's proceed to step 13:
If we divide 3760 by 989, we get 3 and a remainder of 793.
The next digit of our result is 3. 
Result so far: 40566.42163
Subtracting 2967 from 3760 leaves us with 793.
Since there are no more digits in the dividend, we add a zero to the remainder making it 7930, and continue the process.

Let's proceed to step 14:
When dividing 7930 by 989, we get 8 with a remainder of 18.
Put 8 as the next digit of the answer. 
Result so far: 40566.421638
The remainder is 18 after subtracting 7912 from 7930.
Since there are no more digits in the dividend, we add a zero to the remainder making it 180, and continue the process.

Advancing to step 15:
989 goes into 180 0 times with a remainder of 180.
Put 0 as the next digit of the answer. 
Result so far: 40566.421638
Subtracting 0 from 180 leaves us with 180.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1800, and continue the process.

Step 16:
When dividing 1800 by 989, we get 1 with a remainder of 811.
The number 1 becomes the next digit in our result. 
Result so far: 40566.42163801
Subtracting 989 from 1800 leaves us with 811.
Since there are no more digits in the dividend, we add a zero to the remainder making it 8110, and continue the process.

After the division, we end up with 40566.42163801 and a remainder of 8.11e-07.