OFFSET
1,3
LINKS
Index entries for linear recurrences with constant coefficients, signature (1,0,0,0,1,-1).
FORMULA
a(n) = floor((6n-3)/5). - Gary Detlefs, Mar 07 2010
G.f.: x^2*(1+x)*(x^3+x+1) / ( (x^4+x^3+x^2+x+1)*(x-1)^2 ). - R. J. Mathar, Oct 08 2011
Sum_{n>=2} (-1)^n/a(n) = log(2+sqrt(3))/sqrt(3) - (3-2*sqrt(3))*Pi/36. - Amiram Eldar, Dec 17 2021
a(n) = a(n-1) + a(n-5) - a(n-6). - Wesley Ivan Hurt, Sep 05 2025
a(n) ~ 6*n/5. - Charles R Greathouse IV, May 26 2026
MAPLE
seq(floor((6*n-3)/5), n= 1..70); # Gary Detlefs, Mar 07 2010
MATHEMATICA
Flatten[#+{0, 1, 3, 4, 5}&/@(6Range[0, 12])] (* Harvey P. Dale, Apr 21 2011 *)
PROG
(PARI) a(n)=(6*n-3)\5 \\ Charles R Greathouse IV, May 26 2026
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
STATUS
approved
