solve gseries