We're dividing 585038 by 3 
The aim is to understand the frequency of 3 in 585038.

Moving on to step 1:
The number 3 fits into 5 1 times, leaving a remainder of 2.
Write down 1 as next digit of the result. 
Result so far: 1.0
If we take 3 away from 5, we end up with 2.
Include the next digit (8) from the dividend after 2, then repeat: 28 / 3

Going ahead to step 2:
3 can be fit into 28 9 times, resulting in a remainder of 1.
The number 9 becomes the next digit in our result. 
Result so far: 19.0
Deduct 27 from 28 and we're left with 1.
Take the next digit (5) from the dividend and append it to 1, then repeat: 15 / 3

Step 3:
15 divided by 3 is 5 with a remainder of 0.
Put 5 as the next digit of the answer. 
Result so far: 195.0
Subtract 15 from 15 to get 0.
Include the next digit (0) from the dividend after 0, then repeat: 0 / 3

Going ahead to step 4:
The number 3 fits into 0 0 times, leaving a remainder of 0.
Record the quotient 0 as the next digit in the result. 
Result so far: 1950.0
The remainder is 0 after subtracting 0 from 0.
Append the next digit (3) from the dividend to 0 and continue with: 3 / 3

Let's proceed to step 5:
3 goes into 3 1 times with a remainder of 0.
Put 1 as the next digit of the answer. 
Result so far: 19501.0
Deduct 3 from 3 and we're left with 0.
Bring next digit (8) of the dividend behind the 0 and repeat the process: 8 / 3

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

Step 7:
3 goes into 20 6 times with a remainder of 2.
The number 6 becomes the next digit in our result. 
Result so far: 195012.6
Deduct 18 from 20 and we're left 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.

Advancing to step 8:
3 goes into 20 6 times with a remainder of 2.
The next digit of our result is 6. 
Result so far: 195012.66
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.

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