MathDB
2012 ToT Fall Junior A p7 sum of digits = 2012

Source:

March 22, 2020
sum of digitsnumber theory

Problem Statement

Peter and Paul play the following game. First, Peter chooses some positive integer aa with the sum of its digits equal to 20122012. Paul wants to determine this number, he knows only that the sum of the digits of Peter’s number is 20122012. On each of his moves Paul chooses a positive integer xx and Peter tells him the sum of the digits of xa|x - a|. What is the minimal number of moves in which Paul can determine Peter’s number for sure?