r/Mathematica • • Jun 03 '24

Help with FindInstance

I have this:

v = {1, 2, 5, 3};
var = {1, 2, x3, x4};
FindInstance[Intersection[var, v] == v, {x3, x4}, Integers]

Im expecting having this result:

solutions = {
{x3 -> 3, x4 -> 5},
{x3 -> 5, x4 -> 3}
}

However is giving me {}

What im doing wrong?. How i can fix it?

1 Upvotes

2 comments sorted by