In reply to kmishra:
Here is most of your constrain, except I don’t know what “B should be nearest to A” means.
(A % 6) ==0 -> (????)
Can you give some examples of values you are looking for that meet your constraint?
In reply to kmishra:
Here is most of your constrain, except I don’t know what “B should be nearest to A” means.
(A % 6) ==0 -> (????)
Can you give some examples of values you are looking for that meet your constraint?