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

Step 1:
9 divided by 3 is 3 with a remainder of 0.
Put 3 as the next digit of the answer. 
Result so far: 3.0
If we subtract 9 from 9, we get 0.
Include the next digit (9) from the dividend after 0, then repeat: 9 / 3

On to step 2:
The number 3 fits into 9 3 times, leaving a remainder of 0.
Record the quotient 3 as the next digit in the result. 
Result so far: 33.0
The remainder is 0 after subtracting 9 from 9.
Grab the next digit (8) from the dividend, add it to 0, then carry on: 8 / 3

Step 3:
8 divided by 3 is 2 with a remainder of 2.
The next digit of our result is 2. 
Result so far: 332.0
The remainder is 2 after subtracting 6 from 8.
Take the next digit (1) from the dividend and append it to 2, then repeat: 21 / 3

Let's proceed to step 4:
If we divide 21 by 3, we get 7 and a remainder of 0.
Use 7 as the next digit of our solution. 
Result so far: 3327.0
If we subtract 21 from 21, we get 0.
Append the next digit (8) from the dividend to 0 and continue with: 8 / 3

Step 5:
8 divided by 3 is 2 with a remainder of 2.
Put 2 as the next digit of the answer. 
Result so far: 33272.0
If we take 6 away from 8, we end up with 2.
Grab the next digit (5) from the dividend, add it to 2, then carry on: 25 / 3

Advancing to step 6:
3 can be fit into 25 8 times, resulting in a remainder of 1.
Write down 8 as next digit of the result. 
Result so far: 332728.0
If we take 24 away from 25, we end up with 1.
Since there are no more digits in the dividend, we add a zero to the remainder making it 10, and continue the process.

On to step 7:
3 can be fit into 10 3 times, resulting in a remainder of 1.
Write down 3 as next digit of the result. 
Result so far: 332728.3
The remainder is 1 after subtracting 9 from 10.
Since there are no more digits in the dividend, we add a zero to the remainder making it 10, and continue the process.

Advancing 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: 332728.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.

The quotient of the division is 332728.33, and the remainder is 0.001.