We look at the division of 117171 by 89 
The aim is to understand the frequency of 89 in 117171.

On to step 1:
If we divide 1 by 89, we get 0 and a remainder of 1.
Use 0 as the next digit of our solution. 
Result so far: 0.0
Deduct 0 from 1 and we're left with 1.
Grab the next digit (1) from the dividend, add it to 1, then carry on: 11 / 89

On to step 2:
11 divided by 89 is 0 with a remainder of 11.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
Subtract 0 from 11 to get 11.
Append the next digit (7) from the dividend to 11 and continue with: 117 / 89

Moving on to step 3:
When dividing 117 by 89, we get 1 with a remainder of 28.
The number 1 becomes the next digit in our result. 
Result so far: 1.0
Deduct 89 from 117 and we're left with 28.
Fetch the next digit (1) from the dividend, attach it to 28 and continue: 281 / 89

Moving on to step 4:
When dividing 281 by 89, we get 3 with a remainder of 14.
Put 3 as the next digit of the answer. 
Result so far: 13.0
Subtract 267 from 281 to get 14.
Bring next digit (7) of the dividend behind the 14 and repeat the process: 147 / 89

Going ahead to step 5:
89 goes into 147 1 times with a remainder of 58.
Put 1 as the next digit of the answer. 
Result so far: 131.0
The remainder is 58 after subtracting 89 from 147.
Fetch the next digit (1) from the dividend, attach it to 58 and continue: 581 / 89

Advancing to step 6:
581 divided by 89 is 6 with a remainder of 47.
Record the quotient 6 as the next digit in the result. 
Result so far: 1316.0
The remainder is 47 after subtracting 534 from 581.
Since there are no more digits in the dividend, we add a zero to the remainder making it 470, and continue the process.

Moving on to step 7:
The number 89 fits into 470 5 times, leaving a remainder of 25.
The next digit of our result is 5. 
Result so far: 1316.5
The remainder is 25 after subtracting 445 from 470.
Since there are no more digits in the dividend, we add a zero to the remainder making it 250, and continue the process.

Moving on to step 8:
If we divide 250 by 89, we get 2 and a remainder of 72.
Record the quotient 2 as the next digit in the result. 
Result so far: 1316.52
Subtracting 178 from 250 leaves us 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.

Going ahead to step 9:
720 divided by 89 is 8 with a remainder of 8.
Use 8 as the next digit of our solution. 
Result so far: 1316.528
Subtract 712 from 720 to get 8.
Since there are no more digits in the dividend, we add a zero to the remainder making it 80, and continue the process.

Going ahead to step 10:
If we divide 80 by 89, we get 0 and a remainder of 80.
Write down 0 as next digit of the result. 
Result so far: 1316.528
Deduct 0 from 80 and we're left with 80.
Since there are no more digits in the dividend, we add a zero to the remainder making it 800, and continue the process.

Let's proceed to step 11:
The number 89 fits into 800 8 times, leaving a remainder of 88.
Use 8 as the next digit of our solution. 
Result so far: 1316.52808
If we take 712 away from 800, we end up with 88.
Since there are no more digits in the dividend, we add a zero to the remainder making it 880, and continue the process.

Step 12:
If we divide 880 by 89, we get 9 and a remainder of 79.
Write down 9 as next digit of the result. 
Result so far: 1316.528089
Deduct 801 from 880 and we're left with 79.
Since there are no more digits in the dividend, we add a zero to the remainder making it 790, and continue the process.

On to step 13:
790 divided by 89 is 8 with a remainder of 78.
Use 8 as the next digit of our solution. 
Result so far: 1316.5280898
If we take 712 away from 790, we end up with 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 14:
89 can be fit into 780 8 times, resulting in a remainder of 68.
Record the quotient 8 as the next digit in the result. 
Result so far: 1316.52808988
Deduct 712 from 780 and we're left with 68.
Since there are no more digits in the dividend, we add a zero to the remainder making it 680, and continue the process.

After the division, we end up with 1316.52808988 and a remainder of 6.8e-08.