Just the formula for the sum of the first n numbers of geometric progression
[tex]10^1 + ... + 10^n = \frac{10^{n+1}-1}{9}[/tex]
The number is equal to [tex]4(10^{2n-1} + ... + 10^n) + 8(10^{n-1} + ... + 10) + 9[/tex]
But [tex]10^{2n-1} + ... + 10^n = (10 + ... + 10^{2n-1}) - (10 + ... + 10^{n-1}) = \frac{10^{2n} - 1}{9} - \frac{10^{n} - 1}{9}[/tex][tex]= \frac{10^{2n} - 10^{n} }{9}[/tex]
So the number is
[tex]\frac{4.(10^{2n} - 10^n) + 8.(10^n - 1) + 9}{9} = \frac{4.10^{2n} +4.10^n + 1}{9} = \frac{(2.10^n+1)^2}{9} = (\frac{2.10^n+1}{3})^2[/tex]