We look at the division of 831422 by 2 
The aim is to understand the frequency of 2 in 831422.

On to step 1:
The number 2 fits into 8 4 times, leaving a remainder of 0.
Write down 4 as next digit of the result. 
Result so far: 4.0
Subtracting 8 from 8 leaves us with 0.
Take the next digit (3) from the dividend and append it to 0, then repeat: 3 / 2

Moving on to step 2:
2 can be fit into 3 1 times, resulting in a remainder of 1.
Record the quotient 1 as the next digit in the result. 
Result so far: 41.0
The remainder is 1 after subtracting 2 from 3.
Fetch the next digit (1) from the dividend, attach it to 1 and continue: 11 / 2

Advancing to step 3:
2 goes into 11 5 times with a remainder of 1.
Put 5 as the next digit of the answer. 
Result so far: 415.0
If we subtract 10 from 11, we get 1.
Grab the next digit (4) from the dividend, add it to 1, then carry on: 14 / 2

Let's proceed to step 4:
If we divide 14 by 2, we get 7 and a remainder of 0.
Use 7 as the next digit of our solution. 
Result so far: 4157.0
Subtract 14 from 14 to get 0.
Grab the next digit (2) from the dividend, add it to 0, then carry on: 2 / 2

Moving on to step 5:
2 divided by 2 is 1 with a remainder of 0.
The number 1 becomes the next digit in our result. 
Result so far: 41571.0
Deduct 2 from 2 and we're left with 0.
Fetch the next digit (2) from the dividend, attach it to 0 and continue: 2 / 2

Step 6:
2 divided by 2 is 1 with a remainder of 0.
Put 1 as the next digit of the answer. 
Result so far: 415711.0
If we subtract 2 from 2, 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 7:
2 goes into 0 0 times with a remainder of 0.
The next digit of our result is 0. 
Result so far: 415711.0
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.

Moving on to step 8:
2 can be fit into 0 0 times, resulting in a remainder of 0.
The next digit of our result is 0. 
Result so far: 415711.0
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.

The final result is 415711.0 with a remainder of 0.0.