OFFSET
1,1
COMMENTS
a(n) are also n-1 units followed by a seven.
LINKS
Markus Tervooren, Factorizations of (1)w7
Index entries for linear recurrences with constant coefficients, signature (11,-10).
FORMULA
a(n) = 9*a(n-1)-8*a(n-2)+2*10^(n-2) for n>2, a(1)=7, a(2)=17. [Vincenzo Librandi, Aug 02 2010]
a(n) = 11*a(n-1)-10*a(n-2). G.f.: -x*(60*x-7)/((x-1)*(10*x-1)). [Colin Barker, Jan 24 2013]
MATHEMATICA
Table[FromDigits[PadLeft[{7}, n, 1]], {n, 20}] (* Harvey P. Dale, Oct 17 2011 *)
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Ivan Panchenko, Sep 10 2009
STATUS
approved