We look at the division of 2216017 by 587 
The aim is to understand the frequency of 587 in 2216017.

Going ahead to step 1:
587 goes into 2 0 times with a remainder of 2.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
Deduct 0 from 2 and we're left with 2.
Take the next digit (2) from the dividend and append it to 2, then repeat: 22 / 587

On to step 2:
587 can be fit into 22 0 times, resulting in a remainder of 22.
The next digit of our result is 0. 
Result so far: 0.0
If we subtract 0 from 22, we get 22.
Include the next digit (1) from the dividend after 22, then repeat: 221 / 587

Step 3:
When dividing 221 by 587, we get 0 with a remainder of 221.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
If we subtract 0 from 221, we get 221.
Include the next digit (6) from the dividend after 221, then repeat: 2216 / 587

Let's proceed to step 4:
If we divide 2216 by 587, we get 3 and a remainder of 455.
Put 3 as the next digit of the answer. 
Result so far: 3.0
Deduct 1761 from 2216 and we're left with 455.
Bring next digit (0) of the dividend behind the 455 and repeat the process: 4550 / 587

Advancing to step 5:
587 goes into 4550 7 times with a remainder of 441.
Write down 7 as next digit of the result. 
Result so far: 37.0
The remainder is 441 after subtracting 4109 from 4550.
Include the next digit (1) from the dividend after 441, then repeat: 4411 / 587

Going ahead to step 6:
If we divide 4411 by 587, we get 7 and a remainder of 302.
The next digit of our result is 7. 
Result so far: 377.0
Subtracting 4109 from 4411 leaves us with 302.
Append the next digit (7) from the dividend to 302 and continue with: 3027 / 587

On to step 7:
If we divide 3027 by 587, we get 5 and a remainder of 92.
Put 5 as the next digit of the answer. 
Result so far: 3775.0
Subtract 2935 from 3027 to get 92.
Since there are no more digits in the dividend, we add a zero to the remainder making it 920, and continue the process.

Advancing to step 8:
587 goes into 920 1 times with a remainder of 333.
Record the quotient 1 as the next digit in the result. 
Result so far: 3775.1
If we take 587 away from 920, we end up with 333.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3330, and continue the process.

Let's proceed to step 9:
The number 587 fits into 3330 5 times, leaving a remainder of 395.
Write down 5 as next digit of the result. 
Result so far: 3775.15
Subtract 2935 from 3330 to get 395.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3950, and continue the process.

Let's proceed to step 10:
If we divide 3950 by 587, we get 6 and a remainder of 428.
Write down 6 as next digit of the result. 
Result so far: 3775.156
Deduct 3522 from 3950 and we're left with 428.
Since there are no more digits in the dividend, we add a zero to the remainder making it 4280, and continue the process.

Going ahead to step 11:
587 goes into 4280 7 times with a remainder of 171.
The next digit of our result is 7. 
Result so far: 3775.1567
If we subtract 4109 from 4280, we get 171.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1710, and continue the process.

Going ahead to step 12:
If we divide 1710 by 587, we get 2 and a remainder of 536.
Put 2 as the next digit of the answer. 
Result so far: 3775.15672
Deduct 1174 from 1710 and we're left with 536.
Since there are no more digits in the dividend, we add a zero to the remainder making it 5360, and continue the process.

Moving on to step 13:
587 can be fit into 5360 9 times, resulting in a remainder of 77.
Write down 9 as next digit of the result. 
Result so far: 3775.156729
If we take 5283 away from 5360, we end up with 77.
Since there are no more digits in the dividend, we add a zero to the remainder making it 770, and continue the process.

Moving on to step 14:
587 goes into 770 1 times with a remainder of 183.
Use 1 as the next digit of our solution. 
Result so far: 3775.1567291
The remainder is 183 after subtracting 587 from 770.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1830, and continue the process.

Let's proceed to step 15:
If we divide 1830 by 587, we get 3 and a remainder of 69.
The number 3 becomes the next digit in our result. 
Result so far: 3775.15672913
If we take 1761 away from 1830, we end up with 69.
Since there are no more digits in the dividend, we add a zero to the remainder making it 690, and continue the process.

The final result is 3775.15672913 with a remainder of 6.9e-08.