ある整式f,gの最大公約数gcdと最小公倍数lcmを出す問題って
f=gcdh
g=gcds
lcm=gcdhs
fg=lcmgcd
f+g=gcd(h+s)
fg/gcd=hs
(f+g)/gcd=h+s
(f+g)/fg=g^-1+f^-1=s^-1+f^-1

6=32
3=31
312