Let, $a_1=2$ and for $n\ge 2$, $a_{n+1}=a_n^2-a_n+1$. Prove that the sequence $\{a_n\}$ is divergent.
It is clear that , $a_{n+1}-a_n=(a_n-1)^2\ge 0$ which implies $a_{n+1}\ge a_n.$ So the sequence $\{a_n\}$ is monotonic increasing. So it is sufficient to show that $\{a_n\}$ is unbounded above !
If $\{a_n\}$ is bounded then then $\{a_n\}$ is convergent, say converges to $l$. i.e., $a_n \to l$ as $n\to \infty$. Then, from the given relation we have, $l=l^2-l+1$ , which implies $l=1$, contradicts that $a_1=2$. So we are done !
Any other way to show that the given sequence is unbounded above ?
Assume $a_k\geq 2$. Then $$ a_{k+1} = a_k^2-a_k + 1 = a_k(a_k-1) + 1\geq a_k\cdot 1 + 1= a_k + 1 $$ which shows that the sequence increases by at least $1$ for each step. By induction, we easily get $a_n\geq n+1$, but it could also be used to directly show non-convergence by the definition of limit (take $\epsilon = \frac12$, and go through the motions).