Generating function for the sequence\({a_0},{a_1}, \ldots ,{a_k}, \ldots \)of real numbers is the infinite series;
\(G(x) = {a_0} + {a_1}x + {a_2}{x^2} + \ldots + {a_k}{x^k} + \ldots = \sum\limits_{k = 0}^{ + \infty } {{a_k}} {x^k}\)
Extended binomial theorem
\({(1 + x)^u} = \sum\limits_{k = 0}^{ + \infty } {\left( {\begin{array}{*{20}{l}}u\\k\end{array}} \right)} {x^k}\)
Each police officer receives at least 3 but at most 7 donuts each, the series representing one child should then contain only terms with a power of at least 3 and at most 7:
\({x^3} + {x^4} + {x^5} + {x^6} + {x^7}\)