Let's divide 5230505 by 987
The aim is to understand the frequency of 987 in 5230505.

On to step 1:
987 can be fit into 5 0 times, resulting in a remainder of 5.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
If we take 0 away from 5, we end up with 5.
Fetch the next digit (2) from the dividend, attach it to 5 and continue: 52 / 987

Step 2:
987 goes into 52 0 times with a remainder of 52.
Write down 0 as next digit of the result. 
Result so far: 0.0
If we take 0 away from 52, we end up with 52.
Bring next digit (3) of the dividend behind the 52 and repeat the process: 523 / 987

On to step 3:
987 can be fit into 523 0 times, resulting in a remainder of 523.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
Subtract 0 from 523 to get 523.
Bring next digit (0) of the dividend behind the 523 and repeat the process: 5230 / 987

On to step 4:
5230 divided by 987 is 5 with a remainder of 295.
Use 5 as the next digit of our solution. 
Result so far: 5.0
If we take 4935 away from 5230, we end up with 295.
Bring next digit (5) of the dividend behind the 295 and repeat the process: 2955 / 987

Step 5:
The number 987 fits into 2955 2 times, leaving a remainder of 981.
The number 2 becomes the next digit in our result. 
Result so far: 52.0
If we take 1974 away from 2955, we end up with 981.
Append the next digit (0) from the dividend to 981 and continue with: 9810 / 987

Going ahead to step 6:
9810 divided by 987 is 9 with a remainder of 927.
Use 9 as the next digit of our solution. 
Result so far: 529.0
Subtracting 8883 from 9810 leaves us with 927.
Fetch the next digit (5) from the dividend, attach it to 927 and continue: 9275 / 987

Moving on to step 7:
If we divide 9275 by 987, we get 9 and a remainder of 392.
Use 9 as the next digit of our solution. 
Result so far: 5299.0
If we take 8883 away from 9275, we end up with 392.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3920, and continue the process.

Step 8:
987 goes into 3920 3 times with a remainder of 959.
Write down 3 as next digit of the result. 
Result so far: 5299.3
The remainder is 959 after subtracting 2961 from 3920.
Since there are no more digits in the dividend, we add a zero to the remainder making it 9590, and continue the process.

Let's proceed to step 9:
9590 divided by 987 is 9 with a remainder of 707.
The next digit of our result is 9. 
Result so far: 5299.39
If we take 8883 away from 9590, we end up with 707.
Since there are no more digits in the dividend, we add a zero to the remainder making it 7070, and continue the process.

Step 10:
7070 divided by 987 is 7 with a remainder of 161.
Use 7 as the next digit of our solution. 
Result so far: 5299.397
Subtract 6909 from 7070 to get 161.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1610, and continue the process.

Going ahead to step 11:
When dividing 1610 by 987, we get 1 with a remainder of 623.
Write down 1 as next digit of the result. 
Result so far: 5299.3971
Deduct 987 from 1610 and we're left with 623.
Since there are no more digits in the dividend, we add a zero to the remainder making it 6230, and continue the process.

Advancing to step 12:
6230 divided by 987 is 6 with a remainder of 308.
Put 6 as the next digit of the answer. 
Result so far: 5299.39716
Deduct 5922 from 6230 and we're left with 308.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3080, and continue the process.

Advancing to step 13:
3080 divided by 987 is 3 with a remainder of 119.
Use 3 as the next digit of our solution. 
Result so far: 5299.397163
Subtracting 2961 from 3080 leaves us with 119.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1190, and continue the process.

Moving on to step 14:
If we divide 1190 by 987, we get 1 and a remainder of 203.
Write down 1 as next digit of the result. 
Result so far: 5299.3971631
Subtracting 987 from 1190 leaves us with 203.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2030, and continue the process.

Moving on to step 15:
When dividing 2030 by 987, we get 2 with a remainder of 56.
Put 2 as the next digit of the answer. 
Result so far: 5299.39716312
Subtract 1974 from 2030 to get 56.
Since there are no more digits in the dividend, we add a zero to the remainder making it 560, and continue the process.

Our division results in 5299.39716312 with a remaining 5.6e-08.