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

Moving on to step 1:
6 can be fit into 5 0 times, resulting in a remainder of 5.
Use 0 as the next digit of our solution. 
Result so far: 0.0
The remainder is 5 after subtracting 0 from 5.
Grab the next digit (0) from the dividend, add it to 5, then carry on: 50 / 6

Advancing to step 2:
When dividing 50 by 6, we get 8 with a remainder of 2.
Use 8 as the next digit of our solution. 
Result so far: 8.0
Deduct 48 from 50 and we're left with 2.
Append the next digit (4) from the dividend to 2 and continue with: 24 / 6

Let's proceed to step 3:
6 can be fit into 24 4 times, resulting in a remainder of 0.
Write down 4 as next digit of the result. 
Result so far: 84.0
Deduct 24 from 24 and we're left with 0.
Include the next digit (1) from the dividend after 0, then repeat: 1 / 6

Going ahead to step 4:
The number 6 fits into 1 0 times, leaving a remainder of 1.
Record the quotient 0 as the next digit in the result. 
Result so far: 840.0
Deduct 0 from 1 and we're left with 1.
Grab the next digit (8) from the dividend, add it to 1, then carry on: 18 / 6

Going ahead to step 5:
18 divided by 6 is 3 with a remainder of 0.
The number 3 becomes the next digit in our result. 
Result so far: 8403.0
If we take 18 away from 18, we end up with 0.
Bring next digit (2) of the dividend behind the 0 and repeat the process: 2 / 6

Let's proceed to step 6:
When dividing 2 by 6, we get 0 with a remainder of 2.
The next digit of our result is 0. 
Result so far: 84030.0
The remainder is 2 after subtracting 0 from 2.
Since there are no more digits in the dividend, we add a zero to the remainder making it 20, and continue the process.

Moving on to step 7:
6 can be fit into 20 3 times, resulting in a remainder of 2.
Record the quotient 3 as the next digit in the result. 
Result so far: 84030.3
If we take 18 away from 20, we end up 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:
20 divided by 6 is 3 with a remainder of 2.
The number 3 becomes the next digit in our result. 
Result so far: 84030.33
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.

After the division, we end up with 84030.33 and a remainder of 0.002.