Divination or Contact Other Plane to ask someone who should know where to find the thing.
That assumes there's any significant difference depending on the order you run the encounters. The encouters themselves are still the same. That doesn't sound like 24 possibilities to me.
Not necessarily. Just because the same (general) end result is possible doesn't mean the implications are all the same in all cases. If you need a (fairly powerful) mage to cast the spell, the impact on the world is rather different from having portal(s) anyone from either side can use up. If the forks are easily available to each of those mages, the result is again rather different than if only a single archmage in the entire world knows how to access a certain plane.