A Method for Obtaining Generating Functions for Central Coefficients of Triangles