I need to find a method to transform an expression like
a^(1+m+n) b^(2+2m - 2n)
into
(a b^2)^m (a/b^2)^n (a b^2),
that is, to group terms with the same exponent. I tried using Collect[], etc, but can't get anything to work.
Any suggestions?
Thanks, Tom