The sum of the first $n$ terms of an AP whose first term is a (not necessarily positive) integer and the common difference is $2$, is known to be 153. If $n>1$, then the number of possible values of $n$?
My approach :
$153= \frac{n}{2}[ 2a+ (n-1)\cdot2]$ from this we get; $(a-1)n+2n^2-153=0$;
So shouldn't be the number of possible values of $n$ be $2$ as $D>0$?
Hint: The fact that the discriminant of $2n^2 + (a-1)n - 153 = 0$ is positive is not really relevant here, since $a$ can have several values. However, the discriminant gives the number of real solutions, and $n$ is the number of terms, so it must be an integer.
You didn't simplify $153= \frac{n}{2}[ 2a+ (n-1)\cdot2]$ correctly, this should give $153= n[ a+ (n-1)]$, so $(a-1)n + n^2 - 153 = 0$
Note that you can write $n^2 + (a-1)n = 153$ as $n(n + (a-1)) = 153$, so $n \mid 153$.
How many divisors larger than $1$ does $153$ have? Does this give a solution for each divisor?