Difference between revisions of "2002 AMC 12B Problems/Problem 12"

(alternate solution)
Line 1: Line 1:
 +
{{duplicate|[[2002 AMC 12B Problems|2002 AMC 12B #12]] and [[2002 AMC 10B Problems|2002 AMC 10B #16]]}}
 
== Problem ==
 
== Problem ==
 
For how many integers <math>n</math> is <math>\dfrac n{20-n}</math> the [[perfect square|square]] of an integer?
 
For how many integers <math>n</math> is <math>\dfrac n{20-n}</math> the [[perfect square|square]] of an integer?
Line 26: Line 27:
  
 
== See also ==
 
== See also ==
 +
{{AMC10 box|year=2002|ab=B|num-b=15|num-a=17}}
 
{{AMC12 box|year=2002|ab=B|num-b=11|num-a=13}}
 
{{AMC12 box|year=2002|ab=B|num-b=11|num-a=13}}
  
 
[[Category:Introductory Number Theory Problems]]
 
[[Category:Introductory Number Theory Problems]]

Revision as of 17:19, 28 July 2011

The following problem is from both the 2002 AMC 12B #12 and 2002 AMC 10B #16, so both problems redirect to this page.

Problem

For how many integers $n$ is $\dfrac n{20-n}$ the square of an integer?

$\mathrm{(A)}\ 1 \qquad\mathrm{(B)}\ 2 \qquad\mathrm{(C)}\ 3 \qquad\mathrm{(D)}\ 4 \qquad\mathrm{(E)}\ 10$

Solution

Solution 1

Let $x^2 = \frac{n}{20-n}$, with $x \ge 0$ (note that the solutions $x < 0$ do not give any additional solutions for $n$). Then rewriting, $n = \frac{20x^2}{x^2 + 1}$. Since $\text{gcd}(x^2, x^2 + 1) = 1$, it follows that $x^2 + 1$ divides $20$. Listing the factors of $20$, we find that $x = 0, 1, 2 , 3$ are the only $4 \Rightarrow \mathrm{(D)}$ solutions (respectively yielding $n = 0, 10, 16, 18$).

Solution 2

For $n<0$ and $n>20$ the fraction is negative, for $n=20$ it is not defined, and for $n\in\{1,\dots,9\}$ it is between 0 and 1.

Thus we only need to examine $n=0$ and $n\in\{10,\dots,19\}$.

For $n=0$ and $n=10$ we obviously get the squares $0$ and $1$ respectively.

For prime $n$ the fraction will not be an integer, as the denominator will not contain the prime in the numerator.

This leaves $n\in\{12,14,15,16,18\}$, and a quick substitution shows that out of these only $n=16$ and $n=18$ yield a square.

See also

2002 AMC 10B (ProblemsAnswer KeyResources)
Preceded by
Problem 15
Followed by
Problem 17
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
All AMC 10 Problems and Solutions
2002 AMC 12B (ProblemsAnswer KeyResources)
Preceded by
Problem 11
Followed by
Problem 13
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
All AMC 12 Problems and Solutions