OFFSET
1,1
COMMENTS
The limit of a(n+1)/a(n) is 33.97056... = 17+12*sqrt(2) = (3+2*sqrt(2))^2 (see A156164).
LINKS
Eric Weisstein's World of Mathematics, NSW numbers.
Index entries for linear recurrences with constant coefficients, signature (35,-35,1).
FORMULA
a(n) = (1/2) * ((3+2*sqrt(2))^(2*n-1) + (3-2*sqrt(2))^(1-2*n)) - 1.
a(n) = -2*sqrt(2)*sinh(n*log(17+12*sqrt(2))) + 3*cosh(n*log(17+12*sqrt(2))) - 1.
a(n) = 2*A002315(n-1)^2.
a(n) = A075870(n)^2 - 2.
a(n) = 34*a(n-1) - a(n-2) + 32.
G.f.: 2 * (1 + 14*x + x^2) / ((1 - x)*(1 - 34*x + x^2)). - Stefano Spezia, May 08 2025
EXAMPLE
98 is a term becouse 98+2=100 is a square and 98*2=196 is a square.
MATHEMATICA
LinearRecurrence[{35, -35, 1}, {2, 98, 3362}, 20] (* Amiram Eldar, May 07 2025 *)
PROG
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Emilio Martín, May 07 2025
STATUS
approved
