We're dividing 5791617 by 987 
The aim is to understand the frequency of 987 in 5791617.

Advancing to step 1:
When dividing 5 by 987, we get 0 with a remainder of 5.
Use 0 as the next digit of our solution. 
Result so far: 0.0
Subtracting 0 from 5 leaves us with 5.
Include the next digit (7) from the dividend after 5, then repeat: 57 / 987

On to step 2:
The number 987 fits into 57 0 times, leaving a remainder of 57.
The next digit of our result is 0. 
Result so far: 0.0
If we subtract 0 from 57, we get 57.
Take the next digit (9) from the dividend and append it to 57, then repeat: 579 / 987

Moving on to step 3:
If we divide 579 by 987, we get 0 and a remainder of 579.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
If we subtract 0 from 579, we get 579.
Bring next digit (1) of the dividend behind the 579 and repeat the process: 5791 / 987

Moving on to step 4:
987 goes into 5791 5 times with a remainder of 856.
Record the quotient 5 as the next digit in the result. 
Result so far: 5.0
Subtracting 4935 from 5791 leaves us with 856.
Bring next digit (6) of the dividend behind the 856 and repeat the process: 8566 / 987

Moving on to step 5:
The number 987 fits into 8566 8 times, leaving a remainder of 670.
Write down 8 as next digit of the result. 
Result so far: 58.0
If we take 7896 away from 8566, we end up with 670.
Include the next digit (1) from the dividend after 670, then repeat: 6701 / 987

Moving on to step 6:
987 can be fit into 6701 6 times, resulting in a remainder of 779.
Record the quotient 6 as the next digit in the result. 
Result so far: 586.0
If we subtract 5922 from 6701, we get 779.
Bring next digit (7) of the dividend behind the 779 and repeat the process: 7797 / 987

Step 7:
If we divide 7797 by 987, we get 7 and a remainder of 888.
Write down 7 as next digit of the result. 
Result so far: 5867.0
Deduct 6909 from 7797 and we're left with 888.
Since there are no more digits in the dividend, we add a zero to the remainder making it 8880, and continue the process.

Going ahead to step 8:
987 can be fit into 8880 8 times, resulting in a remainder of 984.
Use 8 as the next digit of our solution. 
Result so far: 5867.8
Subtract 7896 from 8880 to get 984.
Since there are no more digits in the dividend, we add a zero to the remainder making it 9840, and continue the process.

Advancing to step 9:
The number 987 fits into 9840 9 times, leaving a remainder of 957.
The next digit of our result is 9. 
Result so far: 5867.89
The remainder is 957 after subtracting 8883 from 9840.
Since there are no more digits in the dividend, we add a zero to the remainder making it 9570, and continue the process.

Advancing to step 10:
When dividing 9570 by 987, we get 9 with a remainder of 687.
Put 9 as the next digit of the answer. 
Result so far: 5867.899
If we take 8883 away from 9570, we end up with 687.
Since there are no more digits in the dividend, we add a zero to the remainder making it 6870, and continue the process.

In conclusion, the division gives 5867.899 with a balance of 0.0687.