login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A014236 Expansion of g.f.: 2*x*(1-x)/((1-2*x)*(1-2*x^2)). 3

%I #34 Jun 25 2023 21:06:07

%S 0,2,2,8,12,32,56,128,240,512,992,2048,4032,8192,16256,32768,65280,

%T 131072,261632,524288,1047552,2097152,4192256,8388608,16773120,

%U 33554432,67100672,134217728,268419072,536870912,1073709056,2147483648,4294901760,8589934592

%N Expansion of g.f.: 2*x*(1-x)/((1-2*x)*(1-2*x^2)).

%C Number of symmetric chiral (optically active) isomers possible for organic compounds with n distinct carbon atoms.

%C 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

%H Harvey P. Dale, <a href="/A014236/b014236.txt">Table of n, a(n) for n = 0..1000</a>

%H <a href="/index/Rec#order_03">Index entries for linear recurrences with constant coefficients</a>, signature (2,2,-4).

%F a(n) = 2*A007179(n). - _R. J. Mathar_, Nov 14 2011

%F From _G. C. Greubel_, Jun 22 2019:

%F a(n) = 2^((n - 2)/2)*(2^((n + 2)/2) - 1 - (-1)^n).

%F E.g.f.: exp(2*x) - cosh(sqrt(2)*x). (End)

%p f := n -> if n mod 2 = 0 then 2^n-2^(n/2) else 2^n; fi;

%t 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 *)

%o (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

%o (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

%o (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

%o (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

%Y Second differences of A027556.

%K nonn,easy

%O 0,2

%A Paul F. Hudrlik (hudrlik(AT)scs.howard.edu)

%E G.f. corrected by _Olivier GĂ©rard_, Nov 13 2011

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 29 15:16 EDT 2024. Contains 372114 sequences. (Running on oeis4.)