Checked the interesting question and it seems to me that there is a mathematic problem with the solution. I come up with the inital total number of peaches is 3126 rather than 3121.
Say the number of monkey is n and the inital number of peaches is y_n. After the first monkey ate one and took away his pile, then the number of remaining peaches, say y_(n-1) will be: y_(n-1) = y_n - 1/n(y_n-1) = (n-1)/n*y_n+1/n. Rewrite the equation, it gives
y_n - 1 = n/(n-1)*[ y_(n-1) -1]
with this equation, we can easily get the result of y_n as:
y_n -1 = [n/(n-1)]^n * ( y_0 - 1);
In case the number of the monkey is 5, we have:
y_5 -1 = (5/4)^5*(y_0 -1);
To have the integral number, then the y_0-1 must be 4^5. With this, the total number of the peaches will be y_5 = 5^5 +1 = 3126.
评论 (0)