# Crazy Rational Function Modulo

Algebra Level 5

Let $$x$$ be a solution to the equation $$x^2-2015x+1=0$$. Find $\frac{x^{4029}+x^{2015}-x^{2014}-1}{x^{2015}-x^{2014}} \bmod {1007}.$

×