Post Reply 
(11C) Tribonacci Sequence
12-14-2017, 09:34 PM (This post was last modified: 12-14-2017 10:11 PM by Dieter.)
Post: #2
RE: (11C) Tribonacci Sequence
(12-14-2017 12:21 PM)Gamo Wrote:  The Tribonacci Sequence is a generalization of the Fibonacci sequence where each term is the sum of the three preceding terms.

The sequence begins 0, 1, 1, 2, 4, 7, 13, 24, 44, 81, 149,. . . .

Input the Nth number
Example: 7 A result 24
_______10 A result 149

Interesting formula. But implemented waaayyy too complicated. ;-)
Actually it's nothing more than u · vn with u and v being two constants.

So what about this one:

Code:
LBL C
ENTER
1,839286755
STO 0
x<>y
y^x
RCL 0
4
x
RCL 0
x^2
-
1
-
/
,4
+
INT
RTN

Or simply...

Code:
LBL C
ENTER
1,839286755
x<>y
y^x
,336228117
x
,4
+
INT
RTN

Dieter
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
(11C) Tribonacci Sequence - Gamo - 12-14-2017, 12:21 PM
RE: (11C) Tribonacci Sequence - Dieter - 12-14-2017 09:34 PM
RE: (11C) Tribonacci Sequence - Gamo - 12-15-2017, 03:23 AM



User(s) browsing this thread: 1 Guest(s)