Browse · MathNet
Print75th Romanian Mathematical Olympiad
Romania algebra
Problem
We will call a positive integer special if the sum of its (decimal) digits and the sum of the digits of its successor are divisible by .
a) Find the last five digits of a special number.
b) Prove that there are infinitely many special numbers.
a) Find the last five digits of a special number.
b) Prove that there are infinitely many special numbers.
Solution
a) Denote the sum of the digits of a positive integer . Let be a special number with digits. The statement says that and . If , then , hence . So, if , then , false. Consequently . Suppose that the last digits of are and the is different from . Then and , so and . Therefore , showing that is a multiple of . The smallest such is , hence the last five digits of a special number are nines.
b) From a) follows that the special numbers are of the form , where is conveniently chosen. Since and , it is enough to find with the last digit different from and with the property , where is a positive integer. In particular, if , the numbers of the form , with , have the sum of their digits . The above show that, for each , the number is special, and there are infinitely many such numbers.
b) From a) follows that the special numbers are of the form , where is conveniently chosen. Since and , it is enough to find with the last digit different from and with the property , where is a positive integer. In particular, if , the numbers of the form , with , have the sum of their digits . The above show that, for each , the number is special, and there are infinitely many such numbers.
Final answer
a) 99999. b) There are infinitely many, for example all numbers of the form n = 2·10^(q+5) + 899999 for any integer q ≥ 1.
Techniques
IntegersOther