I'm an undergraduate student majoring in mathematics. I'm solving my home assignment and got stuck at this problem.
Suppose $d_1\geq d_2\geq\dots \geq d_n\geq 1$ and $\sum_{i=1}^nd_i$ is even. Prove that there is a multigraph with degree sequence $d_1, d_2, > \dots, d_n$ if and only if $d_1 \leq \sum_{i=2}^nd_i$.
So, please help me.
Necessity. The sum $\sum_{i=1}^nd_i$ is always even because each edge connects two vertices and therefore it is counted twice. As there are no loops the each degree should be less equal to the sum of the others.
Sufficiency. Show by induction with respect to $d_1$ that if $d_1\geq d_2\geq\dots \geq d_n\geq 1$ and $\sum_{i=1}^nd_i$ is even then there is a multigraph with degree sequence $d_1,d_2,\dots,d_n$.
Hint for the inductive step.
1) Assume first that $d_n\geq 2$.
1.1) If $n$ is even then, by the inductive hypothesis, there is a multigraph with degree sequence $d_1-1,d_2-1,\dots,d_{n}-1$.
1.2) If $n$ is odd then, then $\sum_{i=1}^nd_i$ is even implies that there is a minimal index $j$ such that $d_j$ is odd. Then $d_j\geq 3$, and by the inductive hypothesis, there is a multigraph with degree sequence $d_1-1,d_2-1,\dots, d_j-2,\dots,d_{n}-1$.
2) Otherwise $d_n=1$. Let $k\leq n$ be such that $d_{k+1}>d_k=1$.
2.1) If $k$ is even then, by the inductive hypothesis, there is a multigraph with degree sequence $d_1-1,d_2-1,\dots,d_{k+1}-1$.
2.2) If $k$ is odd then $\sum_{i=1}^n d_i$ is even implies that there is a minimal index $j$ such that $j>k$ and $d_j$ is odd. By the inductive hypothesis, there is a multigraph with degree sequence $d_1-1,d_2-1,\dots, d_j-2,\dots,d_{k+1}-1$.