数模论坛

 找回密码
 注-册-帐-号
搜索
热搜: 活动 交友 discuz
查看: 5092|回复: 4

再来几个求数列之通项公式的难题:

[复制链接]
发表于 2006-11-13 06:36:11 | 显示全部楼层 |阅读模式
<p><font color="#4d2bd5"><strong><em>&nbsp;再来几个求数列之通项公式的难题:</em></strong></font></p><p><font size="3"><font color="#ee1169"><strong>&nbsp;求数列之通项公式</strong><font size="2">(能用Mathematica 5.2编程吗)</font>
                        </font><strong>:</strong></font></p><p><font color="#000000">&nbsp;&nbsp; 1. 数列f<sub>(n)</sub> = f<sub>(n - 1)</sub> + 2 * f<sub>(n - 3)</sub> + 1,&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;f<sub>0</sub>&nbsp;= 0;&nbsp;f<sub>1</sub> = 1; f<sub>2</sub> = 2 .&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;前几项为{0,1,2,3,6,11,18,31, ... ...}</font></p><p><font color="#000000">&nbsp;&nbsp; 2. 数列f<sub>(n)</sub> = f<sub>(n - 1)</sub> + 3 * f<sub>(n - 4)</sub> + 1,&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; f<sub>0</sub>&nbsp;= 0;&nbsp;f<sub>1</sub> = 1; f<sub>2</sub> = 2;&nbsp; f<sub>3</sub> = 3 .&nbsp;&nbsp;</font></p><p><font color="#000000">&nbsp;&nbsp; 3. 数列f<sub>(n) <sup>=</sup></sub><sup>
                        </sup>f<sub>(n - 1)</sub> + m <sub><sup>*</sup></sub> f<sub>(n - (m+1))</sub> + 1,&nbsp;&nbsp; &nbsp;f<sub>0</sub>&nbsp;= 0;&nbsp;f<sub>1</sub> = 1; f<sub>2</sub> = 2;&nbsp; f<sub>3</sub> = 3;&nbsp;&nbsp;&nbsp;... ;f<sub>(m)</sub> = m .</font>&nbsp;&nbsp;&nbsp;</p>
发表于 2006-11-14 20:59:57 | 显示全部楼层
<p>function result=shulie(m,n)<br/>%返回的result便是所求数列的前n项<br/>if n-m&lt;2<br/>&nbsp;&nbsp;&nbsp; error('使用出错');<br/>end</p><p>result=zeros(n+1,1);</p><p>for i=1:m+1<br/>&nbsp;&nbsp;&nbsp; result(i,1)=i-1;<br/>end</p><p>for i=m+2:n+1<br/>&nbsp;&nbsp;&nbsp; result(i,1)=result(i-1,1)+m*result(i-m-1,1)+1;<br/>end</p>
 楼主| 发表于 2006-11-15 08:01:06 | 显示全部楼层
<p><font color="#7963d0"><strong><font style="BACKGROUND-COLOR: #c7ebbe;">看不懂呀,<font size="2">Mathematica 5.2函数首字母应该用大写嘛,请写出完整的程序吗????</font></font></strong></font></p><p><strong><font style="BACKGROUND-COLOR: #c7ebbe;">能写出递推关系及通项公式吗</font></strong></p>
 楼主| 发表于 2006-11-15 08:10:57 | 显示全部楼层
很复杂,公式里很可能有复数,有简明的公式来表示吗?????????????/
 楼主| 发表于 2006-11-26 23:10:25 | 显示全部楼层
谁有办法呀!!!!!!!!!!!!!!!!!!
您需要登录后才可以回帖 登录 | 注-册-帐-号

本版积分规则

小黑屋|手机版|Archiver|数学建模网 ( 湘ICP备11011602号 )

GMT+8, 2024-5-5 08:33 , Processed in 0.059412 second(s), 18 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表