pull integer inside power?



Is there a way to make the conversions:

a^2/4 =>  (a/2)^2

or  a^3/27 => (a/3)^3

where a is a polynomial?

ted
win xp , v 5.14