MathDB
Subset of digits to express as a sum

Source: INMO 2020 P3

January 19, 2020
number theory

Problem Statement

Let SS be a subset of {0,1,2,,9}\{0,1,2,\dots ,9\}. Suppose there is a positive integer NN such that for any integer n>Nn>N, one can find positive integers a,ba,b so that n=a+bn=a+b and all the digits in the decimal representations of a,ba,b (expressed without leading zeros) are in SS. Find the smallest possible value of S|S|.
Proposed by Sutanay Bhattacharya
[hide=Original Wording] As pointed out by Wizard_32, the original wording is:
Let X={0,1,2,,9}.X=\{0,1,2,\dots,9\}. Let SXS \subset X be such that any positive integer nn can be written as p+qp+q where the non-negative integers p,qp, q have all their digits in S.S. Find the smallest possible number of elements in S.S.