Lemma 4. $\digitsum(n+1)-\digitsum n = 1 -9\operatorname{tr} n$.
Proof 4. What happens to the digits when we add $1$ to $n$? The leftmostrightmost non-$9$ digit is increased by $1$, and all the trailing $9$s to the right of it are reduced from $9$ to $0$. Remaining digits are unaffected. The result follows. $\qed$
Forgot coefficient of $\operatorname{ls} n$ equivalent formula for $\operatorname{tr} n$
butter-imbiber
- 159
- 1
- 7