The generating function is where
with for .
Recall that for , we have
Taking the derivative gives
Taking the derivative again, we get
Take the derivative one last time to get
So the generating function is
9.4m questions
12.2m answers