余因子展開 ref: http://qiita.com/nnabeyang/items/a11942024c655c7e70a0