Solution to the Problem:
The smallest number of jewels that were stolen would be 25.
The first thief took 10 jewels, the second thief took 7 jewels and the third thief took 5 jewels, with 3 jewels discarded.
Let A = number of jewels in the original pile
Let B = number of jewels after the first thief has helped himself
Let C = number of jewels after the second thief has helped himself
Let D = number of jewels after the third thief has helped himself
Then you can write the following equations:
B = (A - 1) - (A - 1)/3 = 2/3 (A - 1)
C = (B - 1) - (B - 1)/3 = 2/3 (B - 1)
D = (C - 1) - (C - 1)/3 = 2/3 (C - 1)
Starting with the third equation and working back:
3/2 * D = C - 1
3/2 * D + 1 = C
3/2 * D + 1 = 2/3 * (B - 1)
9/4 * D + 3/2 = B - 1
9/4 * D + 5/2 = B
9/4 * D + 5/2 = 2/3 * (A - 1)
27/8 * D + 15/4 = A - 1
27/8 * D + 19/4 = A
So, I rewrote the last equation to be:
A = (27 * D + 38) / 8
Substitute in values of D until you get an integer value of A:
If D = 6, Then A = 25
If D = 14, then A = 52
If D = 22, then A 79
If D = 30, then A = 106
If D = 38, then A = 133
If D = 46, then A = 160
If D = 54, then A = 187
etc.