Hey director.

You can't, in general, do what you have tried to do. Fubini's theorem allows you to exchange the order of summations, but not to do what you tried.

Its the same reason that Integral (fg)dx != Integral (fdx) Integral (gdx) holds for many integrals.

Does a_n have any additional structure or constraints?