OFFSET
1,2
COMMENTS
First terms of the four repeated terms belong to A051936. - Michael De Vlieger, Aug 03 2016
LINKS
Ivan Neretin, Table of n, a(n) for n = 1..10000
Index entries for linear recurrences with constant coefficients, signature (1,0,0,2,-2,0,0,-1,1).
FORMULA
G.f.: x*(1+x+x^2+x^3-x^5-x^6-x^7)/ ((1+x)^2 * (x^2+1)^2 * (1-x)^3). [Maksym Voznyy (voznyy(AT)mail.ru), Aug 11 2009; checked and corrected by R. J. Mathar, Sep 16 2009]
MATHEMATICA
LinearRecurrence[{1, 0, 0, 2, -2, 0, 0, -1, 1}, {1, 2, 3, 4, 6, 7, 8, 9, 12}, 80] (* or *) Rest[CoefficientList[Series[x*(1+x+x^2+x^3-x^5-x^6-x^7)/((1+x)^2(x^2+1)^2(1-x)^3), {x, 0, 80}], x]](* Harvey P. Dale, Jan 19 2016 *)
Table[Range[#, # + 3] &[n (n + 1)/2 - 9], {n, 4, 20}] // Flatten (* Michael De Vlieger, Aug 03 2016 *)
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Candace Mills (scorpiocand(AT)yahoo.com), Dec 19 2004
STATUS
approved