1. Go to Africa.
2. Put an elephant in Cairo.
3. Start at the Cape of Good Hope.
4. Work northward in an orderly manner, traversing the continent alternately east and west,
5. During each traverse pass:
* Catch each animal seen.
* Compare each animal caught to a known elephant.
* Stop when a match is detected.
6. If you are in Cairo, then there are no elephants in Africa (other than the one you placed there).
https://en.m.wikipedia.org/wiki/Elephant_in_Cairo
Or, perhaps, other elephants already in Cairo ….
https://en.wikipedia.org/wiki/Cape_Agulhas
It needs a movable memory fence that stretches from East to West.
1. Go to Africa.
2. Put an elephant in Cairo.
3. Start at the Cape of Good Hope.
4. Work northward in an orderly manner, traversing the continent alternately east and west,
5. During each traverse pass:
* Catch each animal seen.
* Compare each animal caught to a known elephant.
* Stop when a match is detected.
6. If you are in Cairo, then there are no elephants in Africa (other than the one you placed there).
https://en.m.wikipedia.org/wiki/Elephant_in_Cairo