[math-fun] factoring formal power series