|   | 1 |  initial version  | 
expand the expression and then simplify partially (like transforming by hand)
var('n')
expr = ((-1)^n - 2*n -1) / (4*(2*n + 1))
show(expr)
expr2 = expr.expand()
show(expr2)
expr2.op[0] + sum(expr2.op[1:]).simplify_full()
 Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.
 
                
                Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.