OFFSET
0,3
LINKS
M. F. Hasler, Table of n, a(n) for n = 0..1000
FORMULA
From Chai Wah Wu, Jun 07 2016: (Start)
a(n) = a(n-1) + a(n-4) - a(n-5) for n > 4.
G.f.: x*(4*x^3 + 2*x^2 + 3*x + 1)/(x^5 - x^4 - x + 1). (End)
a(n) = n + A187326(n), where A187326(n) = [n/4] + [n/2] + [3n/4], [.] = floor. - M. F. Hasler, Nov 21 2017
MATHEMATICA
PROG
(PARI) A187331(n)=n\4+n\2+3*n\4+n \\ M. F. Hasler, Nov 21 2017
CROSSREFS
KEYWORD
nonn
AUTHOR
Clark Kimberling, Mar 08 2011
STATUS
approved