Let $(d_1,..., d_n)$ be a sequence of positive integers with $\sum_{i=1}^n d_i=2(n-1)$. Then there exists a tree $T$ with vertex set $v_1,..., v_n$ and $d(v_i)= d_i , 1\leq i \leq n$.
My attempt:- For $n=1$ result is vaccously true. Assume result true for $n=k$, that is Let $(d_1,..., d_k)$ be a sequence of positive integers with $\sum_{i=1}^k d_i=2(k-1)$. Then there exists a tree $T$ with vertex set $v_1,..., v_k$ and $d(v_i)= d_i , 1\leq i \leq k$. we want to prove the result for $n=k+1$, Let $(d_1,..., d_{k+1})$ be a sequence of positive integers with $\sum_{i=1}^{k+1} d_i=2(k-1)+2=\sum_{i=1}^k d_i+2$. So, $d_{k+1}=2$
Let $(d_1,..., d_k)$ be a sequence of positive integers with $\sum_{i=1}^k d_i=2(k-1)$. Then there exists a tree $T$ with vertex set $v_1,..., v_k$ and $d(v_i)= d_i , 1\leq i \leq k$.
Let $T$ be the required tree. If we add a vertex then degee must be equalls to two. Since $T$ is a tree the it must have atleast two pendant vertices. choose one of the pendant vertex, $x$(say). If we add a verex here and attach an edge to $x$ degree of $x$ changes to two. interchange the adding vertex and pendant vertex. we get the desired tree. Is my arguments correct?
No, you cannot assume that $\sum_{i=1}^k d_i=2(k-1)$ in the induction step, so the argument that $d_{k+1} = 2$ is invalid.