Solve[Sum[p*a[i], {i, 1, n}] == 0, p, Reals]

Solve[p*Sum[a[i], {i, 1, n}] == 0, p, Reals]

The first line of code cannot be solved, but when the variable p is extracted and turned into the second line of code, it can be solved. What is the reason for this? How can the first line of code (i.e. using the original form) be made to run correctly?



Browse other questions tagged or ask your own question.