I noticed a repetitive, palindromic pattern when I've performed exponentiation with $10$. That is: $$(\frac{10^n-1}{9})^2 \text{ has a palindromic pattern, }\forall\:n\in [1;9]\:(n\in \mathbb{N})$$
We define $f(n)=(\frac{10^n-1}{9})^2$.
$f(1) = \color{red}{1}$
$f(2) = \color{red}{1}\color{blue}{2}\color{red}{1}$
$f(3) = \color{red}{1}\color{blue}{2}\color{green}{3}\color{blue}{2}\color{red}{1}$
$$...$$
- $f(9) = \color{red}{1}\color{blue}{2}\color{green}{3}\color{pink}{4}\color{magenta}{5}6\color{grey}{7}\color{brown}{8}\color{orange}{9}\color{brown}{8}\color{grey}{7}6\color{magenta}{5}\color{pink}{4}\color{green}{3}\color{blue}{2}\color{red}{1}$*
I was wondering why this expression has such results. Not only they are palindromic, they are in fact using ascending consecutive digits until the sequence repeats, in descending order. Can anyone explain why the structure of these numbers is so strange?
Thanks in advance!
You're squaring $\frac{10^{n}-1}{10-1}=10^{n-1}\sum_{k=0}^{n-1}(\frac{1}{10})^k$. To square $\sum_k x^k$ note each $x^p$ with $0\le p\le 2n-2$ can be achieved in one of $p+1$ ways for $p\le n$ and $2n-p-1$ ways otherwise. (You can think of it as a binomial-theorem truncation of $(1+x)^{-2}$, though the high-power coefficients are a little different because some ways you could try to achieve them require a factor beyond $x^{n-1}$.) For $n\le 10$, all coefficients are single-digit numbers, giving the pattern you observed. You may wish to use similar logic to see, for example, what happens with cubes.