We look at the division of 163774 by 3 
The aim is to understand the frequency of 3 in 163774.

Advancing to step 1:
If we divide 1 by 3, we get 0 and a remainder of 1.
Use 0 as the next digit of our solution. 
Result so far: 0.0
Subtracting 0 from 1 leaves us with 1.
Take the next digit (6) from the dividend and append it to 1, then repeat: 16 / 3

Advancing to step 2:
If we divide 16 by 3, we get 5 and a remainder of 1.
Put 5 as the next digit of the answer. 
Result so far: 5.0
If we take 15 away from 16, we end up with 1.
Include the next digit (3) from the dividend after 1, then repeat: 13 / 3

Step 3:
3 can be fit into 13 4 times, resulting in a remainder of 1.
Write down 4 as next digit of the result. 
Result so far: 54.0
If we take 12 away from 13, we end up with 1.
Fetch the next digit (7) from the dividend, attach it to 1 and continue: 17 / 3

Step 4:
17 divided by 3 is 5 with a remainder of 2.
Write down 5 as next digit of the result. 
Result so far: 545.0
Subtract 15 from 17 to get 2.
Append the next digit (7) from the dividend to 2 and continue with: 27 / 3

On to step 5:
If we divide 27 by 3, we get 9 and a remainder of 0.
Write down 9 as next digit of the result. 
Result so far: 5459.0
Subtracting 27 from 27 leaves us with 0.
Include the next digit (4) from the dividend after 0, then repeat: 4 / 3

Step 6:
3 can be fit into 4 1 times, resulting in a remainder of 1.
The next digit of our result is 1. 
Result so far: 54591.0
Subtract 3 from 4 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.

Moving on to step 7:
10 divided by 3 is 3 with a remainder of 1.
Record the quotient 3 as the next digit in the result. 
Result so far: 54591.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.

Moving on to step 8:
When dividing 10 by 3, we get 3 with a remainder of 1.
Put 3 as the next digit of the answer. 
Result so far: 54591.33
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.

The final outcome is 54591.33, with a leftover of 0.001.