Post Reply 
OEIS A228297: Need Help to Find Algorithm
09-16-2017, 06:46 PM (This post was last modified: 09-16-2017 06:51 PM by Gilles59.)
Post: #5
RE: OEIS A228297: Need Help to Find Algorithm
Code:
« -> n
  «
    CASE 
      'n<=s+1' THEN 1 END 
      'n<=s+k' THEN n s - END 
      `∑(j=1,k,a(n-j-(s-1)-a(n-j)))`
    END
  »
»
'a' STO

With 0 's' STO , 5 'k' STO
I get correct result for a(1) to a(5)

but a(6) returns "THEN error :undefined name"

What is the problem ?
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: OEIS A228297: Need Help to Find Algorithm - Gilles59 - 09-16-2017 06:46 PM



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