Let's divide 316875 by 2
The aim is to understand the frequency of 2 in 316875.

Let's proceed to step 1:
2 can be fit into 3 1 times, resulting in a remainder of 1.
The number 1 becomes the next digit in our result. 
Result so far: 1.0
If we subtract 2 from 3, we get 1.
Grab the next digit (1) from the dividend, add it to 1, then carry on: 11 / 2

Advancing to step 2:
2 goes into 11 5 times with a remainder of 1.
The next digit of our result is 5. 
Result so far: 15.0
If we subtract 10 from 11, we get 1.
Include the next digit (6) from the dividend after 1, then repeat: 16 / 2

Let's proceed to step 3:
If we divide 16 by 2, we get 8 and a remainder of 0.
The next digit of our result is 8. 
Result so far: 158.0
If we subtract 16 from 16, we get 0.
Append the next digit (8) from the dividend to 0 and continue with: 8 / 2

Moving on to step 4:
When dividing 8 by 2, we get 4 with a remainder of 0.
Put 4 as the next digit of the answer. 
Result so far: 1584.0
The remainder is 0 after subtracting 8 from 8.
Grab the next digit (7) from the dividend, add it to 0, then carry on: 7 / 2

Going ahead to step 5:
2 can be fit into 7 3 times, resulting in a remainder of 1.
The number 3 becomes the next digit in our result. 
Result so far: 15843.0
If we take 6 away from 7, we end up with 1.
Include the next digit (5) from the dividend after 1, then repeat: 15 / 2

Advancing to step 6:
2 can be fit into 15 7 times, resulting in a remainder of 1.
Record the quotient 7 as the next digit in the result. 
Result so far: 158437.0
Subtract 14 from 15 to 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.

Going ahead to step 7:
10 divided by 2 is 5 with a remainder of 0.
Use 5 as the next digit of our solution. 
Result so far: 158437.5
Subtracting 10 from 10 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.

On to step 8:
2 goes into 0 0 times with a remainder of 0.
Write down 0 as next digit of the result. 
Result so far: 158437.5
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.

Going ahead to step 9:
0 divided by 2 is 0 with a remainder of 0.
Record the quotient 0 as the next digit in the result. 
Result so far: 158437.5
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.

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