How To Find Generating Function