(x+1)(x2+1)(x4+1)(x8+1)(x16+1)
=(x+1)(x-1)(x2+1)(x4+1)(x8+1)(x16+1)/(x-1)
=(x32-1)/(x-1)
=1+x+x2+x3+...+x31