Let $a$ be a solution to the equation $\sqrt{x^2 + 2} = \sqrt[3]{x^3 + 45}$. Evaluate the ratio of $\frac{2017}{a^2}$ to $a^2 - 15a + 2$.

Let's think step by step and output the final answer within \boxed{}.
user