結果 : application of generating function