We will show that by “playing” with the rules one may end up with very different totals – one may “save” as many as 40 animals, but with a different strategy only 1 animal remains in the end.
In our problem the three species start with
Hares = 30
Wolves = 20
Lions = 10
Total = 60
There are three allowed “eating‐and‐transforming” moves:
-
Wolf eats hare:
New state: (H – 1, W – 1, L + 1)
(This move “consumes” one hare and one wolf but “creates” a lion.)
-
Lion eats hare:
New state: (H – 1, W + 1, L – 1)
(The lion turns into a wolf when it eats a hare.)
-
Lion eats wolf:
New state: (H + 1, W – 1, L – 1)
(In this case the lion transforms into a hare.)
Notice that in any move the overall number of animals drops by one. (In move 1: –1 –1 +1 = –1; in move 2: –1 +1 –1 = –1; and in move 3: +1 –1 –1 = –1.) Thus if one has made M moves the total number of animals will be
N = 60 – M.
The process stops (“stabilizes”) when no animal can eat another. But notice that every allowed move is “predator–prey” (hare is prey for both wolf and lion, and wolf is prey for lion). Thus if more than one species is present some eating is still possible. In other words a stable ending state must consist of animals of only one kind.
There are three possibilities:
- Final all–hares: (H,0,0)
- Final all–wolves: (0,W,0)
- Final all–lions: (0,0,L)
It turns out that by a suitable careful choice of moves one may “force” the system to stop in different numbers of total animals. In fact one may show (by an “invariant‐analysis/parameterization” argument – see the discussion below) that one may end with as many as 40 animals left (all hares) but also that there is a sequence of moves which “harvests” many moves so that in the end (after 59 moves) only one animal remains (all lions). (Since every move loses one animal, ending with 40 animals means that only 20 moves were made, while ending with 1 animal means that 59 moves were done.)
A short outline of one way to “see” this is as follows.
An Example Showing the Maximum Final Number (40)
One “good‐for–life” strategy is to try to convert all animals into hares. (Once you have only hares nothing can eat anything.) The only move that produces a hare is when a lion eats a wolf. (That move is: (H, W, L) → (H+1, W–1, L–1).) However, you may not have many lions initially. One may proceed in two stages.
-
First stage: Use the move “lion eats wolf” as often as possible. (You can do that at most 10 times, since you start with 10 lions and a “lion eats wolf” move requires a lion and a wolf.)
Starting with (30,20,10), perform 10 moves of “lion eats wolf.” Then the counts become:
Hares = 30 + 10 = 40
Wolves = 20 – 10 = 10
Lions = 10 – 10 = 0
-
Second stage: Now only hares and wolves remain. Unfortunately, wolves can eat hares so the state is not stable. However, you can “pump back” a lion (which you don’t want to keep in the end) by letting a wolf eat a hare. (That move is: (H, W, L) → (H–1, W–1, L+1).)
Then immediately use the “lion eats wolf” move to convert that lion (along with one wolf) back into a hare. (This move again is: (H, W, L) → (H+1, W–1, L–1).)
Notice that in the two‐move combination the net effect is:
• Hares: –1 then +1 → no net change
• Wolves: –1 then –1 → –2
• Lions: 0 (first goes +1 then –1)
and the total number drops by 2 moves.
Starting from (40 hares, 10 wolves, 0 lions) you can “clean out” the wolves in 5 such cycles (using 10 moves) leaving you with (40,0,0) – 40 hares. (The total number of moves performed is 10 (first stage) + 10 (second stage) = 20, and indeed 60 – 20 = 40 animals remain.) This is a stable configuration.
An Example Showing the Minimum Final Number (1)
To “force” lots of moves you must take a “detour” so that whenever one eats another the transformation is “unhelpful” for immediately reaching a stable state. One possibility is to force many moves by having the lion eat hares; that move (which is: (H, W, L) → (H–1, W+1, L–1)) does not “clean out” the predators but changes the species in a cyclic way. In a full analysis (which one may do by introducing suitable parameters to “count” the moves of each kind) one may show that it is possible to carry on the process until a total of 59 moves have been made – so that in the end the garden contains
60 – 59 = 1 animal.
It turns out that the only possibility for an odd final total is to have all animals of one kind – and in the “maximal‐move” case one may show that the only possibility is that a single lion survives. (Any final state having more than one animal would have required fewer than 59 moves.)
In Summary
Different strategies can yield vastly different numbers of animals at the end. In fact one may show that
- Maximum: One may stop after only 20 moves, leaving 60 – 20 = 40 animals (all hares).
- Minimum: One may “feed the cycle” for 59 moves so that only 60 – 59 = 1 animal (a lone lion) remains.
Thus, the answer to the question is:
Maximum number of animals left: 40; Minimum number of animals left: 1.
A Note on How One Can “Discover” These Answers
Many solvers attack this problem by first noticing that every move reduces the total by 1, so if one can decide what the final total should be it is 60 minus the number of moves. Then one shows that ending with a “stable” state (that is, animals of one species only) forces the moves used to come in a “cycle” with one species as the “output.” One may then “parameterize” the number of moves of each type and show that by a suitable choice (subject to natural non–negativity constraints) the total number of moves can be anywhere between 20 and 59. (Some versions of this kind of puzzle – sometimes called the “Magical Forest” problem – appear from time to time.) The details require a little bookkeeping but the final answer is as stated.
I hope this explanation helps!