Wolfram Book 之根据数列前几项猜通项公式

例 1

Mathematica 代码:

FindSequenceFunction[{2, 4, 7, 11}, n]

例 2

奇数项的数是 5,10,15,20,依次增加 5,偶数项的数是 10,12,14,16,依次增加 2

Mathematica 代码:

list = {5, 10, 10, 12, 15, 14, 20, 16}

FindSequenceFunction[list, n]

% /. n -> Length[list] + 1

例 3

Mathematica 代码:

FindSequenceFunction[{1, 1, 2, 3, 5, 8, 13}, n]

Table[%, {n, 8, 10}]

发布者:Cara,转载请注明出处:http://www.makercollider.com/course/1765

发表评论

登录后才能评论
QR code