This is probably very rudimentary maths, but given a strict population size ($N = 20$ for example), is the sample size any number $<N$? For use in calculation of confidence intervals using a population size, all of the formulas use $n$ and not $N$, meaning I need a sample size rather than population size.
$$N = 20;\qquad n = 1, 2, 3, \dots , 19$$ $$N = 10;\qquad n = 1, 2, 3, \dots , 9$$
Is this right? This isn't really a maths question, but moreso a semantics question; is a sample size just taken from a population? A sample size of $n = 5$ can come from a population size of $N = 10$?
Basically: for determining confidence intervals of a population, is the sample size used in calculations an arbitrary number as long as it fits within the amount of the population?
edit; according to the textbook (and online sources), a sample should be an approximation of a population, so $n = N - 1$? Math is my weakest area, so I apologize if this is silly.
I'm guessing what you're looking for is a confidence interval for the population size $N$.
Your question says "using a population size" rather than "for a population size", so you're not making it altogether clear.
The formulas for confidence intervals found in elementary textbooks are usually based samples in which the observations are mutually independent. If it's done that way, then the sample size can exceed the population size. The sequence $2,1,5,3,3,5,1$ of size $7$ could be taken, and in this case, not all of the members of the population are included in the sample ($4$ is not).
One can do better by sampling without replacement, so that no member of the population is used more than once in the sample. In that case, the sample size cannot exceed the population size. But the formulas for confidence intervals are messier and harder to derive in that case.