I am unable to determine for which values of $a\in\mathbb{Q}$ does integer solutions to $$x^2+x+1=a(y^2+1)$$
in the form $(x,y)$ exist.
My initial idea was to set $a=\frac{c}{d}$ to get $dx^2+dx+d=c(y^2+1)$ for $c,d\in\mathbb{Z}$ but I am unsure how to convert this into Pell's equation nor do I know how to apply initial solutions. Any suggestions?
Solutions of the equation:
$$ax^2-by^2+cx-dy+q=0$$
you can record if the root of the whole: $k=\sqrt{(c-d)^2-4q(a-b)}$
Then using the solutions of the equation Pell: $p^2-abs^2=\pm1$
Then the formula of the solution, you can write:
$$x=\frac{\pm1}{2(a-b)}(((d-c)\pm{k})p^2+2(bk\mp(bc-ad))ps+b(a(d+c)-2bc\pm{ak})s^2)$$
$$y=\frac{\pm1}{2(a-b)}(((d-c)\pm{k})p^2+2(ak\mp(bc-ad))ps-a(b(d+c)-2ad\mp{bk})s^2)$$
Edited:
For the specific case
$$x^2+x+1 = a(y^2+1)$$
let,
$$a = \frac{u}{v} = \frac{m^2+mn+n^2}{m^2+n^2}$$
Then,
$$x = \frac{mp^2+2m\color{red}u\,pq+(m+n)uv\,q^2}{n} $$ $$y = \frac{mp^2+(2m+n)\color{blue}v\,pq+muv\,q^2}{n} $$
and $p,q$ solve the Pell equation,
$$p^2-uv\,q^2=1$$
where one can easily set $n=1$ to get integer $x,y$.