# Form a power series from a list

Say I have a list

L = {0,1,2,4,6}


how can I form a power series with coefficients in L

x + 2x^2 + 4x^3 + 6x^4


?

• (I'm sure this is a dupe, but I can't find the original.) Try Expand[FromDigits[Reverse[{0, 1, 2, 4, 6}], x]] – J. M.'s technical difficulties Feb 3 at 23:05
• also L. x^Range[0, Length[L] - 1]? – kglr Feb 3 at 23:10
• Or SeriesData[x, 0, L, 0, Length@L, 1] if someone wants a Series... – Michael E2 Feb 3 at 23:36
• @MichaelE2 - SeriesData[x, 0, L, 0, Length@L, 1] // Normal for polynomial – Bob Hanlon Feb 3 at 23:41
• @Bernoulli - don't ask new questions in comments. Also, when asking the new question you must include the definition of p for anyone to understand why you are getting an expansion. – Bob Hanlon Feb 3 at 23:49