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

Advancing to step 1:
If we divide 3 by 2, we get 1 and a remainder of 1.
Use 1 as the next digit of our solution. 
Result so far: 1.0
If we subtract 2 from 3, we get 1.
Bring next digit (8) of the dividend behind the 1 and repeat the process: 18 / 2

Moving on to step 2:
18 divided by 2 is 9 with a remainder of 0.
The number 9 becomes the next digit in our result. 
Result so far: 19.0
Deduct 18 from 18 and we're left with 0.
Grab the next digit (7) from the dividend, add it to 0, then carry on: 7 / 2

Moving on to step 3:
2 can be fit into 7 3 times, resulting in a remainder of 1.
Use 3 as the next digit of our solution. 
Result so far: 193.0
Subtracting 6 from 7 leaves us with 1.
Include the next digit (0) from the dividend after 1, then repeat: 10 / 2

Advancing to step 4:
The number 2 fits into 10 5 times, leaving a remainder of 0.
Write down 5 as next digit of the result. 
Result so far: 1935.0
The remainder is 0 after subtracting 10 from 10.
Bring next digit (5) of the dividend behind the 0 and repeat the process: 5 / 2

Step 5:
2 goes into 5 2 times with a remainder of 1.
Write down 2 as next digit of the result. 
Result so far: 19352.0
Subtracting 4 from 5 leaves us with 1.
Include the next digit (4) from the dividend after 1, then repeat: 14 / 2

On to step 6:
When dividing 14 by 2, we get 7 with a remainder of 0.
The number 7 becomes the next digit in our result. 
Result so far: 193527.0
Subtract 14 from 14 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.

On to step 7:
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: 193527.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.

Going ahead to step 8:
2 goes into 0 0 times with a remainder of 0.
The number 0 becomes the next digit in our result. 
Result so far: 193527.0
Subtract 0 from 0 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.

Our division results in 193527.0 with a remaining 0.0.