結果 : how to code extended euclidean algorithm