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
01-06-2017, 07:52 AM
Post: #2
RE: HP 38G: Tribonacci Sequence
If you want the sequence quick & dirty this programme

Code:

RECURSE(U,ROUND(3*1.83928675521^(N-1)/16.4110613799,0),0,0)►U1(N):
CHECK 1:

starts to err at N = 41.
Find all posts by this user
Quote this message in a reply
Post Reply 




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