Conversions from number to polynomial