Implement GPU kernel for series magic