OFFSET
1,2
COMMENTS
Third column of A164851. The repeating pattern corresponds to the decimal expansion of 11/81 = 0.13580246913580246...
LINKS
Colin Barker, Table of n, a(n) for n = 1..1000
Index entries for linear recurrences with constant coefficients, signature (12,-21,10).
FORMULA
a(1)=1, a(2)=13, a(3)=135, a(n) = 12*a(n-1)-21*a(n-2)+10*a(n-3). - Harvey P. Dale, Aug 16 2012
G.f.: -x*(x+1) / ((x-1)^2*(10*x-1)). - Colin Barker, Oct 03 2015
MATHEMATICA
RecurrenceTable[{a[1] == 1, a[n] == 10 a[n - 1] + 2 n - 1}, a, {n,
30}] (* or *) LinearRecurrence[{12, -21, 10}, {1, 13, 135}, 30] (* Harvey P. Dale, Aug 16 2012 *)
PROG
(PARI) Vec(-x*(x+1)/((x-1)^2*(10*x-1)) + O(x^30)) \\ Colin Barker, Oct 03 2015
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Mark Dols, Jul 20 2010
STATUS
approved