MathDB
2013 preRMO p6, sum of digits S(5N + 2013)

Source:

August 8, 2019
number theorysum of digits

Problem Statement

Let S(M)S(M) denote the sum of the digits of a positive integer MM written in base 1010. Let NN be the smallest positive integer such that S(N)=2013S(N) = 2013. What is the value of S(5N+2013)S(5N + 2013)?