Solve for $x^2 + 7x +1 = 3n(x^2 + x +1), n \in \Bbb{Z}$

algebra-precalculuselementary-number-theory

Solve for $x$ and $n$ in the equation
$$ \dfrac{x^2 + 7x +1}{ x^2 + x +1}= 3n,\qquad n \in \Bbb{Z}.$$
The original problem was a trigonometric equation but solved it till I got stuck here. I am a high school student who is self studying and preparing for college entrance exam. Original problem was a trigonometric equation which came from 'cengage exam crack'.

[After Mark's and Jyrki's hints in the comments, I got the answer and posted it below.]
Original problem:
enter image description here

Best Answer

1) Convert the problem into quadratic $ x^2(1-3n) + x(7-3n) + 1-3n = 0 $

2) set discriminant greater than equal to $0$

3) find the range of $n $

4) find the possible values of n which are $(0,1,-1)$

5) plug them back in to find values of $x$

Related Question