HP Forums
(38G) Tribonacci Sequence - Printable Version

+- HP Forums (https://www.hpmuseum.org/forum)
+-- Forum: HP Software Libraries (/forum-10.html)
+--- Forum: General Software Library (/forum-13.html)
+--- Thread: (38G) Tribonacci Sequence (/thread-7519.html)



(38G) Tribonacci Sequence - Gerald H - 01-05-2017 12:44 PM

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):



RE: HP 38G: Tribonacci Sequence - Gerald H - 01-06-2017 07:52 AM

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.