Atcoder Beginner Contest 279 is a very good chance to learn generating functions. The English version tutorial of 279Ex has already been post on the MathStackExchange by a kind person. Unfortunately, the English tutorial on 279G is not available. Now I would like to make a second-hand tutorial on 279G based on PCTprobability's idea.