OFFSET
0,8
COMMENTS
The sequence can be obtained from A008585 by deleting the last digit of each term.
LINKS
Index entries for linear recurrences with constant coefficients, signature (1,0,0,0,0,0,0,0,0,1,-1).
FORMULA
O.g.f.: x^4*(1 + x^3 + x^6)/((1 + x)*(1 - x)^2*(1 - x + x^2 - x^3 + x^4)*(1 + x + x^2 + x^3 + x^4)) = (x^4 + x^7 + x^10)/(1 - x - x^10 + x^11).
a(n) = a(n-1) + a(n-10) - a(n-11) for n > 10.
MATHEMATICA
Table[Floor[3 n/10], {n, 0, 80}]
LinearRecurrence[{1, 0, 0, 0, 0, 0, 0, 0, 0, 1, -1}, {0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3}, 80]
PROG
(Julia) [div(3*n, 10) for n in 0:80] |> println
(PARI) vector(80, n, n--; floor(3*n/10))
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Bruno Berselli, Sep 11 2019
STATUS
approved
