MathDB
NMTC Junior 2023 P7

Source: NMTC Junior 2023 P7

November 8, 2023
number theorynmtc

Problem Statement

Let nn be a positive integer; and S(n)S(n) denote the sum of all digits in the decimal representation of nn. A positive integer obtained by removing one or several digits from the right hand end of the decimal representation of nn is called the truncation of nn. The sum of all truncations of nn is denoted as T(n)T(n). Prove that S(n)+9T(n)=nS(n)+9T(n)=n