We divide 509087 by 6
The aim is to understand the frequency of 6 in 509087.

Advancing to step 1:
6 goes into 5 0 times with a remainder of 5.
Put 0 as the next digit of the answer. 
Result so far: 0.0
If we take 0 away from 5, we end up with 5.
Fetch the next digit (0) from the dividend, attach it to 5 and continue: 50 / 6

Advancing to step 2:
6 can be fit into 50 8 times, resulting in a remainder of 2.
Write down 8 as next digit of the result. 
Result so far: 8.0
Subtracting 48 from 50 leaves us with 2.
Fetch the next digit (9) from the dividend, attach it to 2 and continue: 29 / 6

Advancing to step 3:
If we divide 29 by 6, we get 4 and a remainder of 5.
Record the quotient 4 as the next digit in the result. 
Result so far: 84.0
Subtracting 24 from 29 leaves us with 5.
Append the next digit (0) from the dividend to 5 and continue with: 50 / 6

Moving on to step 4:
When dividing 50 by 6, we get 8 with a remainder of 2.
Record the quotient 8 as the next digit in the result. 
Result so far: 848.0
If we take 48 away from 50, we end up with 2.
Take the next digit (8) from the dividend and append it to 2, then repeat: 28 / 6

Let's proceed to step 5:
If we divide 28 by 6, we get 4 and a remainder of 4.
Use 4 as the next digit of our solution. 
Result so far: 8484.0
Deduct 24 from 28 and we're left with 4.
Append the next digit (7) from the dividend to 4 and continue with: 47 / 6

Step 6:
When dividing 47 by 6, we get 7 with a remainder of 5.
The number 7 becomes the next digit in our result. 
Result so far: 84847.0
The remainder is 5 after subtracting 42 from 47.
Since there are no more digits in the dividend, we add a zero to the remainder making it 50, and continue the process.

Step 7:
6 goes into 50 8 times with a remainder of 2.
Put 8 as the next digit of the answer. 
Result so far: 84847.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.

Going ahead to step 8:
6 goes into 20 3 times with a remainder of 2.
Put 3 as the next digit of the answer. 
Result so far: 84847.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.

Let's proceed to step 9:
6 can be fit into 20 3 times, resulting in a remainder of 2.
Put 3 as the next digit of the answer. 
Result so far: 84847.833
The remainder is 2 after subtracting 18 from 20.
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 84847.833, and the remainder is 0.0002.