OFFSET
0,10
LINKS
Harvey P. Dale, Table of n, a(n) for n = 0..1000
Index entries for linear recurrences with constant coefficients, signature (2,-1,0,0,0,0,0,0,0,0,0,0,0,0,1,-2,1).
FORMULA
From R. J. Mathar, Apr 15 2010: (Start)
a(n) = 2*a(n-1) - a(n-2) + a(n-15) - 2*a(n-16) + a(n-17).
G.f.: x^6*(x^2 - x + 1)*(x^4 - x^2 + 1)/((1 - x)^3*(1 + x^4 + x^3 + x^2 + x)*(1 + x + x^2)*(1 - x + x^3 - x^4 + x^5 - x^7 + x^8)). (End)
MATHEMATICA
Join[{0}, Floor[#/15]&/@Accumulate[Range[0, 80]]] (* or *) Table[Floor[ (n(n-1))/30], {n, 0, 80}] (* Harvey P. Dale, May 18 2019 *)
PROG
(Magma) [(n*(n-1)) div 30: n in [0..100]]; // Vincenzo Librandi, May 19 2019
(PARI) a(n) = (n*(n-1))\30; \\ Michel Marcus, May 19 2019
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
EXTENSIONS
More terms from Vladimir Joseph Stephan Orlovsky, Mar 14 2010
STATUS
approved