Post Reply 
OEIS A244953: Ridiculous Formula
08-22-2022, 03:06 PM (This post was last modified: 08-22-2022 03:08 PM by Thomas Klemm.)
Post: #7
RE: OEIS A244953: Ridiculous Formula
(08-21-2022 02:21 PM)John Keith Wrote:  That's amazing, only 4 instructions!

It's just this recursive formula: \(a(n) = a(n-1) + a(n-4) - a(n-5)\)
Or then rather: \(a(n) = a(n-4) - \left( a(n-5) - a(n-1) \right) \)

Quote:Your formula in post #2 comes out to 14 objects in RPL …

Is this what you refer to?
Code:
\<< 3 OVER * 4 + SWAP
4 MOD 2 - SQ - 2 /
\>>

Quote:You may want to add it to the OEIS page since it is shorter and simpler than the formulas there.

Meanwhile it has been updated.
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: OEIS A244953: Ridiculous Formula - Thomas Klemm - 08-22-2022 03:06 PM



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