We're dividing 517847 by 2 
The aim is to understand the frequency of 2 in 517847.

Going ahead to step 1:
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: 2.0
Subtract 4 from 5 to get 1.
Take the next digit (1) from the dividend and append it to 1, then repeat: 11 / 2

Moving on to step 2:
11 divided by 2 is 5 with a remainder of 1.
Put 5 as the next digit of the answer. 
Result so far: 25.0
If we take 10 away from 11, we end up with 1.
Bring next digit (7) of the dividend behind the 1 and repeat the process: 17 / 2

Moving on to step 3:
When dividing 17 by 2, we get 8 with a remainder of 1.
The next digit of our result is 8. 
Result so far: 258.0
Deduct 16 from 17 and we're left with 1.
Grab the next digit (8) from the dividend, add it to 1, then carry on: 18 / 2

Moving on to step 4:
2 can be fit into 18 9 times, resulting in a remainder of 0.
Record the quotient 9 as the next digit in the result. 
Result so far: 2589.0
Deduct 18 from 18 and we're left with 0.
Include the next digit (4) from the dividend after 0, then repeat: 4 / 2

Let's proceed to step 5:
4 divided by 2 is 2 with a remainder of 0.
The number 2 becomes the next digit in our result. 
Result so far: 25892.0
Subtracting 4 from 4 leaves us with 0.
Append the next digit (7) from the dividend to 0 and continue with: 7 / 2

Let's proceed to step 6:
When dividing 7 by 2, we get 3 with a remainder of 1.
Write down 3 as next digit of the result. 
Result so far: 258923.0
Subtract 6 from 7 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.

Step 7:
2 can be fit into 10 5 times, resulting in a remainder of 0.
The number 5 becomes the next digit in our result. 
Result so far: 258923.5
If we take 10 away from 10, 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.

Step 8:
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: 258923.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.

Advancing to step 9:
2 goes into 0 0 times with a remainder of 0.
Write down 0 as next digit of the result. 
Result so far: 258923.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 258923.5 and a remainder of 0.0.