algebraic simplification

*To*: mathgroup at smc.vnet.net*Subject*: [mg121728] algebraic simplification*From*: Bruno Panetta <bpanetta at gmail.com>*Date*: Wed, 28 Sep 2011 02:45:34 -0400 (EDT)*Delivered-to*: l-mathgroup@mail-archive0.wolfram.com

I have an expression like the following a*x^4 + a*x^3 + b*x^2 + b*x + c*y^3 + c (only much more complicated). I want to simplify it so that it becomes something like a * (x^4 + x^3) + b * (x^2 + x) + c * (y^3 + 1) How can I do it in Mathematica?