OFFSET
0,2
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 0..500
Guo-Niu Han, Enumeration of Standard Puzzles, arXiv:2006.14070 [math.CO], 2020.
Guo-Niu Han, Enumeration of Standard Puzzles. [Cached copy]
Index entries for linear recurrences with constant coefficients, signature (7,-15,13,-4).
FORMULA
G.f.: (1 - 4*x + 6*x^2 + 3*x^3)/((1 - x)^3*(1 - 4*x)). - Colin Barker, May 29 2012
E.g.f.: exp(4*x) - x*(1 + x)*exp(x). - G. C. Greubel, Aug 18 2023
MATHEMATICA
Table[4^n-n^2, {n, 0, 30}] (* or *) LinearRecurrence[{7, -15, 13, -4}, {1, 3, 12, 55}, 30] (* Harvey P. Dale, Sep 14 2013 *)
PROG
(Magma) [ 4^n-n^2: n in [0..30] ]; // Vincenzo Librandi, Dec 25 2010
(SageMath) [4^n-n^2 for n in range(31)] # G. C. Greubel, Aug 18 2023
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
STATUS
approved