The question asks to:
construct a DFA which accepts exactly $\frac{n(n-1)(n-2)}{6} + \frac{n(n-1)}{2}+1$ many members of $\{0, 1\}^n$ for every n.
I have no idea where to start to constructing the DFA, could you give some directions? By the way, how many states should this DFA have?
HINT: Every $w\in\{0,1\}^n$ has $n$ symbols. There are $$\binom{n}3=\frac{n(n-1)(n-2)}6=\binom{n}3$$ ways to choose $3$ of those places to be $1$, leaving the rest $0$. $\dfrac{n(n-1)}2$ is also a binomial coefficient and can be interpreted similarly. Use these ideas to identify which $n$-symbol words to include in the language; once you have that, the DFA will be easy, and you won’t need very many states. I won’t say yet exactly how many, but it’s fewer than half a dozen.