The answer is 2137.
First of all, let's observe that x=63, y=2137 satisfies the given relation. In fact,
S(64)S(63)+S(1)=10077+1=10078<108andS(4160)S(2137)+S(2023)=101004131+3747=101007878=10078<108.
Now let's assume that the octal representation of x ends with exactly k digits “7” (maybe k=0). In other words, x=a⋅8k+8k−1 where a is a nonnegative integer satisfying amod8<7. In particular, we know that S(a+1)=S(a)+1 because there is no carry in addition in the octal system, since amod8<7. Therefore,
S(x)=S(a⋅8k+8k−1)=S(a)⋅10k+97(10k−1)andS(x+1)=S((a+1)⋅8k)=S(a+1)⋅10k=(S(a)+1)⋅10k.
Let's observe that k=0 would imply that S(x)+S(1)=S(x+1) and therefore k=0. k≥3 would imply x≥83−1>100 and therefore k=1 or k=2. If k=2 then a=0 (because 82+82−1>100) and therefore x=82−1=63 and S(x+1)S(x)+S(1)=10078. k=1 is also impossible because:
10S(a)+1010S(a)+8<108⟹10S(a)+8<8S(a)+8⟹S(a)<0.
Now let's assume that we can find a solution with y<2137=41318. Then y has at most 4 digits in its octal representation. Let di for i=0,1,2,3 be equal to 1 if there is a carry at the i-th position in addition of y and 2023=37478 in octal system. It is easy to conclude that
S(y+2023)−S(y)−S(2023)=i=0∑3(−8)⋅10i⋅di+i=0∑310i+1⋅di=2i=0∑310i⋅di.
We have the implication:
S(y+2023)S(y)+S(2023)=10078⟹⟹S(y)+S(2023)S(y+2023)−S(y)−S(2023)S(y)+S(2023)=1178i=0∑310i⋅di.=2278
We know that d3=1 because otherwise we would have:
S(y)+S(2023)≤1178⋅111<3747=S(2023).
Because 78 is coprime with 11, we need to have the divisibility 11∣∑i=0310i⋅di. Since d3=1, there are only three possible cases: ∑i=0310i⋅di=1001,1100,1111. They correspond to S(y)+S(2023)=7098,7800,7878, so S(y)=3351,4053,4131. The first two cases are impossible because they assume d1=0 but 5+4>7, so there has to be a carry at the first position.