We look at the division of 87587 by 6 
The aim is to understand the frequency of 6 in 87587.

Step 1:
When dividing 8 by 6, we get 1 with a remainder of 2.
The number 1 becomes the next digit in our result. 
Result so far: 1.0
Subtracting 6 from 8 leaves us with 2.
Grab the next digit (7) from the dividend, add it to 2, then carry on: 27 / 6

Step 2:
27 divided by 6 is 4 with a remainder of 3.
The next digit of our result is 4. 
Result so far: 14.0
Deduct 24 from 27 and we're left with 3.
Append the next digit (5) from the dividend to 3 and continue with: 35 / 6

Going ahead to step 3:
The number 6 fits into 35 5 times, leaving a remainder of 5.
Put 5 as the next digit of the answer. 
Result so far: 145.0
Subtract 30 from 35 to get 5.
Include the next digit (8) from the dividend after 5, then repeat: 58 / 6

Advancing to step 4:
If we divide 58 by 6, we get 9 and a remainder of 4.
The number 9 becomes the next digit in our result. 
Result so far: 1459.0
The remainder is 4 after subtracting 54 from 58.
Append the next digit (7) from the dividend to 4 and continue with: 47 / 6

Going ahead to step 5:
If we divide 47 by 6, we get 7 and a remainder of 5.
Put 7 as the next digit of the answer. 
Result so far: 14597.0
Deduct 42 from 47 and we're left with 5.
Since there are no more digits in the dividend, we add a zero to the remainder making it 50, and continue the process.

Going ahead to step 6:
6 can be fit into 50 8 times, resulting in a remainder of 2.
Use 8 as the next digit of our solution. 
Result so far: 14597.8
Deduct 48 from 50 and we're left with 2.
Since there are no more digits in the dividend, we add a zero to the remainder making it 20, and continue the process.

Advancing to step 7:
If we divide 20 by 6, we get 3 and a remainder of 2.
Use 3 as the next digit of our solution. 
Result so far: 14597.83
Subtracting 18 from 20 leaves us with 2.
Since there are no more digits in the dividend, we add a zero to the remainder making it 20, and continue the process.

Going ahead to step 8:
6 can be fit into 20 3 times, resulting in a remainder of 2.
Use 3 as the next digit of our solution. 
Result so far: 14597.833
If we subtract 18 from 20, we get 2.
Since there are no more digits in the dividend, we add a zero to the remainder making it 20, and continue the process.

The quotient of the division is 14597.833, and the remainder is 0.0002.