Series[(1-x)^x, {x, 0, 20}]