First you might want to ask yourself how many members there are in $\{0, 1\}^n$. Since there are 2 elements in $\{0, 1\}$, clearly there are $2^n$ in total for each $n$. Turns out this doesn't get us anywhere in the problem, but when you have to do combinatorial reasoning it's always useful to think about how big the whole set is.
Now, you should consider the significance of $\frac{n(n - 1)(n - 2)}{6} + \frac{n(n - 1)}{2} + 1$. It might help to know some identities that are everywhere in computer science (typically learned along with analysis of algorithms). You should just internalize these:
$$ \dfrac{n(n - 1)}{2} = \sum_{i = 1}^n i = \binom{n}{2}$$
$$ \dfrac{n(n - 1)(n - 2)}{6} = \sum_{i = 1}^n i^2 = \binom{n}{3}$$
To construct your DFA, you should think about what those sums mean relative to elements of $\{0, 1\}^n$, what 1 means in this problem, and how you could accept the correct number of elements.