I have an expression that is a product of two symbolic sums.
Sum[a[k], {k, 1, n}]*Sum[b[k], {k, 1, n}]
How can I expand this expression? I want to see something like this:
Sum[Sum[a[k1]*b[k2], {k2, 1, n}], {k1, 1, n}]
If the running indices weren't the same, I would try to fashion a transformation rule to match the situation above. But here, I'd have to create a new symbol, so I am unsure where to even start.
K
comes in handy; you can just systematically replace indices withK[1]
,K[2]
, etc. $\endgroup$