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

Step 1:
3 goes into 3 1 times with a remainder of 0.
Record the quotient 1 as the next digit in the result. 
Result so far: 1.0
Subtract 3 from 3 to get 0.
Append the next digit (0) from the dividend to 0 and continue with: 0 / 3

Going ahead to step 2:
3 goes into 0 0 times with a remainder of 0.
Use 0 as the next digit of our solution. 
Result so far: 10.0
Subtract 0 from 0 to get 0.
Take the next digit (4) from the dividend and append it to 0, then repeat: 4 / 3

Step 3:
3 goes into 4 1 times with a remainder of 1.
Use 1 as the next digit of our solution. 
Result so far: 101.0
Subtracting 3 from 4 leaves us with 1.
Bring next digit (1) of the dividend behind the 1 and repeat the process: 11 / 3

Let's proceed to step 4:
3 goes into 11 3 times with a remainder of 2.
Put 3 as the next digit of the answer. 
Result so far: 1013.0
The remainder is 2 after subtracting 9 from 11.
Append the next digit (4) from the dividend to 2 and continue with: 24 / 3

Let's proceed to step 5:
If we divide 24 by 3, we get 8 and a remainder of 0.
The number 8 becomes the next digit in our result. 
Result so far: 10138.0
Subtracting 24 from 24 leaves us with 0.
Take the next digit (0) from the dividend and append it to 0, then repeat: 0 / 3

Step 6:
If we divide 0 by 3, we get 0 and a remainder of 0.
Write down 0 as next digit of the result. 
Result so far: 101380.0
Subtract 0 from 0 to get 0.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

Step 7:
3 goes into 0 0 times with a remainder of 0.
The number 0 becomes the next digit in our result. 
Result so far: 101380.0
If we take 0 away from 0, we end up with 0.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

On to step 8:
3 goes into 0 0 times with a remainder of 0.
Put 0 as the next digit of the answer. 
Result so far: 101380.0
Deduct 0 from 0 and we're left with 0.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

Our division results in 101380.0 with a remaining 0.0.