Let's divide 50118 by 99
The aim is to understand the frequency of 99 in 50118.

Step 1:
5 divided by 99 is 0 with a remainder of 5.
The next digit of our result is 0. 
Result so far: 0.0
Subtract 0 from 5 to get 5.
Append the next digit (0) from the dividend to 5 and continue with: 50 / 99

Advancing to step 2:
When dividing 50 by 99, we get 0 with a remainder of 50.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
Subtract 0 from 50 to get 50.
Grab the next digit (1) from the dividend, add it to 50, then carry on: 501 / 99

On to step 3:
501 divided by 99 is 5 with a remainder of 6.
The next digit of our result is 5. 
Result so far: 5.0
Subtract 495 from 501 to get 6.
Grab the next digit (1) from the dividend, add it to 6, then carry on: 61 / 99

Step 4:
99 can be fit into 61 0 times, resulting in a remainder of 61.
The number 0 becomes the next digit in our result. 
Result so far: 50.0
Subtract 0 from 61 to get 61.
Fetch the next digit (8) from the dividend, attach it to 61 and continue: 618 / 99

Going ahead to step 5:
618 divided by 99 is 6 with a remainder of 24.
The number 6 becomes the next digit in our result. 
Result so far: 506.0
Subtract 594 from 618 to get 24.
Since there are no more digits in the dividend, we add a zero to the remainder making it 240, and continue the process.

Advancing to step 6:
When dividing 240 by 99, we get 2 with a remainder of 42.
Write down 2 as next digit of the result. 
Result so far: 506.2
If we take 198 away from 240, we end up with 42.
Since there are no more digits in the dividend, we add a zero to the remainder making it 420, and continue the process.

Advancing to step 7:
The number 99 fits into 420 4 times, leaving a remainder of 24.
Record the quotient 4 as the next digit in the result. 
Result so far: 506.24
Deduct 396 from 420 and we're left with 24.
Since there are no more digits in the dividend, we add a zero to the remainder making it 240, and continue the process.

Advancing to step 8:
240 divided by 99 is 2 with a remainder of 42.
Write down 2 as next digit of the result. 
Result so far: 506.242
Deduct 198 from 240 and we're left with 42.
Since there are no more digits in the dividend, we add a zero to the remainder making it 420, and continue the process.

Moving on to step 9:
If we divide 420 by 99, we get 4 and a remainder of 24.
Record the quotient 4 as the next digit in the result. 
Result so far: 506.2424
Deduct 396 from 420 and we're left with 24.
Since there are no more digits in the dividend, we add a zero to the remainder making it 240, and continue the process.

Moving on to step 10:
The number 99 fits into 240 2 times, leaving a remainder of 42.
Write down 2 as next digit of the result. 
Result so far: 506.24242
Deduct 198 from 240 and we're left with 42.
Since there are no more digits in the dividend, we add a zero to the remainder making it 420, and continue the process.

Moving on to step 11:
99 goes into 420 4 times with a remainder of 24.
Use 4 as the next digit of our solution. 
Result so far: 506.242424
The remainder is 24 after subtracting 396 from 420.
Since there are no more digits in the dividend, we add a zero to the remainder making it 240, and continue the process.

Moving on to step 12:
When dividing 240 by 99, we get 2 with a remainder of 42.
Record the quotient 2 as the next digit in the result. 
Result so far: 506.2424242
Subtracting 198 from 240 leaves us with 42.
Since there are no more digits in the dividend, we add a zero to the remainder making it 420, and continue the process.

On to step 13:
99 can be fit into 420 4 times, resulting in a remainder of 24.
The next digit of our result is 4. 
Result so far: 506.24242424
The remainder is 24 after subtracting 396 from 420.
Since there are no more digits in the dividend, we add a zero to the remainder making it 240, and continue the process.

The final outcome is 506.24242424, with a leftover of 2.4e-08.