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

Going ahead to step 1:
The number 2 fits into 3 1 times, leaving a remainder of 1.
The next digit of our result is 1. 
Result so far: 1.0
Subtracting 2 from 3 leaves us with 1.
Fetch the next digit (1) from the dividend, attach it to 1 and continue: 11 / 2

Moving on to step 2:
11 divided by 2 is 5 with a remainder of 1.
Record the quotient 5 as the next digit in the result. 
Result so far: 15.0
Subtracting 10 from 11 leaves us with 1.
Fetch the next digit (8) from the dividend, attach it to 1 and continue: 18 / 2

Let's proceed to step 3:
2 can be fit into 18 9 times, resulting in a remainder of 0.
Put 9 as the next digit of the answer. 
Result so far: 159.0
Subtracting 18 from 18 leaves us with 0.
Fetch the next digit (5) from the dividend, attach it to 0 and continue: 5 / 2

Let's proceed to step 4:
The number 2 fits into 5 2 times, leaving a remainder of 1.
The number 2 becomes the next digit in our result. 
Result so far: 1592.0
Deduct 4 from 5 and we're left with 1.
Grab the next digit (8) from the dividend, add it to 1, then carry on: 18 / 2

Step 5:
18 divided by 2 is 9 with a remainder of 0.
Put 9 as the next digit of the answer. 
Result so far: 15929.0
If we take 18 away from 18, we end up with 0.
Fetch the next digit (9) from the dividend, attach it to 0 and continue: 9 / 2

On to step 6:
2 goes into 9 4 times with a remainder of 1.
Write down 4 as next digit of the result. 
Result so far: 159294.0
If we subtract 8 from 9, we 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.

Let's proceed to step 7:
2 can be fit into 10 5 times, resulting in a remainder of 0.
The next digit of our result is 5. 
Result so far: 159294.5
Subtract 10 from 10 to 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.

Moving on to step 8:
2 goes into 0 0 times with a remainder of 0.
The next digit of our result is 0. 
Result so far: 159294.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.

Moving on to step 9:
2 goes into 0 0 times with a remainder of 0.
Put 0 as the next digit of the answer. 
Result so far: 159294.5
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.

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