OFFSET
0,2
LINKS
FORMULA
a(n+2) = 8*a(n+1) - a(n) + 3.
G.f.: -3*x / ( (x-1)*(x^2-8*x+1) ). - R. J. Mathar, Nov 27 2011
a(n) = 9*a(n-1) - 9*a(n-2) + a(n-3); a(0)=0, a(1)=3, a(2)=27. - Harvey P. Dale, May 06 2013
MATHEMATICA
RecurrenceTable[{a[0]==0, a[1]==3, a[n]==8a[n-1]-a[n-2]+3}, a, {n, 30}] (* or *) LinearRecurrence[{9, -9, 1}, {0, 3, 27}, 30] (* Harvey P. Dale, May 06 2013 *)
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Richard Choulet, Oct 14 2008
EXTENSIONS
Made definition and sequence consistent. Changed offset to 0. - R. J. Mathar, Oct 16 2008
STATUS
approved