I was looking around on the internet until I stumbled upon this equation.
$$111111111\times111111111 = 12345678987654321$$ How does this actually work? It is quite amazing how the number ascend and then descend by ones.
Mathematics Stack Exchange is a question and answer site for people studying math at any level and professionals in related fields. It only takes a minute to sign up.
Sign up to join this communityI was looking around on the internet until I stumbled upon this equation.
$$111111111\times111111111 = 12345678987654321$$ How does this actually work? It is quite amazing how the number ascend and then descend by ones.
Just multiply it out with the grade school pen-and-paper algorithm:
111111111 x 111111111
---------------------
111111111
111111111
111111111
111111111
111111111
111111111
111111111
111111111
111111111
------------------
12345678987654321
Each digit of the result comes from summing the digits in one column -- that is, counting how many ones there are. Since this is at most 9, there are no carries between columns.
$$\left(\sum_{k=0}^n 10^k\right)^2 = \sum_{i=0}^n \sum_{j=0}^n 10^{i+j} $$ There are $k+1$ occurrences of $10^k$, namely $(i,j)=(0,k),(1,k-1),\ldots, (k,0)$, if $k \le n$, and $2n+1-k$, namely $(i,j) = (k-n,n),(k-n+1,n-1),\ldots,(n,k-n)$, if $n < k \le 2n$. If $n \le 8$ this means the decimal representation of $(1\ldots1)\times(1\ldots1)$ is $12 \ldots n (n+1) n \ldots 21$.