Olympiad Maths Prep

Track / Stage 3 / 180 of 260 #180 of 2000

Problem 180

AMC 10/12, early questions
Number theory Difficulty 3.8 Find the answer

For how many integers NN between 11 and 19901990 is the improper fraction N2+7N+4\frac{N^2+7}{N+4} not\underline{not} in lowest terms?
(A) 0(B) 86(C) 90(D) 104(E) 105\text{(A) } 0\quad \text{(B) } 86\quad \text{(C) } 90\quad \text{(D) } 104\quad \text{(E) } 105

Official solution

What we want to know is for how many nn is gcd(n2+7,n+4)>1.\gcd(n^2+7, n+4) > 1. We start by setting n+40modmn+4 \equiv 0 \mod m for some arbitrary mm. This shows that mm evenly divides n+4n+4. Next we want to see under which conditions mm also divides n2+7n^2 + 7. We know from the previous statement that n4modmn \equiv -4 \mod m and thus n2(4)216modm.n^2 \equiv (-4)^2 \equiv 16 \mod m. Next we simply add 77 to get n2+723modm.n^2 + 7 \equiv 23 \mod m. However, we also want n2+70modmn^2 + 7 \equiv 0 \mod m which leads to n2+7230modmn^2 + 7\equiv 23 \equiv 0 \mod m from the previous statement. From that statement, we get that mm divides 2323 evenly. Since 2323 is prime and we're looking for a GCD greater than 1, mm must be 2323. Going back to our original statement, we can set n+4=23xn+4=23x for some positive integer x, and n=23x4.n=23x-4. Finally, we must find the largest xx such that 23x4<1990.23x-4<1990. This is a simple linear inequality for which the answer is x=86x=86, or B\fbox{B}.

Source: NuminaMath-1.5, licensed Apache-2.0. Statement and solution reproduced as published; topic, difficulty and ordering added by this site.