>>585
ディオファントス方程式だからsympy.solveじゃ解けないでしょ
こっち使うべき
https://docs.sympy.org/latest/modules/solvers/diophantine.html