Generalized Technique for constructing the closed form of the generating functions of certain classes of sequences | Synapse