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.
I think recursion may be a little risky here, as the max recusion depth may be reached for strange values of n.
wow!
polymorphic recursion :)
I personally like this solution because it reads easily and you can see exactly what is happening.
the cut == 0 check is not actually required here because n*(n+1)/2 will equate to 0.
Assigning self.other_name is possibly not a great idea as this variable is not being used by any other methods in the class.