Post Reply 
HP 38G: Better than Prime for some Sequences using the built in Sequence App
03-07-2015, 12:18 PM (This post was last modified: 03-07-2015 12:41 PM by Didier Lachieze.)
Post: #29
RE: HP 38G: Better than Prime for Sequences
Here is a way to do it on the Prime Sequence app without performance issues by using the Sequence app variables:
  • select the Sequence app
  • go to Home
  • got to Programs
  • open Sequence(App)
  • replace the program with the one below:
Code:
EXPORT TT(n)
BEGIN
IF n≤2 THEN
  RETURN(1);
ELSE
  RETURN(U1(U1(n-1))+U1(n-U1(n-1)));
END;
END;
  • then go back to the Sequence app
  • enter U1(N)=TT(N)
  • go to Num view to see all the values

EDIT: display is smooth until N=361, after that it's much slower. I don't know why.
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: HP 38G: Better than Prime for Sequences - Didier Lachieze - 03-07-2015 12:18 PM



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