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

Let's proceed to step 1:
When dividing 5 by 89, we get 0 with a remainder of 5.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
Deduct 0 from 5 and we're left with 5.
Bring next digit (8) of the dividend behind the 5 and repeat the process: 58 / 89

Let's proceed to step 2:
When dividing 58 by 89, we get 0 with a remainder of 58.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
If we subtract 0 from 58, we get 58.
Take the next digit (5) from the dividend and append it to 58, then repeat: 585 / 89

Let's proceed to step 3:
585 divided by 89 is 6 with a remainder of 51.
The next digit of our result is 6. 
Result so far: 6.0
The remainder is 51 after subtracting 534 from 585.
Append the next digit (6) from the dividend to 51 and continue with: 516 / 89

Advancing to step 4:
If we divide 516 by 89, we get 5 and a remainder of 71.
The next digit of our result is 5. 
Result so far: 65.0
If we subtract 445 from 516, we get 71.
Append the next digit (4) from the dividend to 71 and continue with: 714 / 89

Step 5:
When dividing 714 by 89, we get 8 with a remainder of 2.
The number 8 becomes the next digit in our result. 
Result so far: 658.0
The remainder is 2 after subtracting 712 from 714.
Bring next digit (2) of the dividend behind the 2 and repeat the process: 22 / 89

Moving on to step 6:
If we divide 22 by 89, we get 0 and a remainder of 22.
Use 0 as the next digit of our solution. 
Result so far: 6580.0
Deduct 0 from 22 and we're left with 22.
Since there are no more digits in the dividend, we add a zero to the remainder making it 220, and continue the process.

Advancing to step 7:
If we divide 220 by 89, we get 2 and a remainder of 42.
Use 2 as the next digit of our solution. 
Result so far: 6580.2
If we take 178 away from 220, 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 8:
89 goes into 420 4 times with a remainder of 64.
Write down 4 as next digit of the result. 
Result so far: 6580.24
If we take 356 away from 420, we end up with 64.
Since there are no more digits in the dividend, we add a zero to the remainder making it 640, and continue the process.

Going ahead to step 9:
89 goes into 640 7 times with a remainder of 17.
Use 7 as the next digit of our solution. 
Result so far: 6580.247
Subtracting 623 from 640 leaves us with 17.
Since there are no more digits in the dividend, we add a zero to the remainder making it 170, and continue the process.

Moving on to step 10:
89 can be fit into 170 1 times, resulting in a remainder of 81.
Put 1 as the next digit of the answer. 
Result so far: 6580.2471
The remainder is 81 after subtracting 89 from 170.
Since there are no more digits in the dividend, we add a zero to the remainder making it 810, and continue the process.

Advancing to step 11:
When dividing 810 by 89, we get 9 with a remainder of 9.
Use 9 as the next digit of our solution. 
Result so far: 6580.24719
If we subtract 801 from 810, we get 9.
Since there are no more digits in the dividend, we add a zero to the remainder making it 90, and continue the process.

Going ahead to step 12:
89 can be fit into 90 1 times, resulting in a remainder of 1.
Put 1 as the next digit of the answer. 
Result so far: 6580.247191
Subtract 89 from 90 to get 1.
Since there are no more digits in the dividend, we add a zero to the remainder making it 10, and continue the process.

Going ahead to step 13:
If we divide 10 by 89, we get 0 and a remainder of 10.
Put 0 as the next digit of the answer. 
Result so far: 6580.247191
If we subtract 0 from 10, we get 10.
Since there are no more digits in the dividend, we add a zero to the remainder making it 100, and continue the process.

Let's proceed to step 14:
When dividing 100 by 89, we get 1 with a remainder of 11.
Record the quotient 1 as the next digit in the result. 
Result so far: 6580.24719101
The remainder is 11 after subtracting 89 from 100.
Since there are no more digits in the dividend, we add a zero to the remainder making it 110, and continue the process.

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