Question: Problem in constructing the monomials

Hi

I hope everyone is fine and doing well. I want to constrcut the set of monomials {p[0],p[1],...,p[m-1]} for any value of m for example, for m=6 the monoial is define as:

p[0]:=1;

p[1]:=x;

p[2]:=y;

p[3]:=x^2;

p[4]:=x*y;

p[5]:=y^2;

and similarly for m=10 the monomials should be given as:

p[0]:=1;

p[1]:=x;

p[2]:=y;

p[3]:=x^2;

p[4]:=x*y;

p[5]:=y^2;

p[6]:=x^3;

p[7]:=x^2*y;

p[8]:=x*y^2;

p[9]:=y^3;

I am waiting for your positive response. Please take care and thanks

Please Wait...