Let $R$ be a ring. There is an inclusion map $i : R \hookrightarrow R[X]$, where $R[X]$ is the polynomial ring. The universal property of the polynomial ring $R[X]$ states:
For any ring $S$, any ring homomorphism $f : R \rightarrow S$, and any $s \in S$, there is a unique ring homomorphism $\widehat{f} : R[X] \rightarrow S$ such that $\widehat{f} \circ i = f$ and $\widehat{f}(X) = s$.
This property characterizes the ring $R[X]$ up to isomorphism. But we're already familiar with polynomials being of the form $r_0 + r_1 X + ... + r_n X^n$, so we should be able to establish this from the universal property. In other words, consider the following property:
For any $p \in R[X]$, there exist unique $n \in \Bbb{N}$ and $r_0, ..., r_n \in R$ with $r_n \neq 0$ such that $p = r_0 + r_1 X + ... + r_n X^n$.
Question: How can we prove the above property directly from the universal property?
I noticed that you can evaluate $p$ at $0$ and get $r_0$. Then I thought of considering $p - r_0$; this evaluates to zero, so maybe we should be able to factor $p-r_0 = X \cdot p_1$, but I don't even know if we can do polynomial division just based on the universal property. Even if we can, and we try to proceed by induction, I'm not sure why it's guaranteed to stop. So, I'm not too sure how to proceed.