OFFSET
0,3
COMMENTS
Bisection of a(n) [0, 2, 12, 36, 80, 150, 252, ...] is A011379.
Bisection [0, 3, 15, 42, 90, 165, 273, ...] is A059270.
Considering s(n) = [0, 0, 0, 0, 1, 1, 3, 3, 6, 6, 10, 10, 15, 15, ...] (triangular numbers repeated - see A008805), a(n) = n*s(n+2) holds.
Considering the first differences of a(n), b(n) = [0, 2, 1 , 9, 3, 21, 6, 38, 10, 60, 15, 87, ...], b(n) shows bisections A000217 and A005476. In addition, b(n) begins like A249264 up to 12th term, and is an alternation of 4 multiples of 3 and 2 not multiples; b(n) is also such that b(2n) + b(2n+1) = A049450(n).
LINKS
Index entries for linear recurrences with constant coefficients, signature (1,3,-3,-3,3,1,-1).
FORMULA
G.f.: x^2*(2 + x + 3*x^2)/((x-1)^4*(x+1)^3).
a(n) = (1/16)*(-1)^n*n*(1 + (-1)^(n+1) + 2*(1 + (-1)^n)*n + 2*(-1)^n*n^2).
Sum_{n>=2} 1/a(n) = 5 + Pi^2/6 - 8*log(2). - Amiram Eldar, Sep 17 2022
MATHEMATICA
a[n_] := If[EvenQ[n], n^2*(n + 2)/8, (n - 1)*n*(n + 1)/8]; Table[a[n], {n, 0, 40}]
PROG
(PARI) a(n) = if(n%2==0, n^2*(n+2)/8, (n-1)*n*(n+1)/8) \\ Felix Fröhlich, Jul 23 2017
CROSSREFS
KEYWORD
nonn
AUTHOR
Jean-François Alcover and Paul Curtz, Jul 23 2017
STATUS
approved