blackhatinside's blog

By blackhatinside, 3 years ago, In English

Can anyone tell me how we derived at the Mathematical Formula for number of multipliers of k in the given range [1 to N] as

(k — 1) / (n — 1).

Problem Link

  • Vote: I like it
  • +3
  • Vote: I do not like it

»
3 years ago, # |
  Vote: I like it 0 Vote: I do not like it

You have misunderstood the editorial, we are not finding that. Its just that after every n-1, there is a multiple of n. We are just calculating how many will we encounter such multiples and adding them.