Let's divide 161944 by 3
The aim is to understand the frequency of 3 in 161944.

On to step 1:
The number 3 fits into 1 0 times, leaving a remainder of 1.
Put 0 as the next digit of the answer. 
Result so far: 0.0
If we take 0 away from 1, we end up with 1.
Grab the next digit (6) from the dividend, add it to 1, then carry on: 16 / 3

Step 2:
If we divide 16 by 3, we get 5 and a remainder of 1.
The next digit of our result is 5. 
Result so far: 5.0
Subtracting 15 from 16 leaves us with 1.
Fetch the next digit (1) from the dividend, attach it to 1 and continue: 11 / 3

Let's proceed to step 3:
3 goes into 11 3 times with a remainder of 2.
Record the quotient 3 as the next digit in the result. 
Result so far: 53.0
The remainder is 2 after subtracting 9 from 11.
Append the next digit (9) from the dividend to 2 and continue with: 29 / 3

On to step 4:
3 can be fit into 29 9 times, resulting in a remainder of 2.
Record the quotient 9 as the next digit in the result. 
Result so far: 539.0
The remainder is 2 after subtracting 27 from 29.
Take the next digit (4) from the dividend and append it to 2, then repeat: 24 / 3

Advancing to step 5:
When dividing 24 by 3, we get 8 with a remainder of 0.
Write down 8 as next digit of the result. 
Result so far: 5398.0
If we take 24 away from 24, we end up with 0.
Take the next digit (4) from the dividend and append it to 0, then repeat: 4 / 3

Step 6:
The number 3 fits into 4 1 times, leaving a remainder of 1.
Write down 1 as next digit of the result. 
Result so far: 53981.0
If we subtract 3 from 4, 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.

Let's proceed to step 7:
If we divide 10 by 3, we get 3 and a remainder of 1.
Use 3 as the next digit of our solution. 
Result so far: 53981.3
Deduct 9 from 10 and we're left 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.

Step 8:
10 divided by 3 is 3 with a remainder of 1.
Write down 3 as next digit of the result. 
Result so far: 53981.33
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.

Our division results in 53981.33 with a remaining 0.001.