OFFSET
0,2
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 0..300
Index entries for linear recurrences with constant coefficients, signature (15,-39,37,-12).
FORMULA
G.f.: (1-4*x+14*x^2+11*x^3)/((1-12*x)*(1-x)^3). - Vincenzo Librandi, Oct 06 2014
MATHEMATICA
Table[12^n - n^2, {n, 0, 25}] (* or *) CoefficientList[Series[(1 - 4 x + 14 x^2 + 11 x^3)/((1 - 12 x) (1 - x)^3), {x, 0, 30}], x] (* Vincenzo Librandi, Oct 06 2014 *)
PROG
(Magma) [12^n-n^2: n in [0..20]]; // Vincenzo Librandi, Jul 01 2011
(PARI) a(n)=12^n-n^2 \\ Charles R Greathouse IV, Jul 01 2011
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
STATUS
approved