OFFSET
0,1
COMMENTS
Previous name was: a(2n) = a(2n - 4) + a(2n - 3) and a(2n + 1) = 2*a(2n - 4) + a(2n - 3), with a(0) = 2, a(1) = -1, a(2) = 2, a(3) = 1. Alternatively, interleave denominators (A266504) and numerators (A266505) of convergents to sqrt(2).
a(2n) gives all x in N | 2*x^2 - 7(-1)^x = y^2. a(2n+1) gives associated y values.
LINKS
G. C. Greubel, Table of n, a(n) for n = 0..1000
Index entries for linear recurrences with constant coefficients, signature (0,0,0,2,0,0,0,1).
FORMULA
From Chai Wah Wu, Sep 17 2016: (Start)
a(n) = 2*a(n-4) + a(n-8) for n > 7.
G.f.: (-3*x^7 + x^6 - 5*x^5 + 3*x^4 - x^3 - 2*x^2 + x - 2)/(x^8 + 2*x^4 - 1).
(End)
MATHEMATICA
CoefficientList[Series[(-3*x^7 + x^6 - 5*x^5 + 3*x^4 - x^3 - 2*x^2 + x - 2)/(x^8 + 2*x^4 - 1), {x, 0, 50}], x] (* G. C. Greubel, Jul 27 2018 *)
PROG
(PARI) x='x+O('x^50); Vec((-3*x^7+x^6-5*x^5+3*x^4-x^3-2*x^2+x-2)/(x^8 + 2*x^4-1)) \\ G. C. Greubel, Jul 27 2018
(Magma) m:=50; R<x>:=PowerSeriesRing(Integers(), m); Coefficients(R!((-3*x^7+x^6-5*x^5+3*x^4-x^3-2*x^2+x-2)/(x^8+2*x^4-1))); // G. C. Greubel, Jul 27 2018
CROSSREFS
KEYWORD
sign,easy,less
AUTHOR
Raphie Frank, Dec 30 2015
EXTENSIONS
Edited, new name using given formula, Joerg Arndt, Jan 31 2024
STATUS
approved