kill(all);

van=facebook.com/LearningCalculus;

factor(x^7+x^5+1);

f(x):=x^2+x+1;

g(x):=x^5-x^4+x^3-x+1;