OFFSET
0,2
COMMENTS
Number of symmetric chiral (optically active) isomers possible for organic compounds with n distinct carbon atoms.
A020522 interleaved with A004171 and apparently the number of asymmetric Dyck (n+2)-paths with exactly half of the steps lying between the first and last peaks; e.g. all asymmetric 3-paths (UU*DDU*D and U*DUU*DD) comply so a(1)=2. - David Scambler, Sep 14 2012
LINKS
Harvey P. Dale, Table of n, a(n) for n = 0..1000
Index entries for linear recurrences with constant coefficients, signature (2,2,-4).
FORMULA
a(n) = 2*A007179(n). - R. J. Mathar, Nov 14 2011
From G. C. Greubel, Jun 22 2019:
a(n) = 2^((n - 2)/2)*(2^((n + 2)/2) - 1 - (-1)^n).
E.g.f.: exp(2*x) - cosh(sqrt(2)*x). (End)
MAPLE
f := n -> if n mod 2 = 0 then 2^n-2^(n/2) else 2^n; fi;
MATHEMATICA
CoefficientList[Series[2x (1-x)/((1-2x)(1-2x^2)), {x, 0, 30}], x] (* or *) LinearRecurrence[{2, 2, -4}, {0, 2, 2}, 30] (* Harvey P. Dale, Dec 04 2018 *)
PROG
(PARI) my(x='x+O('x^30)); concat([0], Vec(2*x*(1-x)/((1-2*x)*(1-2*x^2)))) \\ G. C. Greubel, Jun 22 2019
(Magma) R<x>:=PowerSeriesRing(Integers(), 30); [0] cat Coefficients(R!( 2*x*(1-x)/((1-2*x)*(1-2*x^2)) )); // G. C. Greubel, Jun 22 2019
(Sage) (2*x*(1-x)/((1-2*x)*(1-2*x^2))).series(x, 30).coefficients(x, sparse=False) # G. C. Greubel, Jun 22 2019
(GAP) a:=[0, 2, 2];; for n in [4..30] do a[n]:=2*a[n-1]+2*a[n-2]-4*a[n-3]; od; a; # G. C. Greubel, Jun 22 2019
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Paul F. Hudrlik (hudrlik(AT)scs.howard.edu)
EXTENSIONS
G.f. corrected by Olivier Gérard, Nov 13 2011
STATUS
approved