-t - t^2/2 - t^3/3 - t^4/4 - t^5/5 - t^6/6 - t^7/7
How to convert the above formula into the form of the formula below, with the denominators uniformly adjusted to 2 starting from the second term.
-t - t^2/2 - t^3/2 - t^4/2 - t^5/2 - t^6/2 - t^7/2
This is my self-devised method; however, it cannot satisfy the specified requirements.
expr = -t - t^2/2 - t^3/3 - t^4/4 - t^5/5 - t^6/6 - t^7/7;
expr /. -t^n_./n_ :> -t^n/2 /; n >= 2