Generating functions are formal power series used in combinatorics to encode sequences of numbers and facilitate calculations involving those sequences. They transform combinatorial problems into algebraic problems, enabling the derivation of formulas and the solution of recurrence relations. This powerful tool connects counting problems, recurrence relations, and various combinatorial structures like partitions and numbers associated with sets.