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.
so why is 16+1+1 not a solution
so, i found out that the pow function cannot do that large of numbers. i just tried it with multiplication and it works. This solution is a little bit simpler than the solution you used above
These are both in test 6
http://www.wolframalpha.com/input/?i=sum+n%5E3+for+n+from+1+to+45001
2304422822859492096 is the correct value for 55100 also
why would you use recursion on this? it would probably take a lot more time than a while or for loop
This kata needs fixed for 45001 in c++. The correct value should be 1025292944081377280
i had the same issue