OFFSET
1,1
LINKS
Colin Barker, Table of n, a(n) for n = 1..1000
M. A. Gopalan, S. Vidhyalakshmi, E. Premalatha, R. Janani, On The Negative Pell Equation y^2 = 33*x^2 - 8, International Journal of Multidisciplinary Research and Modern Education (IJMRME), Volume II, Issue I, 2016.
Index entries for linear recurrences with constant coefficients, signature (0,46,0,-1).
FORMULA
a(n) = 46*a(n-2) - a(n-4) for n>4.
G.f.: x*(1 + x)*(5 + 12*x + 5*x^2) / (1 - 46*x^2 + x^4).
EXAMPLE
17 is in the sequence because (x, y) = (3, 17) is a solution to y^2 = 33*x^2 - 8.
MATHEMATICA
LinearRecurrence[{0, 46, 0, -1}, {5, 17, 247, 787}, 30] (* Harvey P. Dale, Sep 06 2023 *)
PROG
(PARI) Vec(x*(1 + x)*(5 + 12*x + 5*x^2) / (1 - 46*x^2 + x^4) + O(x^30))
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Colin Barker, Jan 23 2017
STATUS
approved