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

Step 1:
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: 1.0
If we subtract 2 from 3, we get 1.
Fetch the next digit (1) from the dividend, attach it to 1 and continue: 11 / 2

Step 2:
2 goes into 11 5 times with a remainder of 1.
Record the quotient 5 as the next digit in the result. 
Result so far: 15.0
Subtract 10 from 11 to get 1.
Take the next digit (1) from the dividend and append it to 1, then repeat: 11 / 2

On to step 3:
If we divide 11 by 2, we get 5 and a remainder of 1.
Write down 5 as next digit of the result. 
Result so far: 155.0
If we take 10 away from 11, we end up with 1.
Include the next digit (6) from the dividend after 1, then repeat: 16 / 2

Step 4:
2 goes into 16 8 times with a remainder of 0.
Write down 8 as next digit of the result. 
Result so far: 1558.0
Subtracting 16 from 16 leaves us with 0.
Fetch the next digit (1) from the dividend, attach it to 0 and continue: 1 / 2

Going ahead to step 5:
2 can be fit into 1 0 times, resulting in a remainder of 1.
The number 0 becomes the next digit in our result. 
Result so far: 15580.0
Subtract 0 from 1 to get 1.
Include the next digit (8) from the dividend after 1, then repeat: 18 / 2

Step 6:
The number 2 fits into 18 9 times, leaving a remainder of 0.
Put 9 as the next digit of the answer. 
Result so far: 155809.0
If we take 18 away from 18, 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.

Advancing to step 7:
When dividing 0 by 2, we get 0 with a remainder of 0.
Write down 0 as next digit of the result. 
Result so far: 155809.0
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 8:
2 can be fit into 0 0 times, resulting in a remainder of 0.
Record the quotient 0 as the next digit in the result. 
Result so far: 155809.0
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.

The quotient of the division is 155809.0, and the remainder is 0.0.