OFFSET
0,3
LINKS
Harry J. Smith, Table of n, a(n) for n = 0..1000
G. L. Cohen and E. Tonkes, Dartboard arrangements, Elect. J. Combin., 8 (No. 2, 2001), #R4.
Index entries for linear recurrences with constant coefficients, signature (4,-5,0,5,-4, 1).
FORMULA
G.f.: 2*x^2*(1+x+7*x^2-3*x^3)/((1-x)^5*(1+x)). - Colin Barker, Apr 20 2012
a(n) = 4*a(n-1) - 5*a(n-2) + 5*a(n-4) - 4*a(n-5) + a(n-6). - Vincenzo Librandi, Jun 19 2018
MATHEMATICA
Table[If[EvenQ[n], n^4/4-2n^2+3n, n^4/4-2n^2+3n-5/4], {n, 0, 40}] (* Harvey P. Dale, Dec 02 2014 *)
LinearRecurrence[{4, -5, 0, 5, -4, 1}, {0, 0, 2, 10, 44, 120}, 40] (* Vincenzo Librandi, Jun 19 2018 *)
PROG
(PARI) a(n) = { (n^4/4 - 2*n^2 + 3*n) - if (n%2, 5/4, 0) } \\ Harry J. Smith, Sep 28 2009
(PARI) a(n) = n^4\4 - 2*n^2 + 3*n - n%2 \\ Charles R Greathouse IV, Dec 29 2024
(Magma) I:=[0, 0, 2, 10, 44, 120]; [n le 6 select I[n] else 4*Self(n-1) - 5*Self(n-2) + 5*Self(n-4) - 4*Self(n-5) + Self(n-6): n in [1..40]]; // Vincenzo Librandi, Jun 19 2018
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
N. J. A. Sloane, Oct 25 2001
STATUS
approved