Consider any complete bipartite graph $K_{p,q}$. Express the number of edges in $K_{p,q}^C$, the complement of $K_{p,q}$, as a function of $n$, the total number of verticies.
Now, I know that I could do this by subtracting the number of edges in $K_{p,q}$ by the number of edges in $K_n$, a complete graph with $n$ vertices. However, I do not see how it is possible to determine the number of edges in $K_{p,q}$ merely as a function of $n$ because I need to know how many verticies are on each side of the graph in order to determine this. For instance, $K_{1,3}$ and $K_{2,2}$ both have 4 verticies, however, the former one has 3 edges whereas the latter has 4 edges because $$ The~number ~of ~edges ~in ~a ~complete ~bipartite ~graph~ K_{p,q} = pq$$
So I'm not sure that this can really be expressed solely as a function of $n$
Edit: In light of $n = |V|$ rather than $n = |E|$. Here is my hint:
There are $\frac{p(p-1) + q(q-1)}{2}$ edges in the complement, right? Each vertex pair in set $P$ is adjacent, and each vertex pair in set $Q$ is adjacent. So we have $K_{p} \cup K_{q}$ as the complement.
I'd start there and do some algebra. I'd also consider that $q = n - p$ and see if that helps.