A digit sum s_b(n) is a sum of the base-b digits of n. The base-10 digit sum of the integer n is implemented in the Wolfram Language as DigitSum[n], and the base-b digit sum as DigitSum[n, b]. The following table gives s_b(n) for n = 1, 2, ... and small b.
We guarantee you’ll find the right tutor, or we’ll cover the first hour of your lesson.