SymPy can already compute this sum (call doit() on the Sum object).
You should add integer=True and positive=True assumptions on N or else
you will get complicated convergence conditions. The result is a
Piecewise because it needs to have |A| <= 1 to converge. You can
remove it with refine(result, abs(A) <= 1).
>>> N, k = symbols("N k", integer=True, positive=True)
>>> A = symbols("A")
>>> Sum((A**k)*binomial(N, k), (k, 0, N)).doit()
Piecewise(((A + 1)**N, Abs(A) <= 1), (Sum(A**k*binomial(N, k), (k, 0,
N)), True))
>>> refine(Sum((A**k)*binomial(N, k), (k, 0, N)).doit(), abs(A) <= 1)
(A + 1)**N
Aaron Meurer
> --
> You received this message because you are subscribed to the Google Groups "sympy" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to
sympy+un...@googlegroups.com.
> To view this discussion on the web visit
https://groups.google.com/d/msgid/sympy/ff075049-582e-4397-b10b-fa9ab82cfa10n%40googlegroups.com.