Generating function

Generating function