%I #28 Sep 08 2022 08:45:37
%S 1,0,1,1,2,2,3,5,6,9,12,18,24,34,48,67,94,131,185,258,362,507,711,996,
%T 1395,1956,2740,3840,5380,7540,10565,14804,20745,29069,40734,57078,
%U 79983,112077,157050,220069,308376,432118,605512,848486,1188956,1666047,2334578
%N a(n) = a(n-2) + a(n-3) + a(n-4) - a(n-6), with a(0) = a(2) = a(3) = 1, a(1) = 0 and a(4) = a(5) = 2.
%C Expansion of 1/p(x), where p(x) = 1 - x^2 - x^3 - x^4 + x^6 is a Salem polynomial.
%H G. C. Greubel, <a href="/A143438/b143438.txt">Table of n, a(n) for n = 0..1000</a>
%H Curtis T. McMullen, <a href="http://abel.math.harvard.edu/~ctm/papers/index.html">Dynamics on K3 surfaces: Salem numbers and Siegel disks</a>, 2001.
%H <a href="/index/Rec#order_06">Index entries for linear recurrences with constant coefficients</a>, signature (0,1,1,1,0,-1).
%F G.f.: 1/(1 - x^2 - x^3 - x^4 + x^6). - _Colin Barker_, Nov 24 2012
%p seq(coeff(series(1/(1-x^2-x^3-x^4+x^6), x, n+1), x, n), n = 0..50); # _G. C. Greubel_, Dec 06 2019
%t CoefficientList[Series[1/(1-x^2-x^3-x^4+x^6), {x, 0, 50}], x]
%t LinearRecurrence[{0,1,1,1,0,-1}, {1,0,1,1,2,2}, 50] (* _G. C. Greubel_, Dec 06 2019 *)
%o (Maxima) makelist(ratcoef(taylor(1/(1 -x^2 -x^3 -x^4 +x^6), x, 0, n), x, n), n, 0, 50); /* _Franck Maminirina Ramaharo_, Oct 31 2018 */
%o (PARI) my(x='x+O('x^50)); Vec(1/(1-x^2-x^3-x^4+x^6)) \\ _G. C. Greubel_, Nov 03 2018
%o (Magma) R<x>:=PowerSeriesRing(Integers(), 50); Coefficients(R!(1/(1 -x^2-x^3-x^4+x^6))); // _G. C. Greubel_, Nov 03 2018
%o (Sage)
%o def A143438_list(prec):
%o P.<x> = PowerSeriesRing(ZZ, prec)
%o return P(1/(1-x^2-x^3-x^4+x^6)).list()
%o A143438_list(50) # _G. C. Greubel_, Dec 06 2019
%o (GAP) a:=[1,0,1,1,2,2];; for n in [7..50] do a[n]:=a[n-2]+a[n-3]+a[n-4]-a[n-6]; od; a; # _G. C. Greubel_, Dec 06 2019
%Y Cf. A029826, A117791, A143419, A143472, A143619, A143644, A147663, A173908, A173911, A173924, A173925, A174522, A175740, A175772, A175773, A175782, A181600, A204631, A225391, A225393, A225394, A225482, A225499.
%K nonn,easy
%O 0,5
%A _Roger L. Bagula_ and _Gary W. Adamson_, Oct 23 2008
%E Edited, new name (after _Colin Barker_), more terms, and offset corrected by _Franck Maminirina Ramaharo_, Oct 30 2018