Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

formula variants #301

Closed
wants to merge 13 commits into from
Closed

formula variants #301

wants to merge 13 commits into from

Conversation

ckrause
Copy link
Contributor

@ckrause ckrause commented Dec 16, 2023

No description provided.

@ckrause ckrause added the enhancement Improvement that is not a feature label Dec 16, 2023
@ckrause ckrause changed the title WIP: formula variants formula variants Dec 16, 2023
@ckrause
Copy link
Contributor Author

ckrause commented Dec 16, 2023

Checking 14 terms of A117791: (a(n) = b(n+2)); (b(n) = if(n==7,6,if(n==6,4,if(n==5,3,if(n==4,2,if(n==3,1,if(n==2,1,if(n==1,0,if(n==0,0,b(n-8)+c(n-2)+c(n-4)))))))))); (c(n) = if(n==7,9,if(n==6,6,if(n==5,4,if(n==4,3,if(n==3,2,if(n==2,1,if(n==1,1,if(n==0,1,c(n-1)+c(n-3)+c(n-8))))))))))
2023-12-16 17:45:16|INFO |Generated sequence: 1,1,2,3,4,6,9,13,21,31,47,71,106,159
2023-12-16 17:45:16|INFO |Expected sequence:  1,1,2,3,4,6,9,13,20,30,45,68,102,153

One extra initial term is missing for A117791.

@ckrause ckrause closed this Dec 23, 2023
@ckrause ckrause deleted the formula-variants branch December 23, 2023 13:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Improvement that is not a feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant