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

On to step 1:
When dividing 1 by 2, we get 0 with a remainder of 1.
The next digit of our result is 0. 
Result so far: 0.0
The remainder is 1 after subtracting 0 from 1.
Take the next digit (6) from the dividend and append it to 1, then repeat: 16 / 2

Moving on to step 2:
The number 2 fits into 16 8 times, leaving a remainder of 0.
Record the quotient 8 as the next digit in the result. 
Result so far: 8.0
If we subtract 16 from 16, we get 0.
Take the next digit (5) from the dividend and append it to 0, then repeat: 5 / 2

On to step 3:
When dividing 5 by 2, we get 2 with a remainder of 1.
The number 2 becomes the next digit in our result. 
Result so far: 82.0
Subtracting 4 from 5 leaves us with 1.
Fetch the next digit (7) from the dividend, attach it to 1 and continue: 17 / 2

Step 4:
17 divided by 2 is 8 with a remainder of 1.
Record the quotient 8 as the next digit in the result. 
Result so far: 828.0
Subtract 16 from 17 to get 1.
Append the next digit (8) from the dividend to 1 and continue with: 18 / 2

Moving on to step 5:
18 divided by 2 is 9 with a remainder of 0.
Record the quotient 9 as the next digit in the result. 
Result so far: 8289.0
Subtract 18 from 18 to get 0.
Take the next digit (9) from the dividend and append it to 0, then repeat: 9 / 2

Let's proceed to step 6:
2 can be fit into 9 4 times, resulting in a remainder of 1.
Use 4 as the next digit of our solution. 
Result so far: 82894.0
If we take 8 away from 9, we end up 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.

Let's proceed to step 7:
When dividing 10 by 2, we get 5 with a remainder of 0.
The number 5 becomes the next digit in our result. 
Result so far: 82894.5
Subtracting 10 from 10 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.

Moving on to step 8:
When dividing 0 by 2, we get 0 with a remainder of 0.
Use 0 as the next digit of our solution. 
Result so far: 82894.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.

Going ahead to step 9:
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: 82894.5
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.

The final outcome is 82894.5, with a leftover of 0.0.