@mirfanf
x=20, y=35
x=20+35=55
y=55-35=20
x=55-20=35
jwb. B (x=35, y=20).
Pakai perbandingan berbalik nilai.
x/8=6/4
x=8*6/4=12.
boleh pake __gcd() gak sih???
Pake Euler Totient's Function aeuler(n)= 1 mod n, dengan syarat fpb(a,n)=1. euler(n)=n*(1-(1/p1))*(1-(1/p2))*... p1,p2,p3,..= faktor faktor prima ...