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?
nfor the first case? Putn=4and try again. – Syed Nov 12 '23 at 03:13Solve,Simplify,Limit, …) can handle unevaluatedSum. (Of course, there existed rather rare exception: https://mathematica.stackexchange.com/a/78777/1871 ) The best solution I can think out is to code a shell as I've done here: https://mathematica.stackexchange.com/a/71393/1871 – xzczd Nov 12 '23 at 03:20expandSums. – xzczd Nov 12 '23 at 04:05