I have the following problem solved, but the answer seems wrong to me.
Problem: How many subgraphs does $K_3$ have? Same question for $K_n$
Answer:
We will classify the subgraphs by the size of their vertex-sets. By definition, a graph may not be empty. There are $\left(\begin{array}{c} n\\ k\\ \end{array}\right)$ choices of vertex set of size k, and for each such choice there are $\left(\begin{array}{c} k\\ 2\\ \end{array}\right)$ edges of $K_n$ available for our choice as edges of the subgraph. There are $2^{\left(\begin{array}{c} k\\ 2\\ \end{array}\right)}$ different choices of edge set. Therefore, the answer is $$\sum_{k=1}^{n}\left(\begin{array}{c} n\\ k\\ \end{array}\right)2^{\left(\begin{array}{c} k\\ 2\\ \end{array}\right)}$$
What I don't understand: $\left(\begin{array}{c} k\\ 2\\ \end{array}\right)=\infty$ for $k=1$, so how is this possible? Is the answer right? My professor might have made a mistake...