We look at the division of 400511 by 16 
The aim is to understand the frequency of 16 in 400511.

Step 1:
16 can be fit into 4 0 times, resulting in a remainder of 4.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
The remainder is 4 after subtracting 0 from 4.
Take the next digit (0) from the dividend and append it to 4, then repeat: 40 / 16

Advancing to step 2:
16 goes into 40 2 times with a remainder of 8.
Write down 2 as next digit of the result. 
Result so far: 2.0
If we take 32 away from 40, we end up with 8.
Fetch the next digit (0) from the dividend, attach it to 8 and continue: 80 / 16

Moving on to step 3:
16 goes into 80 5 times with a remainder of 0.
Record the quotient 5 as the next digit in the result. 
Result so far: 25.0
If we subtract 80 from 80, we get 0.
Bring next digit (5) of the dividend behind the 0 and repeat the process: 5 / 16

Step 4:
16 can be fit into 5 0 times, resulting in a remainder of 5.
Put 0 as the next digit of the answer. 
Result so far: 250.0
If we subtract 0 from 5, we get 5.
Bring next digit (1) of the dividend behind the 5 and repeat the process: 51 / 16

On to step 5:
The number 16 fits into 51 3 times, leaving a remainder of 3.
The number 3 becomes the next digit in our result. 
Result so far: 2503.0
The remainder is 3 after subtracting 48 from 51.
Append the next digit (1) from the dividend to 3 and continue with: 31 / 16

Moving on to step 6:
The number 16 fits into 31 1 times, leaving a remainder of 15.
Record the quotient 1 as the next digit in the result. 
Result so far: 25031.0
Subtract 16 from 31 to get 15.
Since there are no more digits in the dividend, we add a zero to the remainder making it 150, and continue the process.

Step 7:
The number 16 fits into 150 9 times, leaving a remainder of 6.
Put 9 as the next digit of the answer. 
Result so far: 25031.9
If we take 144 away from 150, we end up with 6.
Since there are no more digits in the dividend, we add a zero to the remainder making it 60, and continue the process.

Moving on to step 8:
The number 16 fits into 60 3 times, leaving a remainder of 12.
Write down 3 as next digit of the result. 
Result so far: 25031.93
Subtract 48 from 60 to 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 9:
The number 16 fits into 120 7 times, leaving a remainder of 8.
Put 7 as the next digit of the answer. 
Result so far: 25031.937
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 10:
80 divided by 16 is 5 with a remainder of 0.
Write down 5 as next digit of the result. 
Result so far: 25031.9375
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.

Moving on to step 11:
0 divided by 16 is 0 with a remainder of 0.
The next digit of our result is 0. 
Result so far: 25031.9375
The remainder is 0 after subtracting 0 from 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:
The number 16 fits into 0 0 times, leaving a remainder of 0.
Write down 0 as next digit of the result. 
Result so far: 25031.9375
Subtracting 0 from 0 leaves us 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 25031.9375 with a remaining 0.0.