I'm trying to find rational solutions to the equation $$f(x) = \frac{1-x+\sqrt{5x^2-2x+1}}{2x};\{ x \in \mathbb{N} \}$$
The only operation that could produce an irrational answer is the square root, so I figure all I need to do is find rational solutions to
$$y = \sqrt{5x^2-2x+1}$$
which I think can be further adjusted to say: $$y^2= 5x^2-2x+1; \left \{x \in \mathbb{N} \ \text{and} \ y \in \mathbb{Q} \right \}$$
(excuse my notation if it's wrong) Without the $-2x$, it looks like another similar problem I've done where I've used Pell's equation to solve it, but this is a little different. How do I find the integer solutions? Can it be solved with pells equation?
$5x^2 - 2x + 1 -y^2 = 0 \implies \triangle' = (-1)^2 - 5(1-y^2) = 5y^2 -4 = m^2\implies 5y^2 - m^2 = 4$. This Pell equation has initial solution $(m,y) = (\pm 1, \pm 1)$. You can google the full solution set on the internet. Check out Lenstra's Pell equation notes.