For how many (not necessarily positive) integer values of is the value of an integer?
- A)
- B)
- C)
- D)
- E)
Answer
E
Key insight
4000 has five 2s and three 5s. Positive n uses up a 5 each step, negative n uses up a 2. Count both directions and n = 0.
Solution
The problem says does not have to be positive, so check positive, zero and negative values.
1. Break into primes. . So has five s and three s.
2. Positive : each step divides by . Multiplying by multiplies by and divides by .
- : .
- : .
- : .
- : , not a whole number.
Once the three s are used up, the result stops being a whole number. So work.
3. . Anything to the power is , so the value is . It works.
4. Negative : each step divides by . For example , so each step multiplies by and divides by . There are five s in , so we can do this times but not :
- work ( gives , a whole number).
- would need a sixth , which is not there.
5. Count. positive values, zero, and negative values: .
The answer is .
Why this works
Multiplying by swaps a for a ; multiplying by swaps a for a . The result stays a whole number only while there is still a (or a ) left to cancel. So the prime factorization of tells you exactly how far you can go in each direction. The words "not necessarily positive" are a hint to check zero and the negatives.
The trap
Checking only positive n, or only n = 1, 2, 3, and forgetting both n = 0 and the negative values of n.
Concise solution
Factor . The sign of decides which prime is being divided out.
Case . The expression is . The power of is harmless; we need , so . This gives , four values.
Case . Put with . Then and the expression is . We need , so . This gives , five values.
Altogether ranges over , which is integers.
The answer is .
Review in the AoPS books
- Introduction to Algebra, Chapter 1: Follow the Rules (§1.6, §1.7, §1.8)
- Introduction to Number Theory, Chapter 1: Integers: The Basics (§1.4, §1.5)
- Introduction to Counting & Probability, Chapter 2: Basic Counting Techniques (§2.2)
- Introduction to Algebra, Chapter 11: Special Factorizations (§11.4)
Techniques
Split into exhaustive cases and handle each · Set up the equation/formula and compute; no special trick needed