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

Moving on to step 1:
If we divide 5 by 6, we get 0 and a remainder of 5.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
Subtracting 0 from 5 leaves us with 5.
Take the next digit (4) from the dividend and append it to 5, then repeat: 54 / 6

Step 2:
6 goes into 54 9 times with a remainder of 0.
The number 9 becomes the next digit in our result. 
Result so far: 9.0
If we subtract 54 from 54, we get 0.
Include the next digit (2) from the dividend after 0, then repeat: 2 / 6

Moving on to step 3:
The number 6 fits into 2 0 times, leaving a remainder of 2.
The number 0 becomes the next digit in our result. 
Result so far: 90.0
Subtracting 0 from 2 leaves us with 2.
Grab the next digit (3) from the dividend, add it to 2, then carry on: 23 / 6

On to step 4:
When dividing 23 by 6, we get 3 with a remainder of 5.
Record the quotient 3 as the next digit in the result. 
Result so far: 903.0
If we subtract 18 from 23, we get 5.
Append the next digit (9) from the dividend to 5 and continue with: 59 / 6

Moving on to step 5:
59 divided by 6 is 9 with a remainder of 5.
Put 9 as the next digit of the answer. 
Result so far: 9039.0
If we subtract 54 from 59, we get 5.
Fetch the next digit (1) from the dividend, attach it to 5 and continue: 51 / 6

Let's proceed to step 6:
6 can be fit into 51 8 times, resulting in a remainder of 3.
Write down 8 as next digit of the result. 
Result so far: 90398.0
If we subtract 48 from 51, we get 3.
Since there are no more digits in the dividend, we add a zero to the remainder making it 30, and continue the process.

Let's proceed to step 7:
6 can be fit into 30 5 times, resulting in a remainder of 0.
Write down 5 as next digit of the result. 
Result so far: 90398.5
Subtracting 30 from 30 leaves us with 0.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

Let's proceed to step 8:
6 goes into 0 0 times with a remainder of 0.
The number 0 becomes the next digit in our result. 
Result so far: 90398.5
Subtract 0 from 0 to get 0.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

Moving on to step 9:
The number 6 fits into 0 0 times, leaving a remainder of 0.
The number 0 becomes the next digit in our result. 
Result so far: 90398.5
If we take 0 away from 0, we end up with 0.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

The quotient of the division is 90398.5, and the remainder is 0.0.