OEIS A167390: Cumbersome formula
|
08-28-2022, 07:52 PM
(This post was last modified: 08-28-2022 08:38 PM by Allen.)
Post: #3
|
|||
|
|||
RE: OEIS A167390: Cumbersome formula
It's probably more comprehensible to understand the function NOT through the OEIS description, but by looking a the derivative of the integer sequence..
[0,1,2,4,3,9,5,16,6,25,7,36,8,49,10,64 ] so the general pseudo code is: Code:
This lends itself well to loops in RPN rather than a closed form solution (not optimized for size- probably missing some obvious byte savings): (NOTE: Unlike the original OEIS sequence, I assume f(0)==0 so there is no offset to contend with.) Code:
17bii | 32s | 32sii | 41c | 41cv | 41cx | 42s | 48g | 48g+ | 48gx | 50g | 30b |
|||
« Next Oldest | Next Newest »
|
Messages In This Thread |
OEIS A167390: Cumbersome formula - Gerald H - 08-28-2022, 10:39 AM
RE: OEIS A167390: Cumbersome formula - Allen - 08-28-2022, 11:52 AM
RE: OEIS A167390: Cumbersome formula - Allen - 08-28-2022 07:52 PM
|
User(s) browsing this thread: 1 Guest(s)