We're dividing 317421 by 16 
The aim is to understand the frequency of 16 in 317421.

Let's proceed to step 1:
When dividing 3 by 16, we get 0 with a remainder of 3.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
If we take 0 away from 3, we end up with 3.
Append the next digit (1) from the dividend to 3 and continue with: 31 / 16

Moving on to step 2:
If we divide 31 by 16, we get 1 and a remainder of 15.
Write down 1 as next digit of the result. 
Result so far: 1.0
If we take 16 away from 31, we end up with 15.
Fetch the next digit (7) from the dividend, attach it to 15 and continue: 157 / 16

Going ahead to step 3:
16 can be fit into 157 9 times, resulting in a remainder of 13.
Write down 9 as next digit of the result. 
Result so far: 19.0
Subtract 144 from 157 to get 13.
Grab the next digit (4) from the dividend, add it to 13, then carry on: 134 / 16

Moving on to step 4:
If we divide 134 by 16, we get 8 and a remainder of 6.
The next digit of our result is 8. 
Result so far: 198.0
If we take 128 away from 134, we end up with 6.
Fetch the next digit (2) from the dividend, attach it to 6 and continue: 62 / 16

On to step 5:
62 divided by 16 is 3 with a remainder of 14.
Write down 3 as next digit of the result. 
Result so far: 1983.0
If we subtract 48 from 62, we get 14.
Append the next digit (1) from the dividend to 14 and continue with: 141 / 16

Going ahead to step 6:
16 goes into 141 8 times with a remainder of 13.
Record the quotient 8 as the next digit in the result. 
Result so far: 19838.0
The remainder is 13 after subtracting 128 from 141.
Since there are no more digits in the dividend, we add a zero to the remainder making it 130, and continue the process.

On to step 7:
If we divide 130 by 16, we get 8 and a remainder of 2.
The number 8 becomes the next digit in our result. 
Result so far: 19838.8
If we subtract 128 from 130, we get 2.
Since there are no more digits in the dividend, we add a zero to the remainder making it 20, and continue the process.

Moving on to step 8:
The number 16 fits into 20 1 times, leaving a remainder of 4.
The next digit of our result is 1. 
Result so far: 19838.81
The remainder is 4 after subtracting 16 from 20.
Since there are no more digits in the dividend, we add a zero to the remainder making it 40, and continue the process.

Let's proceed to step 9:
40 divided by 16 is 2 with a remainder of 8.
Use 2 as the next digit of our solution. 
Result so far: 19838.812
Subtracting 32 from 40 leaves us 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.

Moving on to step 10:
16 goes into 80 5 times with a remainder of 0.
The number 5 becomes the next digit in our result. 
Result so far: 19838.8125
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:
0 divided by 16 is 0 with a remainder of 0.
Record the quotient 0 as the next digit in the result. 
Result so far: 19838.8125
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.

Let's proceed to step 12:
When dividing 0 by 16, we get 0 with a remainder of 0.
The next digit of our result is 0. 
Result so far: 19838.8125
If we subtract 0 from 0, we 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.

The final outcome is 19838.8125, with a leftover of 0.0.