Let's divide 398151 by 16
The aim is to understand the frequency of 16 in 398151.

Let's proceed to step 1:
If we divide 3 by 16, we get 0 and a remainder of 3.
Write down 0 as next digit of the result. 
Result so far: 0.0
Deduct 0 from 3 and we're left with 3.
Take the next digit (9) from the dividend and append it to 3, then repeat: 39 / 16

Step 2:
16 goes into 39 2 times with a remainder of 7.
Record the quotient 2 as the next digit in the result. 
Result so far: 2.0
Deduct 32 from 39 and we're left with 7.
Append the next digit (8) from the dividend to 7 and continue with: 78 / 16

On to step 3:
When dividing 78 by 16, we get 4 with a remainder of 14.
The number 4 becomes the next digit in our result. 
Result so far: 24.0
Subtracting 64 from 78 leaves us with 14.
Append the next digit (1) from the dividend to 14 and continue with: 141 / 16

Step 4:
16 can be fit into 141 8 times, resulting in a remainder of 13.
Put 8 as the next digit of the answer. 
Result so far: 248.0
Subtracting 128 from 141 leaves us with 13.
Grab the next digit (5) from the dividend, add it to 13, then carry on: 135 / 16

On to step 5:
The number 16 fits into 135 8 times, leaving a remainder of 7.
Put 8 as the next digit of the answer. 
Result so far: 2488.0
If we subtract 128 from 135, we get 7.
Bring next digit (1) of the dividend behind the 7 and repeat the process: 71 / 16

Let's proceed to step 6:
71 divided by 16 is 4 with a remainder of 7.
Record the quotient 4 as the next digit in the result. 
Result so far: 24884.0
Subtracting 64 from 71 leaves us with 7.
Since there are no more digits in the dividend, we add a zero to the remainder making it 70, and continue the process.

Let's proceed to step 7:
The number 16 fits into 70 4 times, leaving a remainder of 6.
Record the quotient 4 as the next digit in the result. 
Result so far: 24884.4
The remainder is 6 after subtracting 64 from 70.
Since there are no more digits in the dividend, we add a zero to the remainder making it 60, and continue the process.

Let's proceed to step 8:
If we divide 60 by 16, we get 3 and a remainder of 12.
The next digit of our result is 3. 
Result so far: 24884.43
If we take 48 away from 60, we end up with 12.
Since there are no more digits in the dividend, we add a zero to the remainder making it 120, and continue the process.

Step 9:
120 divided by 16 is 7 with a remainder of 8.
Write down 7 as next digit of the result. 
Result so far: 24884.437
If we take 112 away from 120, we end up with 8.
Since there are no more digits in the dividend, we add a zero to the remainder making it 80, and continue the process.

Let's proceed to step 10:
The number 16 fits into 80 5 times, leaving a remainder of 0.
The number 5 becomes the next digit in our result. 
Result so far: 24884.4375
If we take 80 away from 80, 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.

Let's proceed to step 11:
When dividing 0 by 16, we get 0 with a remainder of 0.
Put 0 as the next digit of the answer. 
Result so far: 24884.4375
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.

Step 12:
If we divide 0 by 16, we get 0 and a remainder of 0.
Use 0 as the next digit of our solution. 
Result so far: 24884.4375
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.

After the division, we end up with 24884.4375 and a remainder of 0.0.