Expanding Polynomials

Enter a polynomial (eg x+y): Enter a positive integer (eg 4):