generating functions ch 17 490932