OFFSET
0,5
REFERENCES
L. Comtet, Advanced Combinatorics, Reidel, 1974, p. 122, see #19 (2), I(n).
LINKS
Harry J. Smith, Table of n, a(n) for n = 0..1000
Index entries for linear recurrences with constant coefficients, signature (2,-1,0,0,0,1,-2,1).
FORMULA
From Chai Wah Wu, Jun 20 2020: (Start)
a(n) = 2*a(n-1) - a(n-2) + a(n-6) - 2*a(n-7) + a(n-8) for n > 7.
G.f.: (-3*x^7 + x^6 - x^5 - x^4 - x^3 - x^2 + 2*x - 1)/( (x+1)*(x^2+x+1)*(x^2-x+1)*(x-1)^3). (End)
MATHEMATICA
Table[Round[n*(5*n - 14)/12], {n, 0, 10}] + 1 (* G. C. Greubel, Jan 04 2017 *)
LinearRecurrence[{2, -1, 0, 0, 0, 1, -2, 1}, {1, 0, 0, 1, 3, 6, 9, 13}, 60] (* Harvey P. Dale, Mar 06 2022 *)
PROG
(PARI) a(n) = { round(n*(5*n - 14)/12) + 1 } \\ Harry J. Smith, Jun 25 2009
(Magma) [Round(n*(5*n-14)/12)+1: n in [0..60]]; // Vincenzo Librandi, Jan 05 2017
CROSSREFS
KEYWORD
nonn,easy,changed
AUTHOR
N. J. A. Sloane, Jan 25 2001
STATUS
approved