We divide 318175 by 3
The aim is to understand the frequency of 3 in 318175.

Advancing to step 1:
When dividing 3 by 3, we get 1 with a remainder of 0.
Write down 1 as next digit of the result. 
Result so far: 1.0
If we take 3 away from 3, we end up with 0.
Append the next digit (1) from the dividend to 0 and continue with: 1 / 3

On to step 2:
If we divide 1 by 3, we get 0 and a remainder of 1.
Write down 0 as next digit of the result. 
Result so far: 10.0
If we take 0 away from 1, we end up with 1.
Bring next digit (8) of the dividend behind the 1 and repeat the process: 18 / 3

On to step 3:
3 goes into 18 6 times with a remainder of 0.
The next digit of our result is 6. 
Result so far: 106.0
If we take 18 away from 18, we end up with 0.
Bring next digit (1) of the dividend behind the 0 and repeat the process: 1 / 3

Let's proceed to step 4:
3 can be fit into 1 0 times, resulting in a remainder of 1.
Put 0 as the next digit of the answer. 
Result so far: 1060.0
Subtracting 0 from 1 leaves us with 1.
Grab the next digit (7) from the dividend, add it to 1, then carry on: 17 / 3

On to step 5:
The number 3 fits into 17 5 times, leaving a remainder of 2.
Put 5 as the next digit of the answer. 
Result so far: 10605.0
Subtract 15 from 17 to get 2.
Append the next digit (5) from the dividend to 2 and continue with: 25 / 3

Let's proceed to step 6:
The number 3 fits into 25 8 times, leaving a remainder of 1.
The next digit of our result is 8. 
Result so far: 106058.0
If we subtract 24 from 25, we get 1.
Since there are no more digits in the dividend, we add a zero to the remainder making it 10, and continue the process.

Step 7:
The number 3 fits into 10 3 times, leaving a remainder of 1.
Put 3 as the next digit of the answer. 
Result so far: 106058.3
Subtract 9 from 10 to get 1.
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 8:
3 can be fit into 10 3 times, resulting in a remainder of 1.
The next digit of our result is 3. 
Result so far: 106058.33
If we subtract 9 from 10, we get 1.
Since there are no more digits in the dividend, we add a zero to the remainder making it 10, and continue the process.

After the division, we end up with 106058.33 and a remainder of 0.001.