OFFSET
1,3
COMMENTS
For n>0, a(n) = (A055979(n) - A056161(n))/2, with those two sequences related through the Diophantine equation 2x^2 + 3x + 2 = r^2. - Richard R. Forberg, Nov 24 2013
LINKS
Index entries for linear recurrences with constant coefficients, signature (1, 34, -34, -1, 1).
FORMULA
For n>5, a(n) = 34*a(n-2) - a(n-4) - 12.
For n>6, a(n) = a(n-1) + 34*a(n-2) - 34*a(n-3) - a(n-4) + a(n-5).
For n>1, a(n) = 1/16 * ((2*sqrt(2) + (-1)^n)*(1 + sqrt(2))^(2*n - 3) - (2*sqrt(2) - (-1)^n)*(1 - sqrt(2))^(2*n - 3) + 6).
For n>1, a(n) = ceiling (1/16*(2*sqrt(2) + (-1)^n)*(1 + sqrt(2))^(2*n - 3)).
G.f.: ( 1 - 33*x^2 + 18*x^3 + 2*x^4 ) / ((1 - x ) * (1 - 6*x + x^2 ) * (1 + 6*x + x^2)).
lim (n -> Infinity, a(2n+1)/a(2n)) = 1/7*(43 + 30*sqrt(2)).
lim (n -> Infinity, a(2n)/a(2n-1)) = 1/7*(11 + 6*sqrt(2)).
EXAMPLE
MATHEMATICA
LinearRecurrence[{1, 34, -34, -1, 1} , {0, 1, 2, 20, 55, 667}, 24] (* first term 0 corrected by Georg Fischer, Apr 02 2019 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Richard Choulet, Oct 11 2007; Ant King, Nov 04 2011
EXTENSIONS
Entry revised by Max Alekseyev, Nov 06 2011
STATUS
approved