Question: degree of a polynomial

Hello,

How can I get the powers of "y" for all terms in eq1:

eq1:=A*(k+1)*y^n+(k+2)*y^(n+1)+12*y^n+k*y^6 +... other terms

where A,k, = consts, n::posint

,for example, as a list  [n,n+1,n,6,....]

Thanks in advance - jerzy 

Please Wait...