We're dividing 5140 by 89 
The aim is to understand the frequency of 89 in 5140.

Advancing to step 1:
89 can be fit into 5 0 times, resulting in a remainder of 5.
The next digit of our result is 0. 
Result so far: 0.0
Deduct 0 from 5 and we're left with 5.
Include the next digit (1) from the dividend after 5, then repeat: 51 / 89

Let's proceed to step 2:
51 divided by 89 is 0 with a remainder of 51.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
Subtracting 0 from 51 leaves us with 51.
Append the next digit (4) from the dividend to 51 and continue with: 514 / 89

On to step 3:
89 goes into 514 5 times with a remainder of 69.
Put 5 as the next digit of the answer. 
Result so far: 5.0
If we subtract 445 from 514, we get 69.
Fetch the next digit (0) from the dividend, attach it to 69 and continue: 690 / 89

Advancing to step 4:
The number 89 fits into 690 7 times, leaving a remainder of 67.
Record the quotient 7 as the next digit in the result. 
Result so far: 57.0
Subtract 623 from 690 to get 67.
Since there are no more digits in the dividend, we add a zero to the remainder making it 670, and continue the process.

Advancing to step 5:
The number 89 fits into 670 7 times, leaving a remainder of 47.
The number 7 becomes the next digit in our result. 
Result so far: 57.7
If we subtract 623 from 670, we get 47.
Since there are no more digits in the dividend, we add a zero to the remainder making it 470, and continue the process.

Let's proceed to step 6:
When dividing 470 by 89, we get 5 with a remainder of 25.
The next digit of our result is 5. 
Result so far: 57.75
Deduct 445 from 470 and we're left with 25.
Since there are no more digits in the dividend, we add a zero to the remainder making it 250, and continue the process.

Let's proceed to step 7:
When dividing 250 by 89, we get 2 with a remainder of 72.
The number 2 becomes the next digit in our result. 
Result so far: 57.752
Deduct 178 from 250 and we're left 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.

Step 8:
The number 89 fits into 720 8 times, leaving a remainder of 8.
Put 8 as the next digit of the answer. 
Result so far: 57.7528
Subtracting 712 from 720 leaves us with 8.
Since there are no more digits in the dividend, we add a zero to the remainder making it 80, and continue the process.

Moving on to step 9:
The number 89 fits into 80 0 times, leaving a remainder of 80.
Write down 0 as next digit of the result. 
Result so far: 57.7528
Subtracting 0 from 80 leaves us 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.

Advancing to step 10:
If we divide 800 by 89, we get 8 and a remainder of 88.
Use 8 as the next digit of our solution. 
Result so far: 57.752808
Subtract 712 from 800 to get 88.
Since there are no more digits in the dividend, we add a zero to the remainder making it 880, and continue the process.

Moving on to step 11:
The number 89 fits into 880 9 times, leaving a remainder of 79.
Put 9 as the next digit of the answer. 
Result so far: 57.7528089
Subtract 801 from 880 to get 79.
Since there are no more digits in the dividend, we add a zero to the remainder making it 790, and continue the process.

Advancing to step 12:
If we divide 790 by 89, we get 8 and a remainder of 78.
Write down 8 as next digit of the result. 
Result so far: 57.75280898
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.

The final outcome is 57.75280898, with a leftover of 7.8e-08.