First of, you are the first one who has the courage to give it a try. Nice. The solution is a single function for all n. The sequence looks like 2^n variant, but it isn't. A small hint: F(n) = ... +1.
You are viewing a single comment's thread from:
First of, you are the first one who has the courage to give it a try. Nice. The solution is a single function for all n. The sequence looks like 2^n variant, but it isn't. A small hint: F(n) = ... +1.
Thanks for the tip, I've got it now- 7. You sum the digits of the previous value and then add 1.