11. [BUG]2024-6-27
Posted by haifeng on 2024-06-27 15:15:49 last update 2024-06-27 16:05:02 | Answers (0) | 收藏
>> printRecursiveSeries(x_{n+1}==1/x_n+2/(3*n),x_1=2/3,10,\n,linenumber)
[1] 2|3
[2] 5|6
[3] 11|30
[4] 223|990
[5] 18398|110385
[6] 54156353|406172646
[7] 814697377619261|7332276398573346
[8] 1327463634199400965148971292737|13938368159093710134064198573714
[9] 9251338425639875332316232138713556382611648237643023083657615|111016061107678503987794785664562676591339778851716277003891308
[10] 684698101325767096988344365704864935802520824311879253005505738143309983824829952722521167450496083751813058245984364340289|9243424367897855809342648937015676633334031128210369915574327464934684781635204361754035760581697130649476286320788918593780
第二项应该是 13/6
>> 1/(2/3)+2/(3*1)
in> 1/(2/3)+2/(3*1)
out> 13|6
------------------------
这里计算的是
\[
\begin{aligned}
x_2=\frac{1}{2\cdot 3}+\frac{2}{3\cdot 1}=\frac{5}{6}\\
x_3=\frac{1}{5\cdot 6}+\frac{2}{3\cdot 2}=\frac{11}{30}\\
\end{aligned}
\]
也即是在替代 x_n 时, 1/x_n 直接替换为 1/2/3 而不是 1/(2/3). 已经解决.