OEIS A228297: Need Help to Find Algorithm
|
09-17-2017, 04:51 PM
(This post was last modified: 09-18-2017 03:31 AM by Thomas Okken.)
Post: #11
|
|||
|
|||
RE: OEIS A228297: Need Help to Find Algorithm
(09-17-2017 04:08 PM)Gerald H Wrote: I would like the range of input on the real calculator to be at least in the millions. That would require an algorithm that doesn't store all of A(1)...A(N). I don't know if that's possible. Iterative implementation for HP-42S: Code: 00 { 134-Byte Prgm } This calculates a(100) is 97 seconds, on a real HP-42S. UPDATE: The program doesn't avoid tight-memory situations; it really should do CLV "REGS" before NEWMAT, and do CLX after STO "REGS", to make sure nothing is competing with REGS for the calculator's RAM. Still, even it its current form, running in Free42 on an iPhone 5s, it calculates a(2,000,000) in under a minute, so Gerald's requirement can be met, as long as you use the right equipment. :-) |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 3 Guest(s)