We look at the division of 145166 by 99 
The aim is to understand the frequency of 99 in 145166.

Going ahead to step 1:
When dividing 1 by 99, we get 0 with a remainder of 1.
Write down 0 as next digit of the result. 
Result so far: 0.0
Subtract 0 from 1 to get 1.
Take the next digit (4) from the dividend and append it to 1, then repeat: 14 / 99

Step 2:
99 goes into 14 0 times with a remainder of 14.
Put 0 as the next digit of the answer. 
Result so far: 0.0
The remainder is 14 after subtracting 0 from 14.
Grab the next digit (5) from the dividend, add it to 14, then carry on: 145 / 99

Advancing to step 3:
99 goes into 145 1 times with a remainder of 46.
The number 1 becomes the next digit in our result. 
Result so far: 1.0
The remainder is 46 after subtracting 99 from 145.
Append the next digit (1) from the dividend to 46 and continue with: 461 / 99

On to step 4:
99 can be fit into 461 4 times, resulting in a remainder of 65.
The number 4 becomes the next digit in our result. 
Result so far: 14.0
Subtract 396 from 461 to get 65.
Append the next digit (6) from the dividend to 65 and continue with: 656 / 99

Going ahead to step 5:
99 goes into 656 6 times with a remainder of 62.
Write down 6 as next digit of the result. 
Result so far: 146.0
Subtract 594 from 656 to get 62.
Append the next digit (6) from the dividend to 62 and continue with: 626 / 99

Moving on to step 6:
99 goes into 626 6 times with a remainder of 32.
The number 6 becomes the next digit in our result. 
Result so far: 1466.0
Deduct 594 from 626 and we're left with 32.
Since there are no more digits in the dividend, we add a zero to the remainder making it 320, and continue the process.

Moving on to step 7:
99 can be fit into 320 3 times, resulting in a remainder of 23.
Write down 3 as next digit of the result. 
Result so far: 1466.3
The remainder is 23 after subtracting 297 from 320.
Since there are no more digits in the dividend, we add a zero to the remainder making it 230, and continue the process.

Let's proceed to step 8:
The number 99 fits into 230 2 times, leaving a remainder of 32.
Record the quotient 2 as the next digit in the result. 
Result so far: 1466.32
Subtracting 198 from 230 leaves us with 32.
Since there are no more digits in the dividend, we add a zero to the remainder making it 320, and continue the process.

Advancing to step 9:
When dividing 320 by 99, we get 3 with a remainder of 23.
The number 3 becomes the next digit in our result. 
Result so far: 1466.323
Subtract 297 from 320 to get 23.
Since there are no more digits in the dividend, we add a zero to the remainder making it 230, and continue the process.

Moving on to step 10:
When dividing 230 by 99, we get 2 with a remainder of 32.
Put 2 as the next digit of the answer. 
Result so far: 1466.3232
The remainder is 32 after subtracting 198 from 230.
Since there are no more digits in the dividend, we add a zero to the remainder making it 320, and continue the process.

Step 11:
99 goes into 320 3 times with a remainder of 23.
The number 3 becomes the next digit in our result. 
Result so far: 1466.32323
Subtracting 297 from 320 leaves us with 23.
Since there are no more digits in the dividend, we add a zero to the remainder making it 230, and continue the process.

Advancing to step 12:
99 can be fit into 230 2 times, resulting in a remainder of 32.
Write down 2 as next digit of the result. 
Result so far: 1466.323232
If we take 198 away from 230, we end up with 32.
Since there are no more digits in the dividend, we add a zero to the remainder making it 320, and continue the process.

On to step 13:
The number 99 fits into 320 3 times, leaving a remainder of 23.
The next digit of our result is 3. 
Result so far: 1466.3232323
Deduct 297 from 320 and we're left with 23.
Since there are no more digits in the dividend, we add a zero to the remainder making it 230, and continue the process.

Step 14:
The number 99 fits into 230 2 times, leaving a remainder of 32.
The next digit of our result is 2. 
Result so far: 1466.32323232
Subtracting 198 from 230 leaves us with 32.
Since there are no more digits in the dividend, we add a zero to the remainder making it 320, and continue the process.

The final outcome is 1466.32323232, with a leftover of 3.2e-08.