Problem
Prove or disprove that, for any $n \in \mathbb{N_+}$, there exist $a,b \in \mathbb{N_+} $ such that $$\frac{a^2+b}{a+b^2}=n.$$
My Thought
Assume that the statement is ture. Then, the equality is equivalent to that
$$a^2-na+b-nb^2=0.$$
Regard it as a quadratic equation with respect of $a$.Then $$a=\dfrac{n \pm \sqrt{n^2+4nb^2-4b}}{2}.$$ Thus, $n^2+4nb^2-4b$ must be a square number. Let $$n^2+4nb^2-4b=k^2,k \in \mathbb{N_+}.$$ How to go on with this? May it work?
P.S.
The statement seems to be true. Here are parts of verification examples: \begin{array}{r|r|r} n&a&b \\ \hline 1&1&1\\ 2&5&3\\ 3&5&2\\ 4&10&4\\ 5&27&11\\ 6&69&27\\ \vdots&\vdots&\vdots \end{array}
Besides, the equation could be rewritten as
$$n(2a-n)^2-(2nb-1)^2=n^3-1,$$
which is a $\textbf{ Pell-like equation}$. This will help?
Proof for all non-quadratic $n$
Proof: It's a well known fact that the Pell's equation with non-quadratic $n$ has an inifinite number of solutions. Pick any such solution $(x_1,y_1)$. It's worth noticing that $x_1$ and $y_1$ must be co-prime as well as $x_1$ and $n$.
Now calculate:
$$x_2=x_1^2+ny_1^2,\quad y_2=2x_1y_1$$
It can be easily proved that $(x_2,y_2)$ is also a solution of the same Pell's equation. Obviously $y_2$ is even.
If you replace $x_1^2=ny_1^2+1$ into the expression for $x_2$ you get:
$$x_2=1+2ny_1^2\implies x_2\equiv1\space (\text{mod}\space 2n)$$
This also proves that $x_2$ has to be odd (which makes perfect sense because solutions of Pell's equation are always co-prime and $y_2$ is even).
You can construct more solutions of Pell’s equation in the same way and they all satisfy the criteria of the lemma. So there is not just one such solution. Actually there are infinitely many.
End of lemma proof
Back to the original equation (same approach as HERE):
$$\frac{a^2+b}{a+b^2}=n$$
can be rewritten as:
$$u^2-nv^2=1-n^3 \tag1$$
where:
$$u=2nb-1,\quad v=2a-n$$
Take $x,y$ such that:
$$x^2-ny^2=1\tag2$$
You can easily prove that $(-x+y n^2)$ and $(-y+nx)$ satisfy (1):
\begin{align*}(-x+ yn^2)^2-n(-y+nx)^2&=x^2-2xyn^2+y^2n^4-ny^2+2xyn^2-x^2n^3\\&=(x^2-ny^2)+n^3(ny^2-x^2)\\&=1-n^3.\end{align*}
This shows that:
$$u=-x+yn^2=2nb-1$$
$$v=-y+xn=2a-n$$
...represent a solution of $(1)$.
Hence,
$$a=\frac{(x+1)n-y}{2},\space b=\frac{yn^2-(x-1)}{2n}.\tag3$$
According to our lemma Pell's equation has infinitely many solutions $x,y$ such that $x$ is odd, $y$ is even and $x\equiv1$ (mod $2n$). Replace these solutions into (3) and you'll obviously get infinitely many integer values for $a,b$.
End of proof for all non-square $n$.
The following simple Mathematica script will generate single $a,b$ for fairly big non-square $n$ very fast (it follows the proof, word by word):
For example:
The third number is just a check that the calculated numbers are valid. In other words:
$$\frac{60584278414870816497213^2+808653403020126409200}{60584278414870816497213+808653403020126409200^2}=5613$$
The script is lightning fast even for $n$ with 12 digits: