The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 795 - File: showthread.php PHP 7.4.33 (FreeBSD)
File Line Function
/showthread.php 795 errorHandler->error





Post Reply 
(38G) Tribonacci Sequence
01-05-2017, 12:44 PM (This post was last modified: 06-15-2017 01:54 PM by Gene.)
Post: #1
(38G) Tribonacci Sequence
The programme below inserts symbolics in the Sequence aplet to produce the Tribonacci sequence.

For info on the sequence see:

https://oeis.org/A000073

Code:

RECURSE(U,U2(N-2),0,0)►U1(N):
CHECK 1:
RECURSE(U,U2(N-1)+U1(N)+U1(N-1),1,1)►U2(N):
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
(38G) Tribonacci Sequence - Gerald H - 01-05-2017 12:44 PM
RE: HP 38G: Tribonacci Sequence - Gerald H - 01-06-2017, 07:52 AM



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