You can always do this using brute force. Start with z = y+1 calculate the lcm(z,x), compare it to lcm(x,y) if its less then you have a z if not keep checking for z < lcm(x,y).
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.