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

On to step 1:
6 goes into 5 0 times with a remainder of 5.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
The remainder is 5 after subtracting 0 from 5.
Grab the next digit (4) from the dividend, add it to 5, then carry on: 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.
Grab the next digit (2) from the dividend, add it to 0, then carry on: 2 / 6

Going ahead to step 3:
2 divided by 6 is 0 with a remainder of 2.
The next digit of our result is 0. 
Result so far: 90.0
Subtracting 0 from 2 leaves us with 2.
Bring next digit (0) of the dividend behind the 2 and repeat the process: 20 / 6

Step 4:
20 divided by 6 is 3 with a remainder of 2.
Record the quotient 3 as the next digit in the result. 
Result so far: 903.0
Deduct 18 from 20 and we're left with 2.
Bring next digit (4) of the dividend behind the 2 and repeat the process: 24 / 6

Let's proceed to step 5:
If we divide 24 by 6, we get 4 and a remainder of 0.
The next digit of our result is 4. 
Result so far: 9034.0
If we take 24 away from 24, we end up with 0.
Bring next digit (3) of the dividend behind the 0 and repeat the process: 3 / 6

Moving on to step 6:
3 divided by 6 is 0 with a remainder of 3.
Use 0 as the next digit of our solution. 
Result so far: 90340.0
The remainder is 3 after subtracting 0 from 3.
Since there are no more digits in the dividend, we add a zero to the remainder making it 30, and continue the process.

Advancing to step 7:
6 can be fit into 30 5 times, resulting in a remainder of 0.
The number 5 becomes the next digit in our result. 
Result so far: 90340.5
Subtract 30 from 30 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.

On to step 8:
If we divide 0 by 6, we get 0 and a remainder of 0.
Write down 0 as next digit of the result. 
Result so far: 90340.5
If we subtract 0 from 0, we 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.

Step 9:
0 divided by 6 is 0 with a remainder of 0.
Put 0 as the next digit of the answer. 
Result so far: 90340.5
Deduct 0 from 0 and we're left 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.

After the division, we end up with 90340.5 and a remainder of 0.0.