We divide 5873 by 2
The aim is to understand the frequency of 2 in 5873.

Moving on to step 1:
5 divided by 2 is 2 with a remainder of 1.
Put 2 as the next digit of the answer. 
Result so far: 2.0
If we subtract 4 from 5, we get 1.
Include the next digit (8) from the dividend after 1, then repeat: 18 / 2

Moving on to step 2:
The number 2 fits into 18 9 times, leaving a remainder of 0.
Write down 9 as next digit of the result. 
Result so far: 29.0
If we subtract 18 from 18, we get 0.
Include the next digit (7) from the dividend after 0, then repeat: 7 / 2

Going ahead to step 3:
2 goes into 7 3 times with a remainder of 1.
The number 3 becomes the next digit in our result. 
Result so far: 293.0
Deduct 6 from 7 and we're left with 1.
Grab the next digit (3) from the dividend, add it to 1, then carry on: 13 / 2

Advancing to step 4:
2 goes into 13 6 times with a remainder of 1.
Use 6 as the next digit of our solution. 
Result so far: 2936.0
If we subtract 12 from 13, 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.

Step 5:
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: 2936.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 6:
When dividing 0 by 2, we get 0 with a remainder of 0.
The next digit of our result is 0. 
Result so far: 2936.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.

Moving on to step 7:
0 divided by 2 is 0 with a remainder of 0.
Put 0 as the next digit of the answer. 
Result so far: 2936.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.

Our division results in 2936.5 with a remaining 0.0.