Prove that for some integer m(m>1), assuming there exists a positive integer n such that equation (1) holds. Let
n=10kak+10k−1ak−1+⋯+10a1+a0,
where ak,ak−1,⋯,a0 are non-negative integers no greater than 9, and ak⩾1.
Thus, S(n)=ak+ak−1+⋯+a0.
(1) k<10m−10, contradiction.
(3) k>m.
It is easy to see that n has at least one more digit than 10m.
By ak+ak−1+⋯+am+am−1+⋯+a0=10kak+10k−1ak−1+⋯+10m(am−1)+10m−1am−1+⋯+a0+10,
then ak=1,ak−1=⋯=am=am−1=⋯=a1=0.
Thus, n−S(n)=10k−1>10m−10, contradiction.
In summary, the generalization holds.