OFFSET
0,3
COMMENTS
See a May 06 2017 comment on A049310 where these problems are considered which originated in a conjecture by Michel Lagneau (see A008611) on Fibonacci polynomials.
LINKS
G. C. Greubel, Table of n, a(n) for n = 0..1000
Index entries for linear recurrences with constant coefficients, signature (1,0,0,0,0,1,-1).
FORMULA
a(n) = 2*b(n) if n is even and 1 + 2*b(n) if n is odd with b(n) = floor(n/2) - floor((n+1)/6) = A285870(n). See the g.f. for {b(n)}_{n>=0} there.
From Colin Barker, May 18 2017: (Start)
G.f.: x*(1 + x + x^2 + x^3 - x^4 + x^5) / ((1 - x)^2*(1 + x)*(1 - x + x^2)*(1 + x + x^2)).
a(n) = a(n-1) + a(n-6) - a(n-7) for n>6.
(End)
EXAMPLE
n = 3: S(3, x) = x*(-2 + x^2), with all three zeros (-sqrt(2), 0, +sqrt(2)) in the interval (-sqrt(3), +sqrt(3)).
n = 4: S(4, x) = 1 - 3*x^2 + x^4, all four zeros (-phi, -1/phi, 1/phi, phi) with phi = (1 + sqrt(5))/2, approximately 1.618, lie in the interval.
n = 6, two zeros of S(6, x) = -1 + 6*x^2 - 5*x^4 + x^6 are out of the interval (-sqrt(3), +sqrt(3)), namely - 1.8019... and +1.8019... .
MATHEMATICA
CoefficientList[Series[x*(1+x+x^2+x^3-x^4+x^5)/((1-x)^2*(1+x)*(1-x+x^2)*(1+x+x^2)), {x, 0, 50}], x] (* G. C. Greubel, Mar 08 2018 *)
PROG
(PARI) concat(0, Vec(x*(1 + x + x^2 + x^3 - x^4 + x^5) / ((1 - x)^2*(1 + x)*(1 - x + x^2)*(1 + x + x^2)) + O(x^100))) \\ Colin Barker, May 18 2017
(Magma) m:=80; R<x>:=PowerSeriesRing(Integers(), m); Coefficients(R!(x*(1+x+x^2+x^3-x^4+x^5)/((1-x)^2*(1+x)*(1-x+x^2)*(1+x+x^2)))); // G. C. Greubel, Mar 08 2018
CROSSREFS
KEYWORD
nonn
AUTHOR
Wolfdieter Lang, May 12 2017
STATUS
approved