OFFSET
1,2
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 1..1000
Index entries for linear recurrences with constant coefficients, signature (1,1,-1)
FORMULA
a(n) = 6*n - a(n-1) - 6 for n>1, a(1)=0.
G.f.: 6*x^2/((1+x)*(1-x)^2). - Bruno Berselli, Sep 17 2013
a(n) = 6*A004526(n). Bruno Berselli, Sep 17 2013
E.g.f.: 3*(x*cosh(x) + (x - 1)*sinh(x)). - G. C. Greubel, Jul 18 2016
MATHEMATICA
Table[6 Floor[n/2], {n, 70}] (* Bruno Berselli, Sep 18 2013 *)
PROG
(Magma) [n eq 1 select 0 else 6*n-Self(n-1)-6: n in [1..70]]; // Vincenzo Librandi, Sep 17 2013
CROSSREFS
KEYWORD
nonn,easy,less
AUTHOR
Vincenzo Librandi, Nov 23 2009
EXTENSIONS
G.f. adapted to the offset by Vincenzo Librandi, Sep 17 2013
New definition by Bruno Berselli, Sep 18 2013
STATUS
approved