Let $\{a_n\}_{n=1}^\infty$ be a sequence of non-negative numbers. Prove that $$\liminf_{n\to\infty} \left(n^2\left(4a_n(1-a_{n-1})-1\right)\right)\leq\frac14.$$
I found this problem on one of my old notebooks, and clearly I forgot where it came from. I searched using Approach0 and it led me to a post on AOPS without solutions.
I have to admit that I don't know how to start. First of all, it is easy to notice that if we have a subsequence $\{a_{n_k}\}$ with $a_{n_k}\geq 1$ for all $k$, then we must have $\liminf_{n\to\infty} \left(n^2(4a_n(1-a_{n-1})-1)\right)\leq0\leq \frac14$; also, the case where there are infinitely many $0$'s is easy to handle. So, WLOG we can assume that $a_n\in(0,1)$ for all $n$.
Secondly, notice that $4x(1-x)-1=-(2x-1)^2\leq 0$, with equality holds iff $x=\frac12$. It may suggest that $\frac12$ is an important number here. Now it seems natural to write $a_n=\frac12+b_n$, so we have $b_n\in(-1/2,1/2)$ and we want to prove that $$\liminf_{n\to\infty}\left(n^2(b_n-b_{n-1}-2b_nb_{n-1})\right)\leq\frac18.$$ But this is not obvious, either.
Remark. The bound $1/4$ (or $1/8$ in terms of $b_n$) is sharp. If we choose $b_n=-\frac1{4n}$, or equivalently $a_n=\frac12-\frac1{4n}$ for $n\geq1$, then $$n^2(b_n-b_{n-1}-2b_nb_{n-1})=\frac{n^2}{8n(n-1)}\to\frac18,\qquad n\to\infty.$$
The above are simplest (kind of silly) observations. Any help would be appreciated!
Finally, I come up with this proof. Thanks to @Jack D'Aurizio, whose second thought is the main body of this proof; also thanks to @Adam Rubinson, some ideas formed during comunicating with whom also play an important role in this proof.
I'll divide the proof into $6$ steps, which may get readers startled at first glance. I just want to write things clearly, to make sure there is no mistake in every step. I hope that every line you'll see below is easy to understand. If there are mistakes somewhere, please let me know.
We are going to prove
Step 1. In the first step, I'll reduce the choices of $\{a_n\}$ to $a_n\in(0,1)$ for all $n\geq 1$, as I did in OP. If we have a subsequence $\{a_{n_k}\}$ with $a_{n_k}\geq 1$ for all $k$, then $4a_{n_k+1}(1-a_{n_k})-1\leq 0$ for all $k$ and thus $(1)$ holds; also, the case where there are infinitely many $0$'s is easy to handle. So, WLOG we can assume that $a_n\in(0,1)$ for all $n\geq 1$.
Step 2. In this step we rewrite $(1)$ in terms of $b_n$, which is more convenient to deal with. Let $a_n=\frac12+b_n$, then we have $b_n\in(-1/2,1/2)$ and our aim is to prove $$\liminf_{n\to\infty}\left(n^2\left(b_n-b_{n-1}-2b_nb_{n-1}\right)\right)\leq\frac18.\tag{2}$$ Fix an arbitrary $a>\frac18$, we will prove $$\liminf_{n\to\infty}\left(n^2\left(b_n-b_{n-1}-2b_nb_{n-1}\right)\right)\leq a.\tag{3}$$ Indeed, if $(3)$ holds for all $a>\frac18$, then $(2)$ follows easily.
Step 3. Suppose that $(3)$ is not true for some $a>\frac18$ (we will get a contradiction in the end of the proof,) then there exists $N>0$ such that $$b_n-b_{n-1}-2b_nb_{n-1}>\frac a{n^2},\qquad \forall n>N.\tag{4}$$ We may assume WLOG that $N=1$, so we have $$b_n>\frac{b_{n-1}+\frac a{n^2}}{1-2b_{n-1}},\qquad \forall n\geq 2.\tag{5}$$ We claim that $b_n\leq 0$ for all $n\geq1$. Suppose $b_{n_0}>0$ for some $n_0\geq 1$, then it follows from $(5)$ that $$b_n>\frac{b_{n-1}}{1-2b_{n-1}},\qquad \forall n\geq n_0+1.$$ By induction we can easily show that $b_n>0$ for all $n\geq n_0$ and $\{b_n\}_{n=n_0}^\infty$ is increasing. Recalling that $b_n<\frac12$ for all $n\geq1$, the limit $L:=\lim_{n\to\infty} b_n$ exists and satisfies $0<b_{n_0}\leq L\leq \frac12$. Letting $n\to\infty$ in $(4)$, we get $-2L^2\geq 0$, which implies that $L=0$, a contradiction. This proves our claim that $b_n\leq 0$ for all $n\geq1$.
Step 4. Let $c_n=-2b_n$, then $c_n\in[0,1)$ for all $n\geq 1$ and $$c_n<\frac{c_{n-1}-\frac{2a}{n^2}}{1+c_{n-1}},\qquad \forall n\geq2. $$ And we also have $c_n>\frac{2a}{(n+1)^2}$ for all $n\geq 1$. Define $\{d_n\}_{n=1}^\infty$ by $d_1=c_1$ and $$d_n=\frac{d_{n-1}-\frac{2a}{n^2}}{1+d_{n-1}},\qquad \forall n\geq2. \tag{6}$$ Since the map $x\mapsto\frac{x-\frac{2a}{n^2}}{1+x}=1-\frac{1+\frac{2a}{n^2}}{1+x}$ is increasing for $x>0$, we can easily prove by induction that $$\frac{2a}{(n+1)^2}<c_n\leq d_n,\qquad n\geq1.\tag{7}$$
Step 5. In this step we prove the limit $\lim_{n\to\infty}nd_n$ exists and is finite. By $(7)$, we have $nd_n>0$ for all $n\geq1$. We prove that $\{nd_n\}$ is decreasing after finite terms. Indeed, for $n\ge 1$, \begin{align*} &\frac{(n+1)d_{n+1}}{nd_n}=\frac{(n+1)d_{n+1}-\frac{2a}{n+1}}{nd_n(1+d_n)}<1\\ \Longleftrightarrow& (n+1)d_{n+1}-\frac{2a}{n+1}<nd_n+nd_n^2\\ \Longleftrightarrow& nd_n^2-d_n+\frac{2a}{n+1}>0\\ \Longleftrightarrow& \left(d_n-\frac{1}{2n}\right)^2+\frac{2a}{n(n+1)}-\frac{1}{4n^2}=\left(d_n-\frac{1}{2n}\right)^2+\frac{(8a-1)n-1}{4n^2(n+1)}>0. \end{align*} Since $a>\frac18$, there eixsts $N>0$ such that $$0<(n+1)d_{n+1}<nd_n,\qquad n>N.$$ Therefore $\lim_{n\to\infty} nd_n$ exists and is finite.
Step 6. In the final step, we deduce a contradiction. By $(6)$, we have $$-n^2(d_{n+1}-d_n) = \frac{1}{1+d_n}\left(2a\frac{n^2}{(n+1)^2}+(nd_n)^2\right),\qquad n\geq 1.$$ Assume $A:=\lim_{n\to\infty} nd_n$, then $0\leq A<\infty$ and $\lim_{n\to\infty}d_n=0$. By Stolz-Cesàro theorem, \begin{align*} A&=\lim_{n\to\infty} nd_n=\lim_{n\to\infty} \frac{d_n}{\frac1n}=\lim_{n\to\infty}\frac{d_{n+1}-d_n}{\frac1{n+1}-\frac1n}\\ &=-\lim_{n\to\infty}n^2(d_{n+1}-d_n)=\lim_{n\to\infty}\frac{1}{1+d_n}\left(2a\frac{n^2}{(n+1)^2}+(nd_n)^2\right)\\ &=2a+A^2. \end{align*} However, since $a>\frac18$, there is no $A\in\mathbb R$ such that $A=2a+A^2$. $\color{red}{\text{This is a contradiction!}}$
So, the proof is completed now. I would like to express my gratitude to anyone who are reading this long post and answer. Comments or remarks on a easier proof, or improved results, or anything else related to this problem, are very welcome.