For how many integers is the square of an integer?
- A)
- B)
- C)
- D)
- E)
Answer
D
Key insight
A square is never negative, so n is from 0 to 19 and the fraction is at most 19. Only the squares 0, 1, 4, 9 give whole-number n.
Solution
There are infinitely many integers , so first narrow down where can be. Then check the few candidates.
1. The fraction cannot be negative, because a square is never negative.
- If is negative, the top is negative and the bottom is positive, so the fraction is negative.
- If is more than , the top is positive and the bottom is negative, so again negative.
- If , the bottom is , which is not allowed.
So is one of .
2. How big can the fraction be? As goes up from to , the top grows and the bottom shrinks, so the largest value is at : . The squares from to are .
3. Solve for for each square. If , then , so and
| square | |||||
|---|---|---|---|---|---|
- The first four are whole numbers; is not. Check one: gives .
So work: four values.
The answer is .
Why this works
When a question seems to have infinitely many possibilities, look for limits first. Here the sign of the fraction boxed into to , and the size of the fraction limited which squares could appear. After that, a five-column table finished the job. Remember that counts as a perfect square.
Alternative approach
Just test to . For to the top is smaller than the bottom, so the fraction is between and and cannot be a whole number. That leaves and to :
The squares are at .
The trap
Forgetting that 0 is a perfect square (0 times 0), which loses n = 0 and gives 3 instead of 4.
Concise solution
Set with an integer. A square is at least , so the fraction cannot be negative. If the numerator is negative and the denominator positive; if the reverse; and is undefined. Hence .
On that range the fraction is largest at , where it equals . So , meaning .
Solve for : gives , so
- : .
- : .
- : .
- : .
- : , not an integer.
Four values of work: .
The answer is .
Review in the AoPS books
- Introduction to Number Theory, Chapter 7: Algebra With Integers
- Introduction to Number Theory, Chapter 1: Integers: The Basics
- Prealgebra, Chapter 15: Problem-Solving Strategies (§15.2)
- Introduction to Algebra, Chapter 11: Special Factorizations (§11.5)
Techniques
Bound the quantity above/below or estimate to pin it down · Organized listing / direct enumeration