# Is there a function that, given a fraction, will return the general term of its infinite series expansion?

Is here some way to expand a fraction to an infinite sum in mathematica, i.e., a series? I want the general term of the series.

For example, $\frac{2}{3(x-1)^3}$

-
How about Series? – Öskå Aug 3 '14 at 13:15
Series works, but I was wondering if there was a function that converts the fraction straight to an infinite sum, in sum notation, not expanded out. – Pablo Aug 3 '14 at 13:18
What would be your expected result? – Öskå Aug 3 '14 at 13:22
@Henry: do you mean "rational function" (or even just "function") rather than "fraction"? – murray Aug 3 '14 at 14:44

In Mathematica 10 you can use SeriesCoefficient and Inactive to get what you require

Inactive[Sum][SeriesCoefficient[2/(3(x-1)^3),{x,0,n},Assumptions->n>=0]x^n,{n,0,\[Infinity]}]

where Inactive prevents Sum from evaluating.

You can then "activate" the Sum as follows

Activate[%]

to get back to your original expression.

-