<a href="/index/Rec">Index to sequences with entries for linear recurrences with constant coefficients</a>, signature (2,1).
<a href="/index/Rec">Index to sequences with entries for linear recurrences with constant coefficients</a>, signature (2,1).
<a href="/index/Rea#recLCCRec">Index to sequences with linear recurrences with constant coefficients</a>, signature (2,1).
G.f.: 1 / (1 + x^2 / (1 - 2*x / (1 - x / (1 + x)))). - _Michael Somos, _, Jan 03 2013
proposed
approved
editing
proposed
G.f.: 1 - Q(0)*x^2/2 , where Q(k) = 1 + 1/(1 - x*(4*k+2 + x)/( x*(4*k+4 + x) + 1/Q(k+1) )); (continued fraction). - Sergei N. Gladkovskii, Sep 08 2013
approved
editing
editing
approved
a[0] = 1; a[n_] := a[n] = a[n - 1] - Sqrt[2*a[n - 1]^2 + (-1)^n]; Table[a[n], {n, 0, 30}]
a[n_] := a[n] = a[n - 1] - Sqrt[2*a[n - 1]^2 + (-1)^n];
TableJoin[a{1}, LinearRecurrence[n{2, 1}, {0, -1}, 30]], (* or *) Join[{1}, Rest[ CoefficientList[Series[1 + (1 - 2 x)/(-1 + 2 x + x^2), {n, x, 0, 30}] , x]]] (* _Harvey P. Dale_, Dec 24 2011 *)
Join[{1}, LinearRecurrence[{2, 1}, {0, -1}, 30]] (* or *) Join[{1}, Rest[ CoefficientList[Series[1+(1-2x)/(-1+2x+x^2), {x, 0, 30}], x]]] (* From Harvey P. Dale, Dec 24 2011 *)
Cf. A000129.
proposed
editing
editing
proposed
<a href="/index/Rea#recLCC">Index to sequences with linear recurrences with constant coefficients</a>, signature (2,1).
<a href="/index/Rea#recLCC">Index to sequences with linear recurrences with constant coefficients</a>, signature (2,1).