0

Maths problem:

2520 is the smallest number that can be divided by each of the numbers from 1 to 10 without any remainder. What is the smallest positive number that is evenly divisible by all of the numbers from 1 to 20?

21st Oct 2021, 3:20 PM
The Destroyer ☢️☢️
2 odpowiedzi
+ 3
Stated another way, find the least common multiple (LCM) that all the numbers 1 to 20 have in common. Start with the LCM of the first two numbers. Then find the LCM of the next number and the previous LCM, and so on... Here is a solution in Python: https://code.sololearn.com/cVdeq1pc2lXf/?ref=app
21st Oct 2021, 4:19 PM
Brian
Brian - avatar
+ 1
https://code.sololearn.com/W4jeKmSp4o7i/?ref=app
22nd Oct 2021, 11:44 AM
Calviղ
Calviղ - avatar