OFFSET
0,2
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 0..400
Index entries for linear recurrences with constant coefficients, signature (11,-27,25,-8).
FORMULA
G.f.: (1-4*x+10*x^2+7*x^3)/((1-8*x)*(1-x)^3). - Vincenzo Librandi, Oct 06 2014
a(n) = 11*a(n-1) -27*a(n-2) +25*a(n-3) -8*a(n-4) for n>3. - Vincenzo Librandi, Oct 06 2014
MATHEMATICA
Table[8^n - n^2, {n, 0, 25}] (* or *) CoefficientList[Series[(1 - 4 x + 10 x^2 + 7 x^3)/((1 - 8 x) (1 - x)^3), {x, 0, 30}], x] (* Vincenzo Librandi, Oct 06 2014 *)
LinearRecurrence[{11, -27, 25, -8}, {1, 7, 60, 503}, 30] (* Harvey P. Dale, Feb 13 2023 *)
PROG
(Magma) [8^n-n^2: n in [0..20]]; // Vincenzo Librandi, Jul 05 2011
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
STATUS
approved