Define How many integers are there such that ?
- A)
- B)
- C)
- D)
- E)
Answer
E
Key insight
P(n) is negative exactly when an odd number of factors are negative, i.e. n lies strictly between k^2 and (k+1)^2 for odd k; each such gap holds 2k integers.
Solution
exactly when is one of the squares .
For other integers, when an odd number of the factors are negative. If , the negative factors are those with roots above , namely : that is factors. This is odd exactly when is odd. For all factors are negative (even, positive product), and for none are.
So precisely for integers strictly between and with . Each such open gap contains integers, giving
Adding the zeros: .
The answer is .
Why this works
A product of linear factors changes sign at each root, so a sign chart alternates across the sorted roots. With roots, the sign is positive on both ends and negative on every other gap, starting with the gap . Counting integers in each gap is just the spacing of consecutive squares. Remember that "" includes the roots.
The trap
Forgetting the 100 integers where P(n) = 0 and answering 5000, or choosing the gaps with even k instead of odd k.
Common mistakes
- Forgetting the 100 integers where P(n) = 0 and answering 5000, or choosing the gaps with even k instead of odd k.
- Counting integers per gap (including an endpoint) and getting .
Techniques
Use an invariant, parity, or coloring argument · Compute small cases, spot the pattern, generalize