540715 ÷ 2 
The aim is to understand the frequency of 2 in 540715.

On to step 1:
The number 2 fits into 5 2 times, leaving a remainder of 1.
Use 2 as the next digit of our solution. 
Result so far: 2.0
Deduct 4 from 5 and we're left with 1.
Take the next digit (4) from the dividend and append it to 1, then repeat: 14 / 2

Advancing to step 2:
14 divided by 2 is 7 with a remainder of 0.
Write down 7 as next digit of the result. 
Result so far: 27.0
The remainder is 0 after subtracting 14 from 14.
Include the next digit (0) from the dividend after 0, then repeat: 0 / 2

Moving on to step 3:
2 goes into 0 0 times with a remainder of 0.
Use 0 as the next digit of our solution. 
Result so far: 270.0
Subtract 0 from 0 to get 0.
Append the next digit (7) from the dividend to 0 and continue with: 7 / 2

Going ahead to step 4:
2 can be fit into 7 3 times, resulting in a remainder of 1.
Write down 3 as next digit of the result. 
Result so far: 2703.0
Subtracting 6 from 7 leaves us with 1.
Bring next digit (1) of the dividend behind the 1 and repeat the process: 11 / 2

Advancing to step 5:
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: 27035.0
The remainder is 1 after subtracting 10 from 11.
Include the next digit (5) from the dividend after 1, then repeat: 15 / 2

Moving on to step 6:
2 goes into 15 7 times with a remainder of 1.
The next digit of our result is 7. 
Result so far: 270357.0
Deduct 14 from 15 and we're left with 1.
Since there are no more digits in the dividend, we add a zero to the remainder making it 10, and continue the process.

Advancing to step 7:
When dividing 10 by 2, we get 5 with a remainder of 0.
Put 5 as the next digit of the answer. 
Result so far: 270357.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.

Let's proceed to step 8:
The number 2 fits into 0 0 times, leaving a remainder of 0.
The number 0 becomes the next digit in our result. 
Result so far: 270357.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.

Step 9:
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: 270357.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 270357.5 and a remainder of 0.0.