Hi, 

 

I would like to get the coefficients of x^0, x^1, x^2,  . , x^6 from
expansion of (1+x+x^2)^3.

The result should be 1, 3, 6, 7, 6, 3, 1; 

 

How can I calculate in R? 

 

You help will be greatly appreciated.

 

Peter 

 

 


	[[alternative HTML version deleted]]


