OFFSET
1,2
COMMENTS
a(n) are also n-1 twos followed by a one.
Sum of n-th row of triangle of powers of 10: 1; 10 1 10; 100 10 1 10 100; 1000 100 10 1 10 100 1000; ... - Philippe Deléham, Feb 24 2014
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 1..100
Markus Tervooren, Factorizations of (2)w1
Index entries for linear recurrences with constant coefficients, signature (11,-10).
FORMULA
a(n) = 10*a(n-1) + 11, a(1) = 1. - Philippe Deléham, Feb 24 2014
a(n) = 11*a(n-1) - 10*a(n-2), a(1) = 1, a(2) = 21. - Philippe Deléham, Feb 24 2014
G.f.: x*(1+10*x)/((1-x)*(1-10*x)). - Philippe Deléham, Feb 24 2014
EXAMPLE
a(1) = 1;
a(2) = 10 + 1 + 10 = 21;
a(3) = 100 + 10 + 1 + 10 + 100 = 221;
a(4) = 1000 + 100 + 10 + 1 + 10 + 100 + 1000 = 2221; etc. - Philippe Deléham, Feb 24 2014
MATHEMATICA
Table[FromDigits[PadLeft[{1}, n, 2]], {n, 20}] (* or *) (2*10^Range[20]-11)/9 (* Harvey P. Dale, Aug 10 2011 *)
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Ivan Panchenko, Sep 17 2009
STATUS
approved