Say for example I have the formula:
y = x%2 * x%3
or to put it in word notation:
y = mod(x,2) * mod(x,3)
Is there any way to combine them to leave only 1 modulo operator e.g.
y = mod(x,k)
(k will likely have to include an x term, or the x term may have to change to x^m, as any constant k gives a linear correlation for each line segment, whereas the initial formula gives a non-linear correlation.
Thanks