Fs(p) to generating functions