I need to find the least common multiple of two numbers. There isn’t a node that does it right out, and I can’t find a formula that can do it with the only inputs being the two numbers. I might be able to make it work by comparing two range tables, but that would mean that I have to guess at the end value, which the multiple might not be within.

The “LoopWhile” node seemed ideal, but it won’t accept a boolean for the continue while input.

It seems like there should be a way to write a formula that does the mathematical equivalent of “Given a and b, find X where x/a and x/b both have a remainder of 0” but nothing I’ve tried has a syntax that works.

The least common multiple, or the multiple of either number that would return the least common multiple would work for my purposes.