In an answer to Cyclic numbers are characterized by the reciprocals of full reptend primes? a user states that the sum of the digits of a number in base b is given as below:
$\frac{b^d-1}{b-1}s= \frac{d(d+1)}{2}n \ \text{where} \ s=d\frac{b-1}{2}\frac{(d+1)n}{b^d-1}\in\mathbb{N}$
I am not able to see how to arrive at this formula for $s$. Kindly provide me some insight.
Thanks!