cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A178630 a(n) = 18*((10^n - 1)/9)^2.

Original entry on oeis.org

18, 2178, 221778, 22217778, 2222177778, 222221777778, 22222217777778, 2222222177777778, 222222221777777778, 22222222217777777778, 2222222222177777777778, 222222222221777777777778, 22222222222217777777777778, 2222222222222177777777777778, 222222222222221777777777777778
Offset: 1

Views

Author

Reinhard Zumkeller, May 31 2010

Keywords

Examples

			n=1: ..................... 18 = 9 * 2;
n=2: ................... 2178 = 99 * 22;
n=3: ................. 221778 = 999 * 222;
n=4: ............... 22217778 = 9999 * 2222;
n=5: ............. 2222177778 = 99999 * 22222;
n=6: ........... 222221777778 = 999999 * 222222;
n=7: ......... 22222217777778 = 9999999 * 2222222;
n=8: ....... 2222222177777778 = 99999999 * 22222222;
n=9: ..... 222222221777777778 = 999999999 * 222222222.
		

Crossrefs

Programs

Formula

a(n) = 18*A002477(n) = A002283(n)*A002276(n).
a(n)=((A002276(n-1)*10 + 1)*10^(n-1) + A002281(n-1))*10 + 8.
G.f.: 18*x*(1 + 10*x)/((1 - x)*(1 - 10*x)*(1 - 100*x)). - Ilya Gutkovskiy, Feb 24 2017
From Elmo R. Oliveira, Jul 30 2025: (Start)
E.g.f.: 2*exp(x)*(1 - 2*exp(9*x) + exp(99*x))/9.
a(n) = 111*a(n-1) - 1110*a(n-2) + 1000*a(n-3) for n > 3. (End)