Skip to main content
OlympiadHQ

Browse · MathNet

Print

Slovenija 2008

Slovenia 2008 number theory

Problem

Let . Assuming is a prime number, what is the least possible sum of the digits of ? Find all prime numbers for which this value is attained.
Solution
Let us find the first few . When we have , when we have and when we have . Now, let . Rewrite as . Since are five consecutive positive integers, at least one of them is divisible by . Since , is not divisible by . Hence, divides one of the numbers and must also divide their product . At least one of the numbers and is even, so this product is divisible by . Thus, for the number is divisible by . For all the number has at least two digits and the final digit is , so the sum of the digits is greater than . We conclude that the least possible sum of the digits is and this value is attained only when or .
Final answer
Least sum of digits is 9; attained for p = 2 and p = 5.

Techniques

Prime numbersFactorization techniques