Post Reply 
HP 38G: Better than Prime for some Sequences using the built in Sequence App
03-07-2015, 08:34 AM (This post was last modified: 03-07-2015 08:36 AM by Thomas Ritschel.)
Post: #12
RE: HP 38G: Better than Prime for Sequences?
(03-07-2015 08:21 AM)Gerald H Wrote:  
(03-07-2015 07:40 AM)BruceH Wrote:  No good deed goes unpunished, as they say.

By way of revenge I offer you this:
Code:
EXPORT TT(n)
BEGIN
  IF N<=2 THEN
    RETURN(1);
  ELSE
    RETURN(TT(TT(n-1))*TT(n-TT(n-1));
  END;
END;
and set
Code:
U1(1)=1
U1(2)=1
U1(N)=TT(N)
in the Sequence symbolic view.

Could you check the value for U1(99) for me please? ;-)

Entering your prog TT exactly as depicted above & running Sequence App 99 gives the value 1, incorrect.

& for all vlues the App returns 1.

There is a typo in the equation. It should read:
Code:
    RETURN(TT(TT(n-1))+TT(n-TT(n-1)));
Note the "+" sign...

For N=99 it should return 56. But on the 39gII it takes ages! Actually it hasn't finished yet (after 10 minutes or so...).
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? - Thomas Ritschel - 03-07-2015 08:34 AM



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