Ad
  • Custom User Avatar

    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.

  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Custom User Avatar

    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?