I would like to express
$$1+22+333+4444+\cdots$$
using $\Sigma$ notation, and have no clue where to start.
After $999999999$, comes 10 $0$s, then 11 $1$s.
I would like to express
$$1+22+333+4444+\cdots$$
using $\Sigma$ notation, and have no clue where to start.
After $999999999$, comes 10 $0$s, then 11 $1$s.
The terms of the sequence are
$$a_n =\left(n-10\cdot\left\lfloor\frac{n}{10}\right\rfloor\right)\cdot\frac{10^{n}-1}{9}$$
the sum of your series is $\infty$
$$\sum_{n=1}^{\infty}\left(n-10\cdot\left\lfloor\frac{n}{10}\right\rfloor\right)\cdot\frac{10^{n}-1}{9}$$
Considering $$ 4444 = 4*10^{3} + 4*10^{2} + 4*10^{1} + 4*10^{0} $$
I think a double sum and modulo is a lot more intuitive: $$ \sum_{n=1}^{\infty}\sum_{m=1}^{n}(n \text{ mod } 10)*10^{m-1} $$
I've derived the formula that gives the sum of the series for $n$ terms. For example the series:
$$1 + 22 + 333 + 4444,$$ has four terms.
Let $n$ be the number of terms. Let $S_n$ be the sum of the $n$ terms. Then
$$S_n = \frac{1}{1458}\left((18n-2)10^{n+1} -81n^2 -81n + 20 \right)$$
Sn = S{n-1} + n(1 + 10 + 100 +...+10^(n-1)) where S{n-1} is the sum up to the (n-1)th term
S{n-1} = S{n-2} + (n-1)(1 + 10 + 100 + ... + 10^(n-2))
So Sn = S{n-2} + (n-1)(1 + 10 + 100 + ... + 10^(n-2)) + n(1 + 10 + 100 +...+10^(n-1))
Also, 1 + 10 + 100 +...+10^n = (10^(n+1) - 1)/9
So Sn = S{n-2} + (n-1)[(10^(n-1) - 1)/9] + n[(10^n - 1)/9]
I kept substituting these S{n-k} equivalencies for S{n-k-1} until I got to S1 = 1
I ended up with the following series:
– Nissim Levy Jan 16 '21 at 21:48This is expressed as Sum( (n-k)[(10^(n-k) - 1)/9] ) k = 0 to n-1
In the above summation n is a constant term and k is the variable over which the summation is performed.
So Sn = Sum( (n)[(10^(n-k) - 1)/9] - (k)[(10^(n-k) - 1)/9] ) k = 0 to n-1
– Nissim Levy Jan 16 '21 at 21:48n is a constant, so we can put it outside the summation, but K isn't. So we can write:
n/9 * Sum(10^(n-k) - 1) - 1/9 * Sum(k10^(n-k) - k) k = 0 to n-1 k = 0 to n-1
The sum formula for the first summation is easily found so I won't show it here. The second term is more tricky becasue it's comprised of k multiplied by 10^(n-k) and these two cannot be separated.
– Nissim Levy Jan 16 '21 at 21:48sum = 10^(n-1) + 210^(n-2) + 3 10^(n-3) + ... + k * 10^(n-k) +...+ (n-1)10 1/10Sum = 10^(n-2) + 210^(n-3) + 3 10^(n-4) + ... + k * 10^(n-k-1) +...+ (n-1)
Sum - 1/10Sum = 10^(n-1) + 10^(n-2) + 10^(n-3) +...+ 10^(n-k) + 10 - n + 1 1/10(Sum - 1/10Sum) = 10^(n-2) + 10^(n-3) + 10^(n-4) +...+ 10^(n-k - 1) + 1 -n/10 + 1/10 1/10(Sum - 1/10Sum) = (10^(n-1) - 1)/9 -n/10 + 1/10
and now we just need to solve for the sum and add it into the whole expression whose steps I skipped.
– Nissim Levy Jan 16 '21 at 21:49