Let's divide 58765 by 6
The aim is to understand the frequency of 6 in 58765.

Let's proceed to step 1:
5 divided by 6 is 0 with a remainder of 5.
Use 0 as the next digit of our solution. 
Result so far: 0.0
If we take 0 away from 5, we end up with 5.
Append the next digit (8) from the dividend to 5 and continue with: 58 / 6

Going ahead to step 2:
When dividing 58 by 6, we get 9 with a remainder of 4.
Record the quotient 9 as the next digit in the result. 
Result so far: 9.0
If we take 54 away from 58, we end up with 4.
Grab the next digit (7) from the dividend, add it to 4, then carry on: 47 / 6

Advancing to step 3:
6 goes into 47 7 times with a remainder of 5.
The number 7 becomes the next digit in our result. 
Result so far: 97.0
If we subtract 42 from 47, we get 5.
Grab the next digit (6) from the dividend, add it to 5, then carry on: 56 / 6

Step 4:
6 can be fit into 56 9 times, resulting in a remainder of 2.
Put 9 as the next digit of the answer. 
Result so far: 979.0
If we subtract 54 from 56, we get 2.
Append the next digit (5) from the dividend to 2 and continue with: 25 / 6

Moving on to step 5:
6 can be fit into 25 4 times, resulting in a remainder of 1.
Write down 4 as next digit of the result. 
Result so far: 9794.0
The remainder is 1 after subtracting 24 from 25.
Since there are no more digits in the dividend, we add a zero to the remainder making it 10, and continue the process.

Let's proceed to step 6:
If we divide 10 by 6, we get 1 and a remainder of 4.
Put 1 as the next digit of the answer. 
Result so far: 9794.1
Subtracting 6 from 10 leaves us 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.

Advancing to step 7:
When dividing 40 by 6, we get 6 with a remainder of 4.
The next digit of our result is 6. 
Result so far: 9794.16
Subtract 36 from 40 to get 4.
Since there are no more digits in the dividend, we add a zero to the remainder making it 40, and continue the process.

Let's proceed to step 8:
40 divided by 6 is 6 with a remainder of 4.
The number 6 becomes the next digit in our result. 
Result so far: 9794.166
The remainder is 4 after subtracting 36 from 40.
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 9794.166, and the remainder is 0.0004.