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

Step 1:
16 goes into 1 0 times with a remainder of 1.
Put 0 as the next digit of the answer. 
Result so far: 0.0
Deduct 0 from 1 and we're left with 1.
Fetch the next digit (6) from the dividend, attach it to 1 and continue: 16 / 16

Going ahead to step 2:
16 can be fit into 16 1 times, resulting in a remainder of 0.
The next digit of our result is 1. 
Result so far: 1.0
If we subtract 16 from 16, we get 0.
Grab the next digit (5) from the dividend, add it to 0, then carry on: 5 / 16

Going ahead to step 3:
When dividing 5 by 16, we get 0 with a remainder of 5.
Use 0 as the next digit of our solution. 
Result so far: 10.0
Subtracting 0 from 5 leaves us with 5.
Fetch the next digit (1) from the dividend, attach it to 5 and continue: 51 / 16

Let's proceed to step 4:
16 can be fit into 51 3 times, resulting in a remainder of 3.
The number 3 becomes the next digit in our result. 
Result so far: 103.0
If we take 48 away from 51, we end up with 3.
Grab the next digit (6) from the dividend, add it to 3, then carry on: 36 / 16

Advancing to step 5:
16 can be fit into 36 2 times, resulting in a remainder of 4.
Write down 2 as next digit of the result. 
Result so far: 1032.0
Deduct 32 from 36 and we're left with 4.
Fetch the next digit (6) from the dividend, attach it to 4 and continue: 46 / 16

Advancing to step 6:
If we divide 46 by 16, we get 2 and a remainder of 14.
Write down 2 as next digit of the result. 
Result so far: 10322.0
The remainder is 14 after subtracting 32 from 46.
Since there are no more digits in the dividend, we add a zero to the remainder making it 140, and continue the process.

Step 7:
When dividing 140 by 16, we get 8 with a remainder of 12.
Put 8 as the next digit of the answer. 
Result so far: 10322.8
If we subtract 128 from 140, we get 12.
Since there are no more digits in the dividend, we add a zero to the remainder making it 120, and continue the process.

Advancing to step 8:
16 goes into 120 7 times with a remainder of 8.
Record the quotient 7 as the next digit in the result. 
Result so far: 10322.87
If we subtract 112 from 120, we get 8.
Since there are no more digits in the dividend, we add a zero to the remainder making it 80, and continue the process.

Step 9:
16 can be fit into 80 5 times, resulting in a remainder of 0.
Use 5 as the next digit of our solution. 
Result so far: 10322.875
The remainder is 0 after subtracting 80 from 80.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

Advancing to step 10:
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: 10322.875
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.

On to step 11:
If we divide 0 by 16, we get 0 and a remainder of 0.
The number 0 becomes the next digit in our result. 
Result so far: 10322.875
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.

Our division results in 10322.875 with a remaining 0.0.