Prove that the sequence $\{x_n\}$ diverges to $+\infty$ if and only if $$\limsup_{n\rightarrow\infty} x_n=\liminf_{n\rightarrow\infty} x_n=+\infty$$
My attempt:
$(\rightarrow)$ By hypothesis we know $\{x_n\}$ diverge.
Let $$E(x_n)=\{x\in \bar{R}: \text{Exists at least a subsequence } \{{x_n}_k\}_k\subset\{x_n\}_n \text{ such that} \{{x_n}_k\}\rightarrow+\infty \text{ when } k\rightarrow \infty\}$$
Then $\sup(x_n)=+\infty$
For $\inf(x_n)$ i'm stuck.
Can someone help me?
For the other implication I don't have a clear idea on how to start. Can someone help?
Suppose that $\lim_{n\to\infty}x_n=\infty$. Take $M\in\mathbb R$. Then there is some $N\in\mathbb N$ such that $n\geqslant N\implies x_n>M$. Therefore, for each $n\geqslant N$, $\inf_{k\geqslant n}x_k\geqslant M$ and so$$\lim_{n\to\infty}\inf_{k\geqslant n}x_k\geqslant M.$$In other words, $\liminf_nx_n\geqslant M$. Since this occurs for each $M\in\mathbb R$, $\liminf_nx_n=\infty$. And, since $\limsup_nx_n\geqslant\liminf_nx_n$, $\limsup_nx_n=\infty$ too.
Now, suppose that $\liminf_nx_n=\infty$. Take $M\in\mathbb R$. Then, since$$\liminf_nx_n=\lim_{n\to\infty}\inf_{k\geqslant n}x_k=\infty>M,$$you know that there is some $N\in\mathbb N$ such that $\inf_{k\geqslant n}x_k>M$ for each $n\geqslant N$. But then $n\geqslant N\implies x_n>M$ and therefore, since this takes place for every $M\in\mathbb R$, $\lim_{n\to\infty}x_n=\infty$.