OFFSET
1,1
LINKS
G. C. Greubel, Table of n, a(n) for n = 1..200
Index entries for linear recurrences with constant coefficients, signature (111,-1110,1000).
FORMULA
EXAMPLE
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.
MATHEMATICA
Table[18*((10^n-1)/9)^2, {n, 1, 20}] (* G. C. Greubel, Jan 28 2019 *)
PROG
(Magma) [18*((10^n - 1)/9)^2: n in [1..20]]; // Vincenzo Librandi, Dec 28 2010
(PARI) a(n)=18*(10^n\9)^2 \\ Charles R Greathouse IV, Aug 21 2011
(Sage) [18*((10^n-1)/9)^2 for n in (1..20)] # G. C. Greubel, Jan 28 2019
(GAP) List([1..20], n -> 18*((10^n-1)/9)^2); # G. C. Greubel, Jan 28 2019
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Reinhard Zumkeller, May 31 2010
STATUS
approved