How can I show that
$$ \sum_{i=1}^{n-1}i=\binom{n}{2}? $$
This is what I have tried, but I do not know if it is correct:
Proof.
Let $n=2$. Then,
$$ \begin{align} \sum_{i=1}^{1}i&=1\text{, and}\\ \binom{2}{2}&=1. \end{align} $$
Hence, it holds. Assume that this is true for $k$. Then, we show that it is also true for $k+1$:
$$ \begin{align} \sum_{i=1}^{k}i=k+\sum_{i=1}^{k-1}i&=k+\binom{k}{2}\\ &=k+\frac{k!}{2(k-2)!}\\ &=k+\frac{k(k-1)}{2}\\ &=\frac{k(k+1)}{2}\\ &=\frac{(k+1)!}{2!(k-1)!}=\binom{k+1}{2}.\square \end{align} $$
Also, proofs by induction are confusing to write. Is there a standard "skeleton" for them I can use?
An "indirect" proof would be to use the fact that $$\sum_{k=1}^{n}k = \frac{n(n+1)}{2}$$