OFFSET
0,4
LINKS
Index entries for linear recurrences with constant coefficients, signature (1,0,0,0,1,-1).
FORMULA
a(n) = floor(n/5)+floor(2n/5)+floor(3n/5).
a(n)= +a(n-1) +a(n-5) -a(n-6). G.f. ( x^4*(1+x+x^2+3*x^3) ) / ( (x^4+x^3+x^2+x+1)*(x-1)^2 ). - R. J. Mathar, Mar 18 2011
MATHEMATICA
Table[Floor[n/5]+Floor[2n/5]+Floor[3n/5], {n, 0, 120}]
LinearRecurrence[{1, 0, 0, 0, 1, -1}, {0, 0, 1, 2, 3, 6}, 130] (* Harvey P. Dale, Sep 26 2016 *)
PROG
(PARI) a(n)=n\5+2*n\5+3*n\5 \\ Charles R Greathouse IV, Mar 17 2011
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Clark Kimberling, Mar 08 2011
STATUS
approved