A classic arithmetical problem probably first posed by Euclid and investigated by various authors in the Middle Ages.
The problem is formulated as a dialogue between the two animals after which it is called. The mule say to the ass, "If you gave me one of your sacks, I would have as many as you." The ass replies, "If you gave one of your sacks, I would have twice as many as you." The question, of course, is "How many sacks do they have?" The number of sacks of the mule and the number of sacks of the ass are related by the identities:
(1)
| |||
(2)
|
which form a system of two linear equations. The solution is , .
A generalization of this problem has been studied by Singmaster (1999, 2002). In this modified problem, the ass says, "If you gave me of your sacks, I would have times as many as you," and the mule answers, "If you gave my of your sacks, I would have times as many as you." This has solutions
(3)
| |||
(4)
|
which are integers only when and .