Let's divide 504617 by 89
The aim is to understand the frequency of 89 in 504617.

Advancing to step 1:
When dividing 5 by 89, we get 0 with a remainder of 5.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
If we take 0 away from 5, we end up with 5.
Grab the next digit (0) from the dividend, add it to 5, then carry on: 50 / 89

Let's proceed to step 2:
When dividing 50 by 89, we get 0 with a remainder of 50.
Use 0 as the next digit of our solution. 
Result so far: 0.0
If we take 0 away from 50, we end up with 50.
Fetch the next digit (4) from the dividend, attach it to 50 and continue: 504 / 89

On to step 3:
504 divided by 89 is 5 with a remainder of 59.
Use 5 as the next digit of our solution. 
Result so far: 5.0
The remainder is 59 after subtracting 445 from 504.
Append the next digit (6) from the dividend to 59 and continue with: 596 / 89

Let's proceed to step 4:
89 can be fit into 596 6 times, resulting in a remainder of 62.
Use 6 as the next digit of our solution. 
Result so far: 56.0
Subtract 534 from 596 to get 62.
Grab the next digit (1) from the dividend, add it to 62, then carry on: 621 / 89

Step 5:
The number 89 fits into 621 6 times, leaving a remainder of 87.
The next digit of our result is 6. 
Result so far: 566.0
If we subtract 534 from 621, we get 87.
Fetch the next digit (7) from the dividend, attach it to 87 and continue: 877 / 89

Going ahead to step 6:
877 divided by 89 is 9 with a remainder of 76.
Write down 9 as next digit of the result. 
Result so far: 5669.0
If we take 801 away from 877, we end up with 76.
Since there are no more digits in the dividend, we add a zero to the remainder making it 760, and continue the process.

Going ahead to step 7:
The number 89 fits into 760 8 times, leaving a remainder of 48.
The number 8 becomes the next digit in our result. 
Result so far: 5669.8
Subtract 712 from 760 to get 48.
Since there are no more digits in the dividend, we add a zero to the remainder making it 480, and continue the process.

On to step 8:
480 divided by 89 is 5 with a remainder of 35.
Write down 5 as next digit of the result. 
Result so far: 5669.85
The remainder is 35 after subtracting 445 from 480.
Since there are no more digits in the dividend, we add a zero to the remainder making it 350, and continue the process.

Going ahead to step 9:
89 can be fit into 350 3 times, resulting in a remainder of 83.
Write down 3 as next digit of the result. 
Result so far: 5669.853
Subtracting 267 from 350 leaves us with 83.
Since there are no more digits in the dividend, we add a zero to the remainder making it 830, and continue the process.

Step 10:
If we divide 830 by 89, we get 9 and a remainder of 29.
The number 9 becomes the next digit in our result. 
Result so far: 5669.8539
If we take 801 away from 830, we end up with 29.
Since there are no more digits in the dividend, we add a zero to the remainder making it 290, and continue the process.

Moving on to step 11:
If we divide 290 by 89, we get 3 and a remainder of 23.
Put 3 as the next digit of the answer. 
Result so far: 5669.85393
Subtract 267 from 290 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.

On to step 12:
89 can be fit into 230 2 times, resulting in a remainder of 52.
The number 2 becomes the next digit in our result. 
Result so far: 5669.853932
Subtracting 178 from 230 leaves us with 52.
Since there are no more digits in the dividend, we add a zero to the remainder making it 520, and continue the process.

Step 13:
89 can be fit into 520 5 times, resulting in a remainder of 75.
Record the quotient 5 as the next digit in the result. 
Result so far: 5669.8539325
If we subtract 445 from 520, we get 75.
Since there are no more digits in the dividend, we add a zero to the remainder making it 750, and continue the process.

Moving on to step 14:
If we divide 750 by 89, we get 8 and a remainder of 38.
Write down 8 as next digit of the result. 
Result so far: 5669.85393258
Subtracting 712 from 750 leaves us with 38.
Since there are no more digits in the dividend, we add a zero to the remainder making it 380, and continue the process.

The final result is 5669.85393258 with a remainder of 3.8e-08.