document.write( "Question 1209684: Find all integers n for which \frac{n^2 + n + 1}{n - 2 + n^3} is an integer.
\n" );
document.write( " \n" );
document.write( "
Algebra.Com's Answer #849816 by math_tutor2020(3817)![]() ![]() ![]() You can put this solution on YOUR website! \n" ); document.write( "Replace each instance of n with x.\r \n" ); document.write( " \n" ); document.write( "\n" ); document.write( "The problem is \n" ); document.write( "Find all integers x for which (x^2+x+1)/(x^3+x-2) is an integer\r \n" ); document.write( " \n" ); document.write( "\n" ); document.write( "Consider these two functions \n" ); document.write( "f(x) = abs(x^2+x+1) \n" ); document.write( "g(x) = abs(x^3+x-2) \n" ); document.write( "where \"abs\" is shorthand for \"absolute value\". \n" ); document.write( "Vertical bars can be used in place of abs notation.\r \n" ); document.write( " \n" ); document.write( "\n" ); document.write( "The goal is to see when f/g is an integer for integer values of x.\r \n" ); document.write( " \n" ); document.write( "\n" ); document.write( "Use a graphing tool of your choice, such as Desmos, to get this diagram \n" ); document.write( " \n" ); document.write( "f(x) in green \n" ); document.write( "g(x) in blue \n" ); document.write( "Note that all of y = x^2+x+1 is entirely above the x axis, so abs(x^2+x+1) is identical to x^2+x+1. The absolute value bars have no effect on f(x). \n" ); document.write( "The abs is much more useful with g(x) since some parts of x^3+x-2 go below the x axis.\r \n" ); document.write( " \n" ); document.write( "\n" ); document.write( "The two functions intersect at these approximate locations \n" ); document.write( "(0.3926, 1.5468) \n" ); document.write( "(1.8637, 6.3371) \n" ); document.write( "Which shows that the solutions to f(x) = g(x) are roughly x = 0.3926 and x = 1.8637\r \n" ); document.write( " \n" ); document.write( "\n" ); document.write( "According to the graph, if 0.3926 < x < 1.8637 then the green curve is above the blue curve. \n" ); document.write( "This is when f(x) > g(x). \n" ); document.write( "Otherwise, f(x) < g(x)\r \n" ); document.write( " \n" ); document.write( "\n" ); document.write( "So we only need to search for integers in the interval 0.3926 < x < 1.8637 \n" ); document.write( "This narrow interval contains the integer x = 1 and no other integers.\r \n" ); document.write( " \n" ); document.write( "\n" ); document.write( "f(x) = x^2+x+1 \n" ); document.write( "f(1) = 1^2+1+1 \n" ); document.write( "f(1) = 3 \n" ); document.write( "g(x) = x^3+x-2 \n" ); document.write( "g(1) = 1^3+1-2 \n" ); document.write( "g(1) = 0 \n" ); document.write( "h(x) = ( f(x) )/( g(x) ) \n" ); document.write( "h(1) = ( f(1) )/( g(1) ) \n" ); document.write( "h(1) = 3/0 \n" ); document.write( "h(1) = undefined \n" ); document.write( "Recall we cannot divide by zero.\r \n" ); document.write( " \n" ); document.write( "\n" ); document.write( "So f/g is not an integer, and not even defined, when x = 1.\r \n" ); document.write( " \n" ); document.write( "\n" ); document.write( "If x is an integer other than 1, then f/g will not be an integer. \n" ); document.write( "Why not? Because the denominator g(x) is larger in absolute value compared to f(x). \n" ); document.write( "As an example, f/g = 7/8 when x = 2 \n" ); document.write( "Another example is f/g = 3/(-12) = -1/4 when x = -2\r \n" ); document.write( " \n" ); document.write( "\n" ); document.write( "So f/g is never an integer when x is an integer. \n" ); document.write( " \n" ); document.write( " |