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.
Has everyone who solved this question taken "Number Theory" and "Discrete Mathematics" classes in college? Did you guys use this n natural numbers formula through gauss or you came up with the formula yourselves not knowing about this formula?
I had to create a 'sum of all multiples of K' formula, yet i could not solve this problem.
This comment is hidden because it contains spoiler information about the solution
I'm having a realllyy tough time finding an O(1) algorithm that can sutract the values of K that divide more than once but is not a power of K (divide +1 but not until 1). I have everything else complete, any tips?