General Exercises
How many divisor does 504 have in ℕ?
What's the sum of the numbers from 50 to 250 (extremes included)?
Solutions
The factorizarion of 504 is 7 ⋅ 32 ⋅ 23. We can count the number of ways to pick i, j, k such that 7i ⋅ 3j ⋅ 2k divides 7 ⋅ 32 ⋅ 23: We have 2 choices for i, 3 choices for j, and 4 choices for k. Thus 24 divisors. ■
250 ⋅ 151/2 = 18875. ■