OEIS A228297: Need Help to Find Algorithm
|
09-17-2017, 03:30 PM
(This post was last modified: 09-17-2017 03:35 PM by Thomas Okken.)
Post: #9
|
|||
|
|||
RE: OEIS A228297: Need Help to Find Algorithm
(09-17-2017 11:55 AM)Gerald H Wrote: Thank you, Thomas, for your suggestion, but I fear any algorithm that uses a complicated recursion is doomed to get bogged down & be inefficient. I disagree: Code: << -> N I don't have a real calculator to test this on, but in m48 on my iPhone, set to emulate a 48GX at "authentic speed," this evaluates a(100) in 137 seconds. It looks like evaluating A(N) always requires evaluating all of A(1) through A(N-1), so the algorithm could also be written as an iteration, which would be equivalent in terms of the calculations it performs, but probably much faster. |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 2 Guest(s)