OFFSET
0,7
COMMENTS
Partial sums of A004697.
LINKS
Andrew Howroyd, Table of n, a(n) for n = 0..1000
Mircea Merca, Inequalities and Identities Involving Sums of Integer Functions J. Integer Sequences, Vol. 14 (2011), Article 11.9.1.
Index entries for linear recurrences with constant coefficients, signature (3,-3,2,-2,2,-1,-1,1).
FORMULA
a(n) = 3*a(n-1) - 3*a(n-2) + 2*a(n-3) - 2*a(n-4) + 2*a(n-5) - a(n-6) - a(n-7) + a(n-8).
a(n) = round(Fibonacci(n+2)/4 - n/3 - 3/8).
a(n) = round(Fibonacci(n+2)/4 - n/3 - 1/4).
a(n) = floor(Fibonacci(n+2)/4 - n/3 - 1/12).
a(n) = ceiling(Fibonacci(n+2)/4 - n/3 - 2/3).
a(n) = a(n-6) + Fibonacci(n-1) - 2, n > 6.
G.f.: -x^5/((x^2+x+1)*(x^2-x+1)*(x^2+x-1)*(x-1)^2).
EXAMPLE
a(7) = 0 + 0 + 0 + 0 + 0 + 1 + 2 + 3 = 6.
MAPLE
A179006 := proc(n) add( floor(combinat[fibonacci](i)/4), i=0..n) ; end proc:
MATHEMATICA
f[n_] := Floor[ Fibonacci@ n/4]; Accumulate@ Array[f, 38]
LinearRecurrence[{3, -3, 2, -2, 2, -1, -1, 1}, {0, 0, 0, 0, 0, 1, 3, 6}, 40] (* Harvey P. Dale, Jan 28 2020 *)
PROG
(PARI) a(n)={round(fibonacci(n+2)/4 - n/3 - 3/8)} \\ Andrew Howroyd, May 01 2020
CROSSREFS
KEYWORD
nonn
AUTHOR
Mircea Merca, Jan 03 2011
STATUS
approved