Data Structures & AlgorithmsHardGATE CS · Codeforces Div2 B

What is the least common multiple of the integers 2 through 20, reduced modulo 1000000007?

  1. A. 232792561
  2. B. 232792560
  3. C. 232792559
  4. D. 465585120

Correct answer: B. 232792560

Taking the lcm of all numbers up to 20 requires each prime power that does not exceed 20. Here the result is below the modulus, so the reduction changes nothing.

More Arrays, Strings, Linked Lists, Stacks, Queues and Hashing questions

Exams that ask this topic