I want to transform the expression x*y*Inactive[Sum][1/n^2,{n,1,Infinity}]
to the expression Inactive[Sum][x*y/n^2,{n,1,Infinity}]
with the symbolic function Distribute
:
Distribute[x*y*Inactive[Sum][1/n^2,{n,1,Infinity}],Inactive[Sum],Times]
But this does not work. I get the answer
Inactive[Sum][x*y/n^2,{x*y*n,x*y,x*y*Infinity}]
What can I do to solve this problem or is this a bug in Mathematica?