factorize and sqroot
haskell attempt
solving pells equation