For how many integers N between 1 and 1990 is the improper fraction N+4N2+7not in lowest terms? (A) 0(B) 86(C) 90(D) 104(E) 105
Official solution
What we want to know is for how many n is gcd(n2+7,n+4)>1. We start by setting n+4≡0modm for some arbitrary m. This shows that m evenly divides n+4. Next we want to see under which conditions m also divides n2+7. We know from the previous statement that n≡−4modm and thus n2≡(−4)2≡16modm. Next we simply add 7 to get n2+7≡23modm. However, we also want n2+7≡0modm which leads to n2+7≡23≡0modm from the previous statement. From that statement, we get that m divides 23 evenly. Since 23 is prime and we're looking for a GCD greater than 1, m must be 23. Going back to our original statement, we can set n+4=23x for some positive integer x, and n=23x−4. Finally, we must find the largest x such that 23x−4<1990. This is a simple linear inequality for which the answer is x=86, or B.
Source: NuminaMath-1.5,
licensed Apache-2.0.
Statement and solution reproduced as published; topic, difficulty and ordering added
by this site.