OFFSET
0,8
LINKS
Index entries for linear recurrences with constant coefficients, signature (2, -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, -2, 1).
FORMULA
a(n) = +2*a(n-1) -a(n-2) +a(n-19) -2*a(n-20) +a(n-21). [From R. J. Mathar, Apr 15 2010]
G.f.: -((x^5 (1+x^8) (1+(-1+x) x (1+x^2)))/(-1+x (2+x (-1+(-1+x)^2 x^17)))) Peter J. C. Moses, Jun 01 2014
MATHEMATICA
Table[Floor[(n(n-1))/19], {n, 0, 70}] (* or *) LinearRecurrence[ {2, -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, -2, 1}, {0, 0, 0, 0, 0, 1, 1, 2, 2, 3, 4, 5, 6, 8, 9, 11, 12, 14, 16, 18, 20}, 70] (* Harvey P. Dale, May 25 2013 *)
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
STATUS
approved