Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
Your comment really helped me to save this Kata. I was convinced my code worked, but you pointed out the subtle difference.
My computer is out of order :-(
The wording in the kata description is confusing (or maybe even plain wrong). The n-th term is not the same as f(n). Example f(10) = 236, but the 10th term in the sequence is f(9), the one before (remember we count from 0).
So the description should be changed from "Your task is to give the number of total values for the odd terms of the sequence up to the n-th term (included)." to "Your task is to give the number of total values for the odd terms of the sequence up to and including f(n)."
The wording in the kata description is confusing (or maybe even plain wrong). The n-th term is not the same as f(n). Example f(10) = 236, but the 10th term in the sequence is f(9), the one before (remember we count from 0).