Solutions for generalized Pell equation implemented