Post Reply 
OEIS A229580 mini challenge (RPL)
05-01-2018, 07:40 PM (This post was last modified: 05-01-2018 07:43 PM by Gerson W. Barbosa.)
Post: #14
RE: OEIS A229580 mini challenge (RPL)
Hello, Valentin,

Thank you very much for you valuable contribution!

(05-01-2018 06:07 PM)Valentin Albillo Wrote:  .
Hi, Gerson:

(05-01-2018 06:47 AM)Gerson W. Barbosa Wrote:  Write an RPL program to compute the elements of OEIS sequence A229580, the shorter and faster the better.

Since you just changed the Subject to include RPN, I'm changing it again to include the HP-71B, I hope you won't mind.

Of course not! This should have been opened to other calculators in the first place, my bad. As I said, more important than the resulting optimization was the better formula the participants would eventually come up with. My first attempt using your formula gives me 40 bytes on the hp 50g, but others may improve on that.

By factoring the first few elements, I have obtained an = (2n - 1)*2^(2n - 3), which is probably the same formula Joe has come up with, since he used the same method I did. Both formulas are of course equivalent and hopefully will make for even better optimizations on the original target.

Best regards,

Gerson.
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: OEIS A229580 mini challenge (RPL) - Gerson W. Barbosa - 05-01-2018 07:40 PM



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