OFFSET
0,4
LINKS
G. C. Greubel, Table of n, a(n) for n = 0..1000 (terms 0..240 from Vincenzo Librandi)
Nicolas Gastineau and O. Togni, On S-packing edge-colorings of cubic graphs, arXiv preprint arXiv:1711.10906 [cs.DM], 2017.
Index entries for linear recurrences with constant coefficients, signature (2,1,-2).
FORMULA
a(n) = A001045(n) - 1.
a(n) = 2*a(n-1) + a(n-2) - 2*a(n-3).
G.f.: (1 - 2*x - x^2)/((x^2 - 1)*(1-2*x)).
2*a(n) = A153772(n+1).
a(2n+1) - a(2n) = A047849(n).
a(n+2) = 2*A000975(n).
a(2n+2) = a(2n) + 2^(2n).
E.g.f.: (1/3)*(exp(2*x) - 3*exp(x) - exp(-x)). - G. C. Greubel, May 30 2016
MATHEMATICA
f[n_] := (2^n - (-1)^n - 3)/3; Array[f, 32, 0]
PROG
(Magma) [(2^n-(-1)^n)/3 -1: n in [0..40] ]; // Vincenzo Librandi, Apr 28 2011
(PARI) a(n)=(2^n-(-1)^n)/3-1 \\ Charles R Greathouse IV, Oct 07 2015
CROSSREFS
KEYWORD
sign,easy
AUTHOR
Paul Curtz, Oct 27 2009
EXTENSIONS
Edited by R. J. Mathar, Dec 17 2010
STATUS
approved