. If no such integers, report it.
Given a positive fraction frac{p}{q} q p , you should find two positive integers a,b a,b that frac{p}{q} = frac{a}{b} + frac{b}{a} q p = b a + a b . If no such integers, report it.
(图片来源网络,侵删)
. If no such integers, report it.
Given a positive fraction frac{p}{q} q p , you should find two positive integers a,b a,b that frac{p}{q} = frac{a}{b} + frac{b}{a} q p = b a + a b . If no such integers, report it.