The OEIS mourns the passing of Jim Simons and is grateful to the Simons Foundation for its support of research in many branches of science, including the OEIS.
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!)
A266506 a(n) = 2*a(n-4) + a(n-8) for n >= 8. 4
2, -1, 2, 1, 1, 3, 3, 5, 4, 5, 8, 11, 9, 13, 19, 27, 22, 31, 46, 65, 53, 75, 111, 157, 128, 181, 268, 379, 309, 437, 647, 915, 746, 1055, 1562, 2209, 1801, 2547, 3771, 5333, 4348, 6149, 9104, 12875, 10497, 14845, 21979, 31083, 25342, 35839, 53062, 75041, 61181, 86523 (list; graph; refs; listen; history; text; internal format)
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
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
Sequence in context: A137278 A205810 A139368 * A134303 A078997 A024680
KEYWORD
sign,easy,less
AUTHOR
Raphie Frank, Dec 30 2015
EXTENSIONS
Edited, new name using given formula, Joerg Arndt, Jan 31 2024
STATUS
approved

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 May 22 21:38 EDT 2024. Contains 372758 sequences. (Running on oeis4.)