OFFSET
1,1
COMMENTS
The corresponding values of y of this Pell equation are in A202638.
LINKS
Bruno Berselli, Table of n, a(n) for n = 1..1000
R. A. Mollin, Class Numbers of Quadratic Fields Determinet by Solvability of Diophantine Equations, Mathematics of Computation Vol. 48, 1987, p. 235 (Theorem 1.1, particular case).
Index entries for linear recurrences with constant coefficients, signature (0,16,0,-1).
FORMULA
MATHEMATICA
LinearRecurrence[{0, 16, 0, -1}, {2, 5, 37, 82}, 24]
PROG
(PARI) a=vector(24); a[1]=2; a[2]=5; a[3]=37; a[4]=82; for(i=5, #a, a[i]=16*a[i-2]-a[i-4]); a
(Magma) m:=24; R<x>:=PowerSeriesRing(Integers(), m); Coefficients(R!((1+x)*(2+3*x+2*x^2)/(1-16*x^2+x^4)));
(Maxima) makelist(expand(((-2*(-1)^n+sqrt(7))*(8+3*sqrt(7))^floor(n/2)-(2*(-1)^n+sqrt(7))*(8-3*sqrt(7))^floor(n/2))/2), n, 1, 24);
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Bruno Berselli, Dec 22 2011
STATUS
approved