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

Let's proceed to step 1:
6 can be fit into 5 0 times, resulting in a remainder of 5.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
Deduct 0 from 5 and we're left with 5.
Bring next digit (1) of the dividend behind the 5 and repeat the process: 51 / 6

Let's proceed to step 2:
51 divided by 6 is 8 with a remainder of 3.
Write down 8 as next digit of the result. 
Result so far: 8.0
If we subtract 48 from 51, we get 3.
Take the next digit (8) from the dividend and append it to 3, then repeat: 38 / 6

Going ahead to step 3:
6 can be fit into 38 6 times, resulting in a remainder of 2.
Record the quotient 6 as the next digit in the result. 
Result so far: 86.0
The remainder is 2 after subtracting 36 from 38.
Append the next digit (7) from the dividend to 2 and continue with: 27 / 6

Going ahead to step 4:
If we divide 27 by 6, we get 4 and a remainder of 3.
Write down 4 as next digit of the result. 
Result so far: 864.0
Deduct 24 from 27 and we're left with 3.
Grab the next digit (8) from the dividend, add it to 3, then carry on: 38 / 6

On to step 5:
If we divide 38 by 6, we get 6 and a remainder of 2.
Record the quotient 6 as the next digit in the result. 
Result so far: 8646.0
Subtracting 36 from 38 leaves us with 2.
Grab the next digit (2) from the dividend, add it to 2, then carry on: 22 / 6

Going ahead to step 6:
22 divided by 6 is 3 with a remainder of 4.
Record the quotient 3 as the next digit in the result. 
Result so far: 86463.0
The remainder is 4 after subtracting 18 from 22.
Since there are no more digits in the dividend, we add a zero to the remainder making it 40, and continue the process.

Moving on to step 7:
6 can be fit into 40 6 times, resulting in a remainder of 4.
Write down 6 as next digit of the result. 
Result so far: 86463.6
Deduct 36 from 40 and we're left with 4.
Since there are no more digits in the dividend, we add a zero to the remainder making it 40, and continue the process.

On to step 8:
40 divided by 6 is 6 with a remainder of 4.
Write down 6 as next digit of the result. 
Result so far: 86463.66
If we take 36 away from 40, we end up with 4.
Since there are no more digits in the dividend, we add a zero to the remainder making it 40, and continue the process.

The quotient of the division is 86463.66, and the remainder is 0.004.