For what values of n does the polynomial (x+1)n−xn−1 divide by:
a) x2+x+1; b) (x2+x+1)2; c) (x2+x+1)3?