The number $C(n)$ , where $n$ is a positive integer is defined as follows : Write the numbers $j$ from $1$ to $n$ $j$ times. The resulting number is $C(n)$. The letter $C$ comes from the name I invented for these numbers : "Crazy Numbers"
Two examples ($C(8)$ and $C(10)$) including the PARI-routine calculating $C(n)$ :
? s=0;n=8;for(j=1,n,for(k=1,j,s=s*10^length(digits(j))+j));print(s)
122333444455555666666777777788888888
? s=0;n=10;for(j=1,n,for(k=1,j,s=s*10^length(digits(j))+j));print(s)
12233344445555566666677777778888888899999999910101010101010101010
?
Here :
How many digits does $C(n)$ have?
I asked for the number of digits of $C(n)$ (for the definition of $C(n)$, see the link in the linked question), which I finally found out. Another user asked for the digit sum of $C(n)$, and I only can say, if we denote $d(n)$ to be the digit sum of $n$, the digit sum of $C(n)$ is given by $$\sum_{j=1}^n j\cdot d(j)$$
If there would be a formula for $$\sum_{j=1}^n d(j)$$ we could derive the desired digit sum from that.
Does anyone know a concrete formula for $$\sum_{j=1}^n d(j)$$ where $d(n)$ is the digit sum of $n$ ?