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?