Checking when quotient of polynomials is integer

divisibilityelementary-number-theoryfactoringproblem solving

I'm learning some elementary number theory, and seek integers $n$ for which $\frac{n^3 – 3n^2 + 4}{2n-1}$ is an integer. My instinct was to let such an integer be denoted by $k$ and get the condition $n^3 – 3n^2 – 2kn + (4+k)=0$ then try to factorize to get a condition on $n$. However, I couldn't see how to factorise. In the solutions, instead, they start by observing that multiplying the fraction by $8$ means its still an integer, and seeing that $8 \cdot \frac{n^3 – 3n^2 + 4}{2n-1} = 4n^2 – 10n -5 + \frac{27}{2n-1}$ and checking when $2n-1$ divides $27$. My question is: why was my instinct to factorize incorrect, and how on Earth would one think to observe that multipling by eight still gives an integer. I understand their solution, I'm particularly looking for motivation or a perspective that makes their approach obvious so I can apply similar techniques in future.

Best Answer

I'm particularly looking for motivation or a perspective that makes their approach obvious so I can apply similar techniques in future.

Easy general way: $ $ via a $ $ fractional $ $ generalization of the polynomial remainder / factor theorems. If $\,a,b,n,m\,$ are integers and $\,f(x)\,$ is a polynomial with integer coefficients then

$$\begin{align}\,n\!-\!a\mid f(n) &\iff \ \ n\!-\!a\mid f(a),\ \ \ {\rm by}\ \ \ f(n)\equiv f(a)\!\pmod{\!n\!-\!a}\\[.6em] \leadsto\ \ bn\!-\!a\mid f(n) &\iff bn\!-\!a\mid b^k f\left(\frac{a}b\right),\ \ {\rm if}\ \ \color{#90f}{(a,b)=1},\ \ k\ge \deg f \end{align}\qquad\qquad$$

since $\,(bn\!-\!a,b) = \color{#90f}{(-a,b)}=1,\ $ so $\ bn\!-\!a\mid b^k m \iff bn\!-\!a\mid m,\,$ by Euclid's Lemma.

so $\,2n\!-\!1\mid n^3\!-\!3n^2\!+\!4 \iff \color{#0a0}{2n}\!-\!\color{#c00}1\mid 2^3(n^3\!-\!3n^2\!+\!4) = \underbrace{(\color{#0a0}{2n})^3\!-\!6(\color{#0a0}{2n})^2\!+\!32}_{\large\equiv\ \color{#c00}1^3-6(\color{#c00}1)^2+32\ \equiv\ 27}$

Related Question