OFFSET
1,2
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 1..1000
S. J. Cyvin, J. Brunvoll, E. Brendsdal, B. N. Cyvin and E. K. Lloyd, Enumeration of polyene hydrocarbons: a complete mathematical solution, J. Chem. Inf. Comput. Sci., 35 (1995) 743-751.
S. J. Cyvin, J. Brunvoll, E. Brendsdal, B. N. Cyvin and E. K. Lloyd, Enumeration of polyene hydrocarbons: a complete mathematical solution, J. Chem. Inf. Comput. Sci., 35 (1995) 743-751. [Annotated scanned copy]
FORMULA
From Gennady Eremin, Feb 22 2021: (Start)
G.f.: 1 - 2*x - sqrt(1 - 4*x).
G.f.: x*(A(x) - 1), where A(x) is the g.f. of A068875. (End)
EXAMPLE
G.f. = 2*x^2 + 4*x^3 + 10*x^4 + 28*x^5 + 84*x^6 + 264*x^7 + 858*x^8 + ...
MAPLE
A262543List := proc(m) local A, P, n; A := [0, 2]; P := [2];
for n from 1 to m - 2 do P := ListTools:-PartialSums([op(P), P[-1]]);
A := [op(A), P[-1]] od; A end: A262543List(29); # Peter Luschny, Mar 24 2022
MATHEMATICA
Table[If[n==1, 0, 2 CatalanNumber[n-1]], {n, 1, 26}] (* Peter Luschny, Feb 27 2017 *)
Join[{0}, Rest[CoefficientList[Series[2 (1 - Sqrt[1 - 4 x])/(2 x), {x, 0, 30}], x]]] (* Vincenzo Librandi, Feb 28 2017 *)
PROG
(Magma) [0] cat [2*Catalan(n-1): n in [2..40]]; // Vincenzo Librandi, Feb 28 2017
(PARI) a(n)=if(n>1, 2*binomial(2*n-2, n-1)/n, 0) \\ Charles R Greathouse IV, Feb 28 2017
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
N. J. A. Sloane, Oct 06 2015
STATUS
approved