A292521 a(n) = a(n-2) - 2a(n-3) + a(n-4) for n>3, with a(0)=2, a(1)=0, a(2)=1, a(3)=-1, a sequence related to Pellian numbers.
2, 0, 1, -1, 3, -3, 6, -10, 15, -25, 41, -65, 106, -172, 277, -449, 727, -1175, 1902, -3078, 4979, -8057, 13037, -21093, 34130, -55224, 89353, -144577, 233931, -378507, 612438, -990946, 1603383, -2594329, 4197713, -6792041, 10989754, -17781796, 28771549, -46553345
Offset: 0
Keywords
Links
- Index entries for linear recurrences with constant coefficients, signature (0,1,-2,1).
Programs
-
Mathematica
LinearRecurrence[{0, 1, -2, 1}, {2, 0, 1, -1}, 40]
-
PARI
x='x+O('x^99); Vec((2-x^2+3*x^3)/(1-x^2+2*x^3-x^4)) \\ Altug Alkan, Sep 18 2017
Comments