Answer:
The minimum sample size is N=1537.
Explanation:
We want to know the sample size to estimate the proportion of voters with a margin of error of 0.05, with a 95% of confidence.
The margin of error can be defined as:

We can calculate N from this

The sample size will be calculated for p=0.5, which is the proportion that requires the larger sample size (maximum variance).
The z-value for a 95% CI is z=1.96.
The minimum sample size is then

The minimum sample size is N=1537.